<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; margin: 0px; line-height: auto;">Hello all</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" 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 id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; margin: 0px; line-height: auto;">I tried doing this:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family: Helvetica, Arial; margin: 0px; ">rabbitmqctl stop_app</div><div id="bloop_customfont" style="font-family: Helvetica, Arial; margin: 0px; ">vi /var/lib/rabbitmq/.erlang.cookie</div><div id="bloop_customfont" style="font-family: Helvetica, Arial; margin: 0px; "></div><div id="bloop_customfont" 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 id="bloop_customfont" 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 id="bloop_customfont" style="margin: 0px; ">vi /var/lib/rabbitmq/.erlang.cookie</div><div id="bloop_customfont" 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 class="bloop_container"><div class="bloop_frame"> </div></div></div><br><div class="" id="bloop_sign_1379109582562193920"><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></body></html>