[rabbitmq-discuss] Issue in creating a RabbitMQ Cluster

Aravindh S aravindh86 at gmail.com
Mon Jul 2 22:05:00 BST 2012


Hi.

I am trying to create a cluster of three RabbitMQ nodes.
I am having trouble setting the ".erlang.cookie" file correctly.

Node1 - x.y.z.28        - Ubuntu 12.04 - RabbitMQ installed from
repositories.
Node2 - x.y.z.38        - Ubuntu 12.04 - RabbitMQ installed from
repositories.
Node3 - x.y.z.39        - Ubuntu 12.04 - RabbitMQ installed from
repositories.

Individually all the three nodes are working fine.

Step 1 : copy the erlang magic cookie between the nodes

   - I replace the /var/lib/rabbitmq/.erlang.cookie file in Node 2 with
   that of Node 1
   - ls -al shows the file is owned by "rabbitmq" user

step 2 : I try to add Node2 to a cluster with Node1

   - Every rabbitmqctl command fails like below

root at rabbit3:/home/aravindh# rabbitmqctl cluster rabbit at 130.127.39.28
Clustering node rabbit at rabbit3 with ['rabbit at 130.127.39.28'] ...
Error: unable to connect to node rabbit at rabbit3: nodedown
diagnostics:
- nodes and their ports on rabbit3:
[{rabbit,37223},{rabbitmqctl12238,44154}]
- current node: rabbitmqctl12238 at rabbit3
- current node home dir: /var/lib/rabbitmq
- current node cookie hash: rMqeVIBUabtB2sZrvleTTQ==


root at rabbit3:/home/aravindh# rabbitmqctl status
Status of node rabbit at rabbit3 ...
Error: unable to connect to node rabbit at rabbit3: nodedown
diagnostics:
- nodes and their ports on rabbit3:
[{rabbit,37223},{rabbitmqctl12271,38179}]
- current node: rabbitmqctl12271 at rabbit3
- current node home dir: /var/lib/rabbitmq
- current node cookie hash: rMqeVIBUabtB2sZrvleTTQ==

Reverting back to the original .erlang.cookie file gets rid of the error,
but I cannot proceed with cluster without this cookie step right ?

please help me find where I am going wrong ....

--

Aravindh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120702/4d6775bb/attachment.htm>


More information about the rabbitmq-discuss mailing list