Hi Tim,<div><br></div><div>Thanks for getting back to me. I am new to rabbitmq so not very familiar with the details you're asking for.</div><div><br></div><div>Here is what I see in /opt/local/var/lib/rabbitmq/.erlang.cookie:</div>
<div><br></div><div>QFZXZBPOMTJNACQIMJOT</div><div><br></div><div>and <span class="Apple-style-span" style="color:rgb(51,51,51);font-family:'Courier New',Courier,monospace;line-height:18px;white-space:nowrap">sudo rabbitmqctl status </span>gives me:</div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">Status of node rabbit@h002 ...</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Error: unable to connect to node rabbit@h002: nodedown</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">DIAGNOSTICS</font></div><div><font class="Apple-style-span" face="'courier new', monospace">===========</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">nodes in question: [rabbit@h002]</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace">hosts, their running nodes and ports:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">- h002: [{rabbit,62428},{rabbitmqctl12565,55147}]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">current node details:</font></div><div><font class="Apple-style-span" face="'courier new', monospace">- node name: rabbitmqctl12565@h002</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">- home dir: /opt/local/var/lib/rabbitmq</font></div><div><font class="Apple-style-span" face="'courier new', monospace">- cookie hash: q7VU0JjCd0VG7jOEF9Hf/g==</font></div>
</div><div><br></div><div>I installed rabbitmq by following the instructions given here: <a href="http://www.rabbitmq.com/install-macports.html">http://www.rabbitmq.com/install-macports.html</a>, after which I ran <span class="Apple-style-span" style="color:rgb(51,51,51);font-family:'Courier New',Courier,monospace;line-height:18px;white-space:nowrap">sudo rabbitmq-server -detached</span> to start the server. Now I want to stop the server using <span class="Apple-style-span" style="color:rgb(51,51,51);font-family:'Courier New',Courier,monospace;line-height:18px;white-space:nowrap">sudo rabbitmqctl stop</span>, but it simply does not allow me to do so by the looks of it.</div>
<div><br></div><div>I wonder what causes this kind of behavior? Am I running *multiple* rabbitmq servers/nodes on my machine now, and somehow I am not allowed to access some of them? Your help is much appreciated. Thanks.</div>
<div><br></div><div><br></div><div><br></div><div>Best,</div><div>Merton</div><div><br><div class="gmail_quote">On Wed, May 16, 2012 at 8:42 AM, tim <span dir="ltr"><<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 16/05/2012 13:24, mrtn wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi,<br>
<br>
I installed the latest RabbitMQ via macports on OS X 10.6.8, and have<br>
been trying to run it on localhost. However, after I started the<br>
server using 'sudo rabbitmq-server -detached', I cannot stop the<br>
server/node, nor can I start a new one (as expected). Below is the<br>
output: first, I try to start a new server but failed because there is<br>
already running; second, I then try to stop the existing server/node<br>
but get told it is already down. Can anyone point out what is going on<br>
here?!<br>
<br>
mrtn:MyLab mrtn$ sudo rabbitmq-server -detached<br>
Activating RabbitMQ plugins ...<br>
0 plugins activated:<br>
<br>
node with name "rabbit" already running on "h002"<br>
<br>
DIAGNOSTICS<br>
===========<br>
<br>
nodes in question: [rabbit@h002]<br>
<br>
hosts, their running nodes and ports:<br>
- h002: [{rabbit,62428},{<u></u>rabbitmqprelaunch12073,54048}]<br>
<br>
current node details:<br>
- node name: rabbitmqprelaunch12073@h002<br>
- home dir: /opt/local/var/lib/rabbitmq<br>
- cookie hash: q7VU0JjCd0VG7jOEF9Hf/g==<br>
<br>
mrtn:MyLab mrtn$ sudo rabbitmqctl stop<br>
Stopping and halting node rabbit@h002 ...<br>
Error: unable to connect to node rabbit@h002: nodedown<br>
<br>
DIAGNOSTICS<br>
===========<br>
<br>
nodes in question: [rabbit@h002]<br>
<br>
hosts, their running nodes and ports:<br>
- h002: [{rabbit,62428},{<u></u>rabbitmqctl12108,54053}]<br>
<br>
current node details:<br>
- node name: rabbitmqctl12108@h002<br>
- home dir: /opt/local/var/lib/rabbitmq<br>
- cookie hash: q7VU0JjCd0VG7jOEF9Hf/g==<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</blockquote>
<br>
Is the existing rabbit running with the same Erlang cookie as the new one? The cookie hash produced by rabbitmqctl is for the current node, not the one you're attempting to contact.<br>
<br>
The list of nodes/ports on the given host indicates which Erlang nodes are up, but not necessarily whether they're allowed to connect to or not. Check your cookie and let us know how you get on.<span class="HOEnZb"><font color="#888888"><br>
<br>
Tim<br>
</font></span></blockquote></div><br></div>