docker-ejabberd
docker-ejabberd copied to clipboard
Clustering example not working
I am seeing this error when running the clustering example. First I had to alter the dns address as my docker nat was on a different address than 172...
/scripts/lib/functions.sh: line 2: syntax error near unexpected token `$'{\r'' I am worried that the HOSTNAME variable might not be resolved correctly but haven't been able to verify.
I tried updating the domain to localhost as one of the other issues talked about...
If i remove the functions.sh then i get a little further but i am seeing issues with the node names when ej starts..
Application asn1 started on node ejabberd@d2276e573bf4
Any ideas what i might be doing wrong here?
docker: Error response from daemon: driver failed programming external connectivity on endpoint dnsdock (xxxxxxxxxxx): Error starting userland proxy: Bind for 172.17.x.1:53: unexpected error (Failure EADDRNOTAVAIL)
I got above error when I try to run cluster example. It could not bind the DNS IP
Is this related to #100?
Hi, the cluster example is a very old example I've setup with an old docker version. I think now there are better ways to setup a good cluster and my solution should be reconsidered. But currently I have no time to work on this.
Hi @rroemhild I had the same issue running the clustering example relating to EADDRNOTAVAIL
.
As you mentioned its an old example of clustering the image. Do you know of any better containerized approaches to clustering ejabberd?
I tested bundling your image and nginx-proxy
into a stack docker-compose file and that scales without port conflicts.
But it doesn't seem to handle TCP connection over port 5222 via an XMPP client. Do you have any feedback if this is the right approach to clustering or configuring nginx?
This is the issue I opened on nginx-proxy relating to that setup:
https://github.com/jwilder/nginx-proxy/issues/979