How to restart RabbitMQ service - rabbitmq

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

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"

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

Since none of the answers actually answer the question, in command prompt, type:
net stop rabbitmq
net start rabbitmq

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.

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 :

in my case helped start by direct call
sudo /usr/lib/rabbitmq/bin/rabbitmq-server

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>

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.

Related

RabbitMQ node 'rabbit' not running at all

Some of the commands I've tried running
Some more of the commands I've tried running
I've recently tried installing RabbitMQ version 3.8.2 through chocolatey which in turn installs erlang version 22.3 . I've checked that the erlang cookies match, that the port 4369 is open and listening. I've added an environment variable called "RABBITMQ_NODENAME" with the value "rabbit#localhost". I've tried uninstalling and reinstalling countless times and I've also tried running most cli commands but cannot for the life of me get the node running. I can't get a status out of rabbitmqctl or rabbitmq-diagnostics because the node isn't running and when I try to run the start_app command it doesn't work and returns nothing for the error message. Any help would be greatly appreciated!

RabbitMQ Boot failed. Getting logger error

I am trying to run rabbitmq server on my mac and i keep getting this error:
Starting broker...Logger - error: {removed_failing_handler,rabbit_log}
BOOT FAILED
I have tried reinstalling it several times and even logged into local host but see the same error.
Managed to fix it. Ran these commands to fully uninstall RabbitMQ (vhosts, users too).
sudo apt-get remove --auto-remove rabbitmq-server
sudo apt-get purge --auto-remove rabbitmq-server
Then after I reinstalled everything worked.
Another possibility is that you are running it on Big Sur- it keeps on giving errors to me that I didn't get previously.
Try pip3 uninstall rabbitmq-server then pip3 install rabbitmq server- that worked for me.

Error starting Datastax OpsCenter

Can anyone help troubleshoot Datastax Opscenter installation? Its a new install on clean Ubuntu 14 server. Using apt-get to install, no issues, /var/log/opscenter is empty, but getting the following after tring to start the service, and it doesn't run:
root#unigmadevdse3:/var# service opscenterd start
root#unigmadevdse3:/var# service opscenterd status
* could not access pidfile for Cassandra cluster manager opscenterd root#unigmadevdse3:/var#
What is the version of OpsCenter that you are trying to install? Could you check the ownership/permissions of /var/run/opscenter? Also, can you please check disk space on /var? Try using su to switch to the opscenter user and try $ touch /var/run/opscenter/opscenter.pid. Be sure to remove it after.

How to remove Rabbitmq so I can reinstall

I was having trouble, so I went into the registry and removed the service entry for rabbitmq. Now when I try to reinstall it says it already exists but it doesn't start (since I removed it) and I can do a sc delete rabbitmq. How do I totally remove all traces of it and reinstall from scratch? I guess it exists somewhere and the registry entry is all that is gone and the install program says it us just updating it when I do the rabbitmq-service install. I tried
rabbitmq-service remove but it says it doesn't exist.
I would suggest as follows:
sudo apt-get remove --auto-remove rabbitmq-server
sudo apt-get purge --auto-remove rabbitmq-server
It will uninstall rabbitmq and purge all data (users, vhost..)
RabbitMQ writes the service information into HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
To remove RabbitMQ manually you have to:
remove the key HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ
remove the directory C:\Users\%USERNAME%\AppData\Roaming\RabbitMQ
remove the installation-folder.
Next time I suggest to use the rabbitmq-service.bat command to install and remove the service.
you have to execute it as administrator
You have to uninstall the Erlang and Rabbitmq both. After you are done with the uninstall, then try to install the Rabbitmq and it will ask you to install Erlang again.

Boot2Docker start up fails in windows

I am trying to start docker from winodws7 enterprise edition.
boot2docker start
results
Waiting for VM and Docker daemon to start...
..........................................................................oooooo
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
Trying to get Docker socket one more time
Error requesting socket: exec: "ssh": executable file not found in %PATH%
Docker client does not run on Windows for now. Please use
"boot2docker" ssh
to SSH into the VM instead.
I tried this link. But All answers doesn't help me. I have re-installed the boot2docker and powered off boot2docker-vm in Virtual machine and restarted. Virtualisation is enabled in my bios. My Sys has better capabilities.
Using 1.4.1 version.
Please Some Suggestions?
As boot2docker complained, you don't have ssh in your path. Please add ssh.exe into Windows path (it might not be visible, but boot2docker installation includes msys-git installation which includes ssh.exe, so you need to add Git installation directory in path, e.g.
c:\Program Files (x86)\Git\bin