63

I am getting a strange error while restarting the rabbitmq service and because of that I am unable to restart RabbitMQ service. I got this message from EventViewer and have tried to find solution by googling but no luck..please suggest.

RabbitMQ: Erlang machine voluntarily stopped. The service is not restarted as OnFail is set to ignore.

Thanks

9 Answers 9

130

On a modern Linux you can restart it like any other service

sudo service rabbitmq-server restart

There is a specific control interface as well

sudo rabbitmqctl "report"
sudo rabbitmqctl "reset"
3
  • 1
    Oh, I see you have a windows tag, didn't notice that.
    – Jeff
    May 24, 2012 at 17:33
  • 12
    Funny thing here is: The question has a windows tag, but this answer 10 upvotes, 10 upvotes directly to Linux :D May 2, 2014 at 8:25
  • People dont see it's for windows question as I didn't. But it's resolving linux users problems ehehehe Jan 27, 2021 at 18:59
32

As per the documentation of RabbitMQ CLI docs you can do the following:

rabbitmqctl stop
rabbitmqctl start_app
13

Since none of the answers actually answer the question, in command prompt, type:

net stop rabbitmq
net start rabbitmq
1
  • Yeah, that answers the question. Worked for me on Win7
    – lunesco
    Apr 7, 2019 at 14:58
11

If you reinstall RabbitMQ and have issues running it as a windows service, a workaround could be the following:

In cmd.exe, run from the rabbit sbin folder:

rabbitmq-service.bat remove
rabbitmq-service.bat install
net start rabbitmq

It worked for me on windows 7.

5

in Your installed server first run stop command

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.8\sbin>rabbitmqctl.bat stop

Then start command:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.8\sbin>rabbitmqctl.bat start_app

Or via GUI windows service : right click and then click on restart :

enter image description here

2

in my case helped start by direct call

sudo  /usr/lib/rabbitmq/bin/rabbitmq-server
1

If you are using a windows machine and RabitMQ is installed in the machine, then got to C:\Program Files\RabbitMQ Server\rabbitmq_server-\sbin>

and run the following command

rabbitmqctl stop_app
rabbitmqctl force_reset
rabbitmqctl start_app

And it will look like this

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>rabbitmqctl stop_app
Stopping rabbit application on node rabbit@DESKTOP-MQS...

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>rabbitmqctl force_reset
Forcefully resetting node rabbit@DESKTOP-MQS...

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>rabbitmqctl start_app
Starting node rabbit@DESKTOP-MQS...

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.5\sbin>
0

First go to C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.6\sbin then run command prompt as administrator and run rabbitmq-server restart

Make sure to go to the correct directory.

0

I have tried various options in server. Finally it resolved.

  1. Install Erlang version at first as a Administrator
  2. Install RabbitMQ version as a Administrator
  3. Delete db file in the RabbitMQ installation folder

Still issues persists, check the environment variables for RabbitMQ and Erlang

Hope this will help!.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.