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

Jordan Feldstein picture Jordan Feldstein · Jan 5, 2012 · Viewed 64k times · Source

Rabbitmq server does not start, saying it's already running:

$: rabbitmq-server
Activating RabbitMQ plugins ...
0 plugins activated:

node with name "rabbit" already running on "android-d1af002161676bee"
diagnostics:
- nodes and their ports on android-d1af002161676bee: [{rabbit,52176},
                                                      {rabbitmqprelaunch2254,
                                                       59205}]
- current node: 'rabbitmqprelaunch2254@android-d1af002161676bee'
- current node home dir: /Users/Jordan
- current node cookie hash: ZSx3slRJURGK/nHXDTBRqQ==

But, rabbitmqctl seems to think otherwise:

rabbitmqctl -n rabbit status
Status of node 'rabbit@android-d1af002161676bee' ...
Error: unable to connect to node 'rabbit@android-d1af002161676bee': nodedown
diagnostics:
- nodes and their ports on android-d1af002161676bee: [{rabbit,52176},
                                                      {rabbitmqctl2462,59256}]
- current node: 'rabbitmqctl2462@android-d1af002161676bee'
- current node home dir: /Users/Jordan
- current node cookie hash: ZSx3slRJURGK/nHXDTBRqQ==

Any takers?

Answer

Jordan Feldstein picture Jordan Feldstein · Jan 5, 2012

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}