Hi. <br><br>I am trying to create a cluster of three RabbitMQ nodes.<br>I am having trouble setting the &quot;.erlang.cookie&quot; file correctly.<br><br>Node1 - x.y.z.28������� - Ubuntu 12.04 - RabbitMQ installed from repositories.<br>
Node2 - x.y.z.38������� - Ubuntu 12.04 - RabbitMQ installed from repositories.���� <br>Node3 - x.y.z.39 ������ - Ubuntu 12.04 - RabbitMQ installed from repositories.� <br><br>Individually all the three nodes are working fine.<br clear="all">
<br>Step 1 : copy the erlang magic cookie between the nodes<br><ul><li>I replace the /var/lib/rabbitmq/.erlang.cookie file in Node 2 with that of Node 1</li><li>ls -al shows the file is owned by &quot;rabbitmq&quot; user</li>
</ul>step 2 : I try to add Node2 to a cluster with Node1<br><ul><li>Every rabbitmqctl command fails like below</li></ul><font style="color:rgb(51,0,0)" size="2"><span style="font-family:courier new,monospace">root@rabbit3:/home/aravindh# rabbitmqctl cluster <a href="mailto:rabbit@130.127.39.28">rabbit@130.127.39.28</a></span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Clustering node rabbit@rabbit3 with [&#39;<a href="mailto:rabbit@130.127.39.28">rabbit@130.127.39.28</a>&#39;] ...</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Error: unable to connect to node rabbit@rabbit3: nodedown</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">diagnostics:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">- nodes and their ports on rabbit3: [{rabbit,37223},{rabbitmqctl12238,44154}]</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">- current node: rabbitmqctl12238@rabbit3</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">- current node home dir: /var/lib/rabbitmq</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">- current node cookie hash: rMqeVIBUabtB2sZrvleTTQ==<br><br><br style="font-family:courier new,monospace"></span><span style="font-family:courier new,monospace">root@rabbit3:/home/aravindh# rabbitmqctl status</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">Status of node rabbit@rabbit3 ...</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Error: unable to connect to node rabbit@rabbit3: nodedown</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">diagnostics:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">- nodes and their ports on rabbit3: [{rabbit,37223},{rabbitmqctl12271,38179}]</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">- current node: rabbitmqctl12271@rabbit3</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">- current node home dir: /var/lib/rabbitmq</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">- current node cookie hash: rMqeVIBUabtB2sZrvleTTQ==</span></font><br><br>Reverting back to the original .erlang.cookie file gets rid of the error, but I cannot proceed with cluster without this cookie step right ?<br>
<br>please help me find where I am going wrong .... <br><br>--<br>�<br><font style="color:rgb(51,0,51);font-family:garamond,serif" size="4">Aravindh</font><br><br>