<span>OK, I realize this is probably a very basic thing, but I&#39;ve been</span><br><span>googling and screwing around with this for hours and getting nowhere.</span><br><br><span>I&#39;m trying to set up my first rabbitmq cluster. I have it installed</span><br>


<span>fine on two ec2 hosts, and I&#39;m trying to get one to cluster with the</span><br><span>other. I&#39;ve tried the instructions at</span><br><br><a href="http://www.rabbitmq.com/clustering.html" target="_blank">http://www.rabbitmq.com/clustering.html</a><br>


<br><span>and I keep getting</span><br><br><span>Error: unable to connect to node &#39;rabbit@rabbitmq-small02-dev&#39;:</span><br><span>nodedown</span><br><span>diagnostics:</span><br>
<span>- nodes and their ports on rabbitmq-small02-dev: [{rabbit,57641},</span><br><br><span>{rabbitmqctl12928,46801}]</span><br><span>- current node: &#39;rabbitmqctl12928@rabbitmq-</span><span>small02-dev&#39;</span><br>


<span>- current node home dir: /var/lib/rabbitmq</span><br><span>- current node cookie hash: 4IHR1JMCSCh55g/tisBydg==</span><br><br><span>So I found more detailed instructions on </span><a href="http://skaag.net/" target="_blank">skaag.net</a><span>,</span><span> at</span><br>
<br><span>&lt;</span><span><font color="#0000ee"><u><a href="http://www.skaag.net/2010/03/12/rabbitmq-for-beginners/">http://www.skaag.net/2010/03/12/rabbitmq-for-beginners/</a></u></font>&gt;</span><br><br><span>So, I install (actually re-install) a fresh, up to date rabbitmq on</span><br>
<span>the second machine, according to the instructions for ec2.</span><br>

<br><span>Then I go through the instructions.</span><br><br><span>I stop the server:</span><br><span>[jstoner@rabbitmq-small02-dev]</span><span>&gt; service rabbitmq-server stop</span><br>
<span>Stopping rabbitmq-server: RabbitMQ is not running</span><br><span>rabbitmq-server.</span><br><br><span>I change the cookie to the same as the other one:</span><br><span>[jstoner@rabbitmq-small02-dev]</span><span>&gt; sudo su</span><br>


<span>root@rabbitmq-small02-dev:/</span><span>home/jstoner/rclient# echo -n [cookie-text]</span><br><span>&gt; /var/lib/rabbitmq/.erlang.</span><span>cookie</span><br><span>root@rabbitmq-small02-dev:/</span><span>home/jstoner/rclient# exit</span><br>


<span>exit</span><br><br><span>I try to restart:</span><br><span>[jstoner@rabbitmq-small02-dev]</span><span>&gt; sudo service rabbitmq-server start</span><br><span>Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/</span><br>


<span>startup_{log, _err}</span><br><span>rabbitmq-server.</span><br><br><span>I look at the logs they mention:</span><br><span>[jstoner@rabbitmq-small02-dev]</span><span>&gt; more /var/log/rabbitmq/startup_log</span><br>


<span>Activating RabbitMQ plugins ...</span><br><br><span>******************************</span><span>******************************</span><span>********************</span><br><span>******************************</span><span>******************************</span><span>********************</span><br>


<br><span>0 plugins activated:</span><br><br><span>node with name &quot;rabbit&quot; already running on &quot;rabbitmq-small02-dev&quot;</span><br><span>diagnostics:</span><br>
<span>- nodes and their ports on rabbitmq-small02-dev: [{rabbit,57641},</span><br><br><span>{rabbitmqctl12869,39028},</span><br><br><span>{rabbitmqprelaunch12879,</span><br>
<span>                                                  37230}]</span><br><span>- current node: &#39;rabbitmqprelaunch12879@</span><span>rabbitmq-small02-dev&#39;</span><br><span>- current node home dir: /var/lib/rabbitmq</span><br>


<span>- current node cookie hash: 4IHR1JMCSCh55g/tisBydg==</span><br><span>[jstoner@rabbitmq-small02-dev]</span><span>&gt; more /var/log/rabbitmq/startup_err</span><br><span>[empty file]</span><br>
<br><span>That tells me nothing I can make sense of. So I see what happens if I</span><br><span>try the next step:</span><br><span>[jstoner@rabbitmq-small02-dev]</span><span>&gt; sudo rabbitmqctl stop_app</span><br>
<span>Stopping node &#39;rabbit@rabbitmq-small02-dev&#39; ...</span><br><span>Error: unable to connect to node &#39;rabbit@rabbitmq-small02-dev&#39;:</span><br><span>nodedown</span><br>
<span>diagnostics:</span><br><span>- nodes and their ports on rabbitmq-small02-dev: [{rabbit,57641},</span><br><br><span>{rabbitmqctl12928,46801}]</span><br><span>- current node: &#39;rabbitmqctl12928@rabbitmq-</span><span>small02-dev&#39;</span><br>


<span>- current node home dir: /var/lib/rabbitmq</span><br><span>- current node cookie hash: [hashtext]</span><br><span><br></span><div><span>Which is the same kind of problem I got on the first set of</span><br>
<span>instructions, even though the cookies match. </span><div><span><br></span></div><div><span>Any ideas would be much appreciated.</span><br clear="all"><div><br></div>-- <br>blogs:<br><a href="http://johnstoner.wordpress.com/" target="_blank">http://johnstoner.wordpress.com/</a><br>
&#39;In knowledge is power; in  wisdom, humility.&#39; <br>


</div></div>