<div>Hi,</div><div><br></div>Basically the erlang.cookie belongs to a particular user. So the Erlang will load the cookie of the user running the commands rabbitmqctl, rabbitmq-server and so on.<div><br></div><div>So if you want to gracefully stop that node you need to run <b>rabbitmqctl stop</b> with the same user that is running your current rabbitmq process.</div>
<div><br></div><div>To find that user try running:�<b>ps aux | grep rabbit</b></div><div><br></div><div>-Alvaro<br><br><div class="gmail_quote">On Wed, May 16, 2012 at 3:14 PM, Merton Lister <span dir="ltr">&lt;<a href="mailto:mrtnlstr@gmail.com" target="_blank">mrtnlstr@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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&#39;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 style="color:rgb(51,51,51);font-family:&#39;Courier New&#39;,Courier,monospace;line-height:18px;white-space:nowrap">sudo rabbitmqctl status�</span>gives me:</div>

<div><br></div><div><div><font face="&#39;courier new&#39;, monospace">Status of node rabbit@h002 ...</font></div><div class="im"><div><font face="&#39;courier new&#39;, monospace">Error: unable to connect to node rabbit@h002: nodedown</font></div>

<div><font face="&#39;courier new&#39;, monospace"><br></font></div><div><font face="&#39;courier new&#39;, monospace">DIAGNOSTICS</font></div><div><font face="&#39;courier new&#39;, monospace">===========</font></div>
<div><font face="&#39;courier new&#39;, monospace"><br></font></div><div><font face="&#39;courier new&#39;, monospace">nodes in question: [rabbit@h002]</font></div><div><font face="&#39;courier new&#39;, monospace"><br>
</font></div><div><font face="&#39;courier new&#39;, monospace">hosts, their running nodes and ports:</font></div></div><div><font face="&#39;courier new&#39;, monospace">- h002: [{rabbit,62428},{rabbitmqctl12565,55147}]</font></div>

<div><font face="&#39;courier new&#39;, monospace"><br></font></div><div><font face="&#39;courier new&#39;, monospace">current node details:</font></div><div><font face="&#39;courier new&#39;, monospace">- node name: rabbitmqctl12565@h002</font></div>
<div class="im">
<div><font face="&#39;courier new&#39;, monospace">- home dir: /opt/local/var/lib/rabbitmq</font></div><div><font face="&#39;courier new&#39;, monospace">- cookie hash: q7VU0JjCd0VG7jOEF9Hf/g==</font></div>
</div></div><div><br></div><div>I installed rabbitmq by following the instructions given here: <a href="http://www.rabbitmq.com/install-macports.html" target="_blank">http://www.rabbitmq.com/install-macports.html</a>, after which I ran�<span style="color:rgb(51,51,51);font-family:&#39;Courier New&#39;,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 style="color:rgb(51,51,51);font-family:&#39;Courier New&#39;,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 class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On Wed, May 16, 2012 at 8:42 AM, tim <span dir="ltr">&lt;<a href="mailto:tim@rabbitmq.com" target="_blank">tim@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">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 &#39;sudo rabbitmq-server -detached&#39;, 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 &quot;rabbit&quot; already running on &quot;h002&quot;<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&#39;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&#39;re allowed to connect to or not. Check your cookie and let us know how you get on.<span><font color="#888888"><br>


<br>
Tim<br>
</font></span></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br></div>