-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clustering nodes that are on different servers #116
Comments
Update:
|
That environment variable is read by the ejabberdctl script, and it is passed to the erl virtual machine as the argument
I get that same problem with a similar compose file: version: '3.7'
services:
main:
image: ghcr.io/badlop/ejabberd:dependabot
container_name: ejabberd
hostname: ej1container
environment:
- ERLANG_NODE_ARG=ejabberd@subdomain.domain.com
- ERLANG_COOKIE=dummycookie123 The solution in my case is to add
Right, you used the erlang short node name ej1container, so you cannot later use a long node name like Either use:
If you use this in different machines, make sure the second one knows where to find ej1container (by adding it to Or use:
In that case, make sure erlang can know what does |
Thank you for your reply @badlop .
However, when I try to connect to ejabberd@subdomain.domain.com that's on Server A, from Server B, I get
When I
from Server B, I get pang. When I ping Server A from Server B, I can reach it with no issues. When I
from server B to Server A, again Server A is reachable. I feel like I'm missing something here. |
Hi @badlop , should I re-submit this issue under the issues of https://github.com/processone/ejabberd/ ? |
This is a problem with that container image, so here seems a good place for the issue. On the other hand, it may be a problem related to docker and erlang clustering, not only ejabberd, and you may search for related questions outside of ejabberd places. |
I'm using this docker image and trying to cluster 2 nodes that are on different servers, therefore 2 different public IPs.
Just for testing, I successfully clustered 2 docker containers that are on the same machine.
However, when I try to define a FQDN in ERLANG_NODE_ARG, I get an error that I don't know how to overcome.
This container starts without errors (I'm skipping unrelated lines):
This setup gives me an error
It looks like the container starts normally but when I do
I get
I already pointed the A record of subdomain.domain.com to the public IP of the VPS where this is running.
There was a similar issue #106 but I don't see how the FQDN was integrated and what the solution was.
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: