Rabbit - Error: mnesia_unexpectedly_running

Tampa picture Tampa · Jan 3, 2013 · Viewed 23k times · Source

I am trying to cluster rabbit using chef

Here is my error. I shutdown all of rabbit on the second node.

rabbitmqctl join_cluster --ram rabbit@ip-10-158-xxx-xxx

Error: mnesia_unexpectedly_running

So..what is the deal? I tried this from http://agiletesting.blogspot.com/2010/05/rabbitmq-clustering-in-ubuntu.html which is to remove /var/lib/rabbitmq/mnesia. No go. And on what server doen it not be be running? All?

Thanks

Answer

jocull picture jocull · Nov 29, 2013

Make sure you call sudo rabbitmqctl stop_app before issuing the cluster command. That seemed to be the problem for me.

Then make sure you call sudo rabbitmqctl start_app to begin it again :)