Clustering: Connection attempt from disallowed node

I'm trying to cluster 2 servers. So far everything has gone pretty smoothly, except when I try to ping the first node from the second I'm getting

"Connection attempt from disallowed node"

I've checked and rechecked, and the cookie is identical on both servers. Firewall between the two servers is wide open.

Both are under the same domain in the cfg, and their names are ejabberd@dev1 and ejabberd2@pidge. The two servers can ping each other by hostname. Ejabberdctl starts using -sname. .hosts.erlang file is set and being read on both servers. Each node is using ejabberd 2.1.3.

At this point I just don't know what else it can be.

rkalajian wrote: I'm trying

rkalajian wrote:

I'm trying to cluster 2 servers. So far everything has gone pretty smoothly, except when I try to ping the first node from the second I'm getting

"Connection attempt from disallowed node"

I've checked and rechecked, and the cookie is identical on both servers.

You checked that the cookie file is identical on both servers. But did you check the Erlang nodes read such files correctly and set their cookies identical?

You can check that by executing this in each node, and compare the result:

(ejabberd@localhost)1> erlang:get_cookie().
'COOKIE1IN1VARLIBEJABBERD'

To get access to that erlang shell, either:
A) ejabberdctl start, then ejabberdctl debug
B) or start ejabberd in live mode with: ejabberdctl live

For more debugging, you can also set the cookie string in your ejabberd start script.

Very simple example of what to add:

$ erl -setcookie AABCD -sname node1
Erlang R13B04 (erts-5.7.5) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
(node1@localhost)1> erlang:get_cookie().
'AABCD'
Syndicate content