Ejabberd Clustering not working

I have installed ejabberd on two ubuntu servers in the same network using the binary installers, I have copied the .erlang.cookie file from /etc/ejabberd/bin of ejabberd@node1 (The intended master) to /etc/ejabberd/bin of ejabberd@node2 (the intended slave). When I run the command:

ejabberdctl join_cluster 'ejabberd@node1' on ejabberd@node2, I get the following error:

Error: {no_ping,ejabberd@node1}

When I try to ping ejabberd@node1 using erl console I get a pang.

The servers on which both nodes are installed can ping each other.

What am I doing wrong here?

But erlang at node1 knows

But erlang at node1 knows where node2 is? I mean, if you use IP addresses instead of names, does erlang ping work? I ask this because maybe the problem is not in the cookie part, but in something more basic, like knowing the other machine IP.

By the way, in case you didn't know, this may help: https://www.ejabberd.im/interconnect-erl-nodes

Syndicate content