collinglass
collinglass

Reputation: 830

RabbitMQ: starting the server

I downloaded rabbitmq on my mac via homebrew. Following these instructions I added sbin to path then called:

$ rabbitmq-server

and got the following error:

``` BOOT FAILED ===========

Error description:
   {error,
       {cannot_delete_plugins_expand_dir,
           ["/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand",
            {cannot_delete,
                 "/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/amqp_client-3.3.2/ebin/amqp_auth_mechanisms.beam",
            eacces}]}}

Log files (may contain more information):
   /usr/local/var/log/rabbitmq/[email protected]
   /usr/local/var/log/rabbitmq/[email protected]

Stack trace:
   [{rabbit_plugins,prepare_plugins,3,
                  [{file,"src/rabbit_plugins.erl"},{line,123}]},
    {rabbit,'-boot/0-fun-1-',0,[{file,"src/rabbit.erl"},{line,332}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,354}]},
    {init,start_it,1,[]},
    {init,start_em,1,[]}]

{"init terminating in do_boot",{rabbit,failure_during_boot,{error {cannot_delete_plugins_expand_dir,["/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost plugins-expand",{cannot_delete,"/usr/local/var/lib/rabbitmq/mnesia/rabbit@localhost-plugins-expand/amqp_client-3.3.2/ebin/amqp_auth_mechanisms.beam",eacces}]}}}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Anyone encounter this error before?

Upvotes: 3

Views: 6999

Answers (4)

sashaboulouds
sashaboulouds

Reputation: 1854

Check permissions:

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

Upvotes: 2

random-forest-cat
random-forest-cat

Reputation: 35954

another option is to try with sudo rabbitmq-server to launch server with correct user permissions

Upvotes: 6

Shubham
Shubham

Reputation: 3163

This worked for me - sudo rm -rf /usr/local/var/lib/rabbitmq/

Upvotes: 7

nancy_yeah
nancy_yeah

Reputation: 69

I run into the same problem, it should be caused by the access error

enter image description here

you just need to change the access to the rabbitmq user. then it worked.

 chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/mnesia/rabbit@l-pg/msg_store_transient

enter image description here

Upvotes: 2

Related Questions