I am clearing the /var/lib/rabbitmq/mnesia directory entirely before starting the clustering process -- doesn&#39;t that ensure that any persistent objects are cleared?<div><br></div><div>In any case, I will check the initial conditions of queues, exchanges etc. and get back soon.</div>

<div><br></div><div>Thanks<br><br><div class="gmail_quote">On Tue, Apr 19, 2011 at 4:27 PM, Matthew Sackman <span dir="ltr">&lt;<a href="mailto:matthew@rabbitmq.com">matthew@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5">On Wed, Apr 06, 2011 at 09:39:40PM +0530, Advait Alai wrote:<br>
&gt; &gt;<br>
&gt; &gt; Hmm. What version of Erlang are you running? I get a slightly different<br>
&gt; &gt; error from the area of code I think is exploding...<br>
&gt; &gt;<br>
&gt;<br>
&gt; I&#39;m not very familiar with Erlang... &#39;erl -v&#39; gives<br>
&gt;<br>
&gt; Erlang R13B01 (erts-5.7.2)<br>
<br>
</div></div>Hmm, that&#39;s a little old, but I&#39;m not sure it should really be causing<br>
the issue you&#39;re seeing.<br>
<br>
You should essentially be doing:<br>
for node_to_add in $NODES; do \<br>
 � � � �rabbitmqctl -n $node_to_add stop_app;<br>
 � � � �rabbitmqctl -n $node_to_add reset;<br>
 � � � �rabbitmqctl -n $node_to_add cluster $other_node $node_to_add;<br>
 � � � �rabbitmqctl -n $node_to_add start_app;<br>
done<br>
<br>
If that&#39;s what you&#39;re doing and it&#39;s not working, after the reset, have<br>
a poke around in that node&#39;s mnesia dir, and see if there&#39;s anything in<br>
there - there really shouldn&#39;t be - it should be empty. For some reason,<br>
the error you&#39;re getting is suggesting that on start_app, it&#39;s trying to<br>
recover a queue on the node newly added to the cluster, which turns out<br>
not to exist - this is hardly surprising - the reset will ensure there<br>
are no queues on that node. But I don&#39;t understand why it would be<br>
trying to do this.<br>
<br>
Try to make sure that you&#39;re starting with absolutely no queues or<br>
exchanges or anything configured in any node at all.<br>
<br>
As I say, it does work for me, so I&#39;m not quite sure why it&#39;s going<br>
wrong for you.<br>
<div><div></div><div class="h5"><br>
Matthew<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>