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

Simon MacMullen simon at rabbitmq.com
Wed Sep 25 15:41:08 BST 2013


Are other ports firewalled? If so please read 
http://www.rabbitmq.com/clustering.html#firewall

Cheers, Simon

On 25/09/13 15:36, Derek Wyatt wrote:
> Thanks Jason.  The cookies are the same.  Running anything from
> rabbitmqctl to the remote host fails, unfortunately.  The list_queues
> call fails to connect, the same as join_cluster.
>
> As I indicated, the telnets all work just fine, so I'm stuck for what to
> diagnose next.  Any ideas would be great.
>
>
> On 25 September 2013 09:57, Jason McIntosh <mcintoshj at gmail.com
> <mailto:mcintoshj at gmail.com>> wrote:
>
>     Check your erlang cookie on both servers to make sure it matches I
>     think it's in - /var/lib/rabbitmq/ - then you can use rabbitmqctl
>     from one machine and see if you can connect to another to list
>     queues.  I THINK that's rabbitmqctl -n <servernode> list_queues for
>     example.  If both servers can talk to each other then it should be
>     rabbitmqctl stop_app, join_cluster, start_app.
>
>     Jason
>
>
>     On Wed, Sep 25, 2013 at 8:50 AM, Derek Wyatt <derek at derekwyatt.org
>     <mailto:derek at derekwyatt.org>> wrote:
>
>         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!
>         AMQPConnection closed by foreign host.
>
>         I'm stuck for what else to test.  Does anyone know how to
>         troubleshoot this thing further?
>
>         Thanks,
>         Derek
>
>
>         _______________________________________________
>         rabbitmq-discuss mailing list
>         rabbitmq-discuss at lists.rabbitmq.com
>         <mailto:rabbitmq-discuss at lists.rabbitmq.com>
>         https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
>
>
>     --
>     Jason McIntosh
>     http://mcintosh.poetshome.com/blog/
>     573-424-7612 <tel:573-424-7612>
>
>     _______________________________________________
>     rabbitmq-discuss mailing list
>     rabbitmq-discuss at lists.rabbitmq.com
>     <mailto:rabbitmq-discuss at lists.rabbitmq.com>
>     https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list