docker-ejabberd icon indicating copy to clipboard operation
docker-ejabberd copied to clipboard

Clustering example not working

Open schucha opened this issue 7 years ago • 4 comments

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?

schucha avatar Jan 09 '17 20:01 schucha

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

firstthumb avatar Mar 23 '17 12:03 firstthumb

Is this related to #100?

ghost avatar Apr 04 '17 16:04 ghost

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.

rroemhild avatar Apr 07 '17 09:04 rroemhild

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

BrianJVarley avatar Nov 15 '17 15:11 BrianJVarley