Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rabbit MQ fails to start

I have finished installing RabbitMQ using the following RPM

http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/rabbitmq-server-2.7.1-1.noarch.rpm

i installed it like so :

$ wget \ http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/rabbitmq-server-2.7.1-1.noarch.rpm
$ rpm --nodeps -Uvh rabbitmq-server-2.7.1-1.noarch.rpm

the reason i used --nodeps was because i installed erlang from source and the rpm will try looking for an erlang.rpm dependency ignoring the one on the system.

When i try to start the Rabbit MQ server i get this error :

/usr/lib/rabbitmq/bin/rabbitmq-server: line 73: /var/lib/rabbitmq/mnesia/rabbit@
vz129.pid: Permission denied
{"init terminating in do_boot",{undef,[{rabbit_prelaunch,start,[]},{init,start_i
t,1},{init,start_em,1}]}}

Im using CentOS release 4.9 (Final).

Any help is appreciated.

like image 619
Paulo Avatar asked Jan 24 '12 02:01

Paulo


People also ask

Why is RabbitMQ not running?

Make sure the node is running using rabbitmq-diagnostics status. Verify config file is correctly placed and has correct syntax/structure. Inspect listeners using rabbitmq-diagnostics listeners or the listeners section in rabbitmq-diagnostics status. Inspect effective configuration using rabbitmq-diagnostics environment.

How do I reset RabbitMQ?

To reset a running and responsive node, first stop RabbitMQ on it using rabbitmqctl stop_app and then reset it using rabbitmqctl reset: # on rabbit1 rabbitmqctl stop_app # => Stopping node rabbit@rabbit1 ... done.


1 Answers

It seems like it was a permissions error. all i did was run :

chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

and it worked :D

like image 111
Paulo Avatar answered Sep 19 '22 13:09

Paulo