Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ubuntu rabbitmq - Error: unable to connect to node 'rabbit@somename: nodedown

I am using celery for django which needs rabbitmq. Some 4 or 5 months back, it used to work well. I again tried using it for a new project and got below error for rabbitmq while listing queues.

Listing queues ...
Error: unable to connect to node 'rabbit@somename': nodedown
diagnostics:
- nodes and their ports on 'somename': [{rabbitmqctl23014,44910}]
- current node: 'rabbitmqctl23014@somename'
- current node home dir: /var/lib/rabbitmq
- current node cookie hash: XfMxei3DuB8GOZUm1vdUsg==

Whats the solution? If there is no good solution, can I uninstall and reinstall rabbitmq ?

like image 370
user2139745 Avatar asked Mar 30 '13 16:03

user2139745


1 Answers

Check if the server is running by using this command:

sudo service rabbitmq-server status

If it says

Status of all running nodes...

Node 'rabbit@ubuntu' with Pid 26995:

running done.

It's running.

In my case, I accidentally ran the rabbitmqctl command with a different user and got the error you mentioned.

You might have installed it with root, try running

sudo rabbitmqctl stop_app

and see what the response is.

(If everything's fine, run sudo rabbitmqctl start_app afterwards).

like image 66
Northern Pole Avatar answered Sep 21 '22 08:09

Northern Pole