Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RabbitMQ fails to start

The RabbitMQ windows service will not start:

C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.0.4\sbin>rabbitmq-service.bat start
C:\Program Files (x86)\erl5.10.1\erts-5.10.1\bin\erlsrv: Failed to start service RabbitMQ.
Error: The process terminated unexpectedly.

I can run rabbitmq-server.bat without any problems.

No log entries are made to %appdata%\RabbitMQ\log\ directory when trying to start the service.

Any suggestions to how I make it work? Please...

like image 226
Rolf Avatar asked Apr 14 '13 15:04

Rolf


People also ask

How do you fix RabbitMQ?

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.

How do I start RabbitMQ on localhost?

Run RabbitMQ Service The RabbitMQ service starts automatically. You can stop/reinstall/start the RabbitMQ service from the Start Menu. Once all done open : http://localhost:15672/ for opening the rabbitmq management.


8 Answers

I faced the same problem and was able to solve the problem following the steps mentioned below.

  1. Run the command prompt as Administrator
  2. Navigate to the sbin directory and uninstall the service. rabbitmq-service remove
  3. Reinstall the service rabbitmq-service install
  4. Enable the plugins. rabbitmq-plugins enable rabbitmq_management
  5. Start the service rabbitmq-service start
  6. Go to "http://localhost:15672/"
like image 77
Yasin Avatar answered Oct 23 '22 01:10

Yasin


Problem solved!

My IT department has mapped %appdata% to a network share and it seems that the RabbitMQ scripts can’t work with that.

I solved the problem this way: Set the environment variable “RABBITMQ_BASE” to “c:\rabbitmq”, uninstall the service (rabbitmq-service.bat remove) and install the service again (rabbitmq-service.bat install).

like image 39
Rolf Avatar answered Oct 23 '22 01:10

Rolf


In my case helped running console as an administrator

like image 35
komizo Avatar answered Oct 23 '22 01:10

komizo


Deleting "AppData\Roaming\RabbitMQ" solved this problem for me

like image 23
user1892777 Avatar answered Oct 22 '22 23:10

user1892777


I restarted my computer after install and things are running a lot smoother

like image 20
Micah Armantrout Avatar answered Oct 23 '22 01:10

Micah Armantrout


- check Erlang compatability with RabbitMQ

** Installtion

  • Install Erlang
  • Install Rabbit_MQ
  • Set system variables

Set Environment variable-

  • RABBITMQ_BASE c:\RabbitMQ Server
  • ERLANG_HOME C:\Program Files\erl10.7

Config MQ Server

  • stop RabbitMq : rabbitmq-service.bat stop
  • Enable management : rabbitmq-plugins.bat enable rabbitmq_management
  • Reinstall server : rabbitmq-service.bat install
  • Start Server : rabbitmq-service.bat start
  • Start App : rabbitmqctl.bat start_app
  • Open Brower : http://localhost:15672 user guest / guest

Add new User

  • List users : rabbitmqctl.bat list_users

  • Add new user : rabbitmqctl.bat add_user user1 pass1

  • Give administrator privileges : rabbitmqctl.bat set_user_tags user1

like image 29
Appsstuff Solutions Avatar answered Oct 22 '22 23:10

Appsstuff Solutions


Deleting HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ folder from Registry has solved the problem for me. I have to reinstall (uninstall and install) the RabbitMQ after deleting the registry.

Moreover, I have deleted C:\Users\<USERNAME>\AppData\Roaming\RabbitMQ earlier.

I have found the solution from a post of a google group.

like image 41
Nafeez Abrar Avatar answered Oct 23 '22 00:10

Nafeez Abrar


My situation was caused by wrong Erlang version. I solved it by the following steps:

  1. Uninstall the older version Erlang
  2. Install the newly version Erlang accordding to https://www.rabbitmq.com/which-erlang.html
  3. Reinstall RabbitMQ
  4. Install RabbitMQ plugin by opening the Windows's cmd and switch to the sbin directory eg.Your-Path\rabbitmq_server-3.7.13\sbin and execute the command rabbitmq-plugins.bat enable rabbitmq_management
  5. Start RabbitMQ and visit http://localhost:15672/
like image 32
Aaron Avatar answered Oct 22 '22 23:10

Aaron