[rabbitmq-discuss] Proper process to change erlang cookie?

Ben Hsu ben.hsu at criticalmedia.com
Fri Sep 13 23:07:14 BST 2013


Hello all

I need to change the erlang cookie on my RabbitMQ server to get clustering working, and wish to know the correct procedure.

I tried doing this:

rabbitmqctl stop_app
vi /var/lib/rabbitmq/.erlang.cookie
rabbitmqctl start_app # this gave me an error message: Error: unable to connect to node 'rabbit at ben-amqp-test4': nodedown

By trial and error, I found this worked:
pkill beam
pkill epmd
vi /var/lib/rabbitmq/.erlang.cookie
rabbitmq-server 
# now in a separate window, for some reason it didn't work with rabbitmq-server -detached
rabbitmqctl start_app

That seemed to work, but is ugly, and doesn't feel like the right way of doing it.

Also, what is the difference between "rabbitmqctl start_app" and "rabbitmq-server"?

Thanks in advance

-- 
Ben Hsu
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130913/3b0ab9c9/attachment.htm>


More information about the rabbitmq-discuss mailing list