[rabbitmq-discuss] Clustering - just can't get it going

Derek Wyatt derek at derekwyatt.org
Wed Sep 25 14:50:16 BST 2013


Hi,

I've seen a number of people failing to get clustering running and,
unfortunately, I can't get it going either.  Here's the summary of what
I've got:

   - Two nodes - RMQ1 and RMQ2
   - I can ping RMQ1 from RMQ2, and vice versa
   - I can telnet from RMQ1 to RMQ2:epmd, and vice versa
   - I can telnet from RMQ1 to RMQ2:amqp, and vice versa
   - The cookie file is identical, as is clear from the startup INFO

My goal is to have RMQ2 join RMQ1 in a cluster.

The servers are started using the init script in Ubuntu (i.e. service
rabbitmq-server start).  This is different than the script at
http://www.rabbitmq.com/clustering.html, which says to start with
"rabbitmq-server -detached".  I've tried that and it doesn't seem to make
any difference so I always use the init script instead.

So, the script says to stop the RMQ2 server and then join the cluster.  The
following transcript shows how well all this goes:

02:~$ sudo rabbitmqctl stop_app
Stopping node 'rabbit at RMQ2' ...
...done.

02:~$ sudo rabbitmqctl join_cluster --ram rabbit at RMQ1
Clustering node 'rabbit at RMQ2' with 'rabbit at RMQ1' ...
Error: {cannot_discover_cluster,"The nodes provided are either offline or
not running"}

However, as I said above, telnetting to the ports works just fine:

02:~$ telnet RMQ1 epmd
Trying <ip address>...
Connected to RMQ1
Escape character is '^]'.
booger!
Connection closed by foreign host.

02:~$ telnet RMQ1 amqp
Trying <ip address>...
Connected to RMQ1
Escape character is '^]'.
booger!
AMQP Connection closed by foreign host.

I'm stuck for what else to test.  Does anyone know how to troubleshoot this
thing further?

Thanks,
Derek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130925/b17d5373/attachment.htm>


More information about the rabbitmq-discuss mailing list