"node with name "rabbit" already running", but also "unable to connect to node 'rabbit'"

The rabbitmq server was running somewhere but it just couldn't be connected to.

One of the following will mention something about rabbits:

$: ps aux | grep epmd
$: ps aux | grep erl

Kill the process with kill -9 {pid of rabbitmq process}


i was having the same problem then I realized I was not issuing the right command.

./rabbitmqctl stop 

this works everytime, although it does take down erlang runtime too. also mind where your config file.


I used rabbitmqctl stop and then restarted using rabbitmq-server as root.


This issue can be caused by two issues:

  1. Rabbit is already running on the server. If that is the case, use the answer you found of killing the currently running process (ps aux | grep rabbit | grep -v grep)
  2. You have changed the IP address of your machine but not changed the /etc/hosts file to reflect the new IP address of the machine.

The more common of the issues is the first, but the harder to find is the second (especially if you have rabbit running on the other machine. If rabbit is installed on the other machine it will look at the old IP address and would see another machine already running rabbitmq and give you the same error. This has caused me grief in the past.