Rabbitmq -> epmd reports: node 'rabbit' not running at all?

ubuntu@hostname:~$ sudo service rabbitmq-server start
 * Starting message broker rabbitmq-server                                        [ OK ]
ubuntu@hostname:~$ sudo service rabbitmq-server  stop
 * Stopping message broker rabbitmq-server                                                * message broker already stopped
                                                                              [ OK ]
ubuntu@hostname:~$ sudo service rabbitmq-server status
Status of node 'rabbit@hostname' ...
Error: unable to connect to node 'rabbit@hostname': nodedown

DIAGNOSTICS
===========

attempted to contact: ['rabbit@hostname']

rabbit@hostname:
* connected to epmd (port 4369) on hostname
* epmd reports: node 'rabbit' not running at all
              no other nodes on hostname
* suggestion: start the node

current node details:
- node name: 'rabbitmq-cli-19082@hostname'
- home dir: /var/lib/rabbitmq 
- cookie hash: Zoi/1N8mjGUsELj8Z7yzoA==

ubuntu@hostname:~$

I tried to reset it using sudo rabbitmqctl reset and sudo rabbitmqctl force_reset both did not work.


remove /var/log/rabbitmq/* and start it back

from : https://groups.google.com/forum/#!topic/rabbitmq-users/w0aJNmfz1N8


In my case it was a problem with the service not started properly.

After trying the accepted solution I just did an additional

service rabbitmqserver restart

and it worked. After that, the second node connected without problems again to the other node.