ejabberd - Comments for "Clustering: Connection attempt from disallowed node" https://www.ejabberd.im/node/4178 en rkalajian wrote: I'm trying https://www.ejabberd.im/node/4178#comment-56468 <div class="quote-msg"> <div class="quote-author"><em>rkalajian</em> wrote:</div> <p>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</p> <p>"Connection attempt from disallowed node"</p> <p>I've checked and rechecked, and the cookie is identical on both servers.</p></div> <p>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?</p> <p>You can check that by executing this in each node, and compare the result:</p> <pre> (ejabberd@localhost)1&gt; erlang:get_cookie(). 'COOKIE1IN1VARLIBEJABBERD' </pre><p> To get access to that erlang shell, either:<br /> A) ejabberdctl start, then ejabberdctl debug<br /> B) or start ejabberd in live mode with: ejabberdctl live</p> <p>For more debugging, you can also set the cookie string in your ejabberd start script.</p> <p>Very simple example of what to add:</p> <pre> $ 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&gt; erlang:get_cookie(). 'AABCD' </pre> Mon, 02 Aug 2010 11:16:14 +0000 mfoss comment 56468 at https://www.ejabberd.im