<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 13.0px Helvetica">Thank you Alvaro,</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; min-height: 16.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 13.0px Helvetica">I understand<span class="Apple-converted-space"> </span>the difference between rabbitmq-server and rabbitmqctl now.</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; min-height: 16.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 13.0px Helvetica">I'm still not able to copy or edit the Erlang cookie without killing the process. I see two different .erlang.cookie files: one in /var/lib/rabbitmq and one in the users home directory. I copied the first to the second and still got the "unable to connect" problem</font></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Helvetica; min-height: 16.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="4" style="font: 13.0px Helvetica">I am running version 3.1.3.1 on CentOS</font></p>
<div id="bloop_sign_"><span style="font-family:helvetica,arial;font-size:13px"></span>-- </br>Ben Hsu</br><span>Sent with <a href="http://airmailapp.com/tracking">Airmail</a></span></div> <br /><p style="color:#A0A0A8;">On September 13, 2013 at 7:39:41 PM, Ben Hsu (ben.hsu@criticalmedia.com) wrote:</p> <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><span><div >The Erlang cookie belongs to each particular user on your machines. The cookie can be found on ~/.erlang.cookie and you need to have the same value there for every node in the cluster.<div><br></div><div>start_app stops the Rabbit application inside the Erlang VM but the VM has to be running for that to work. </div>
<div><br></div><div>stop_app will stop the rabbit app, but not the Erlang VM</div><div><br></div><div>rabbitmq-server takes care of preparing the env parameters and starting the Erlang VM to then run RabbitMQ on it.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Alvaro<span></span><br><br>On Friday, September 13, 2013, Ben Hsu wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto">Hello all</div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto"><br>
</div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto">I need to change the erlang cookie on my RabbitMQ server to get clustering working, and wish to know the correct procedure.</div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto">
<br></div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto">I tried doing this:</div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;margin:0px">
rabbitmqctl stop_app</div><div style="font-family:Helvetica,Arial;margin:0px">vi /var/lib/rabbitmq/.erlang.cookie</div><div style="font-family:Helvetica,Arial;margin:0px"></div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto">
rabbitmqctl start_app # this gave me an error message: <i>Error: unable to connect to node 'rabbit@ben-amqp-test4': nodedown</i></div><div style="font-family:Helvetica,Arial;font-size:13px;margin:0px;line-height:auto">
<div><br></div><div>By trial and error, I found this worked:</div><div>pkill beam</div><div>pkill epmd</div><div style="margin:0px">vi /var/lib/rabbitmq/.erlang.cookie</div><div style="margin:0px"></div><div>rabbitmq-server </div>
<div># now in a separate window, for some reason it didn't work with rabbitmq-server -detached</div><div>rabbitmqctl start_app</div><div><br></div><div>That seemed to work, but is ugly, and doesn't feel like the right way of doing it.</div>
<div><br></div><div>Also, what is the difference between "rabbitmqctl start_app" and "rabbitmq-server"?</div><div><br></div><div>Thanks in advance</div></div><div><div><div> </div></div></div><br><div>
<span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Ben Hsu<br><span>Sent with <a href="http://airmailapp.com/tracking" target="_blank">Airmail</a></span></div></div></blockquote></div>
</div></span></blockquote>