Reputation: 1298
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.
How to make it work?
Upvotes: 33
Views: 94744
Reputation: 494
Another weird answer to the pile:
After upgrading Erlang OTP, the old versions (10.5, 15.2.2, and 15.2.2.5) did not cleanly uninstall and left files behind in c:\Program Files. I was unable to delete the files manually due to erlsrv.exe being "open in Windows Event Viewer" (wtf?). I had to use msconfig to restart the system to safe mode with networking and delete the file. After a normal restart and reinstalling Erlang OTP and RabbitMQ things were back to normal.
Upvotes: 0
Reputation: 6378
None of the suggestions in this thread helped me and looks like I had a different issue. So what I figured out, after power outage our Rabbit stopped starting with the same error.
After some research I already wanted to reinstall RabbitMQ and Erlang like many others did in this thread but then I decided to spend a bit more time to figure out what could be the real reason...
I could literally do nothing. Couldn't get crash dump to get any ideas what could be wrong. So I decided to try to start server manually with ./rabbitmq-server.bat
command. In order to do that open CMD with Admin privileges and go to sbin
folder C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\sbin
and start it from there. And voilà! I got this error message
Have no idea what could happen with the library and what was the reason why it disappeared but after installing VS C++ Redistributable package from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2013-vc-120 and RabbitMQ is back to live!
In my case I installed Visual Studio 2013 (VC++ 12.0) but it may be different in your case depending on Rabbit version you use.
And it's definitely better and faster option than reinstalling RabbitMQ and Erlang!
Upvotes: 2
Reputation: 1
After attempting to run RabbitMQ commands through CMD (hint, sbin dir can be launched directly from RabbitMQ Server in the start menu in Windows) I got the error Unable to load emulator (beam.smp.dll)
I reinstalled my version of ERLang (windows dir C:/Program Files/erl.VERSION NUMBER) and the service started right up without issues.
Upvotes: 0
Reputation: 21
I tried everything mentioned above. Nothing worked for me. I figured out that Erlang and RabbitMQ version should be compatible for it to work fine. Take a look here https://www.rabbitmq.com/which-erlang.html.
Just uninstall Erlang and RabbitMQ from your system and install the compatible versions.
Upvotes: 0
Reputation: 19
I faced the same issue of 1067 error in Windows 10. It turns out the rabbitmq config file in location C:\Users\IPS\AppData\Roaming\RabbitMQ\advanced.config
was having some syntax error. It was changed from the default configuration. Also, the rabbitmq.conf
file at the same location also had a syntax error. I removed the rabbitmq.conf
file and removed the changes from the advanced.config
file. After that ranbbitmq service started without any issues.
Upvotes: 0
Reputation: 1
I renamed my computer and restart. Then everything works fine. I guess Chinese characters effect the rabbit service.
old name: 孙 new name: adam
Upvotes: 0
Reputation: 188
I have also come across similar problem, but found that the problem due to folder named "Program" in the OS drive.
Upvotes: 0
Reputation: 121
- check Erlang compatability with RabbitMQ
** Installtion
Set Environment variable-
Config MQ Server
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
Upvotes: 6
Reputation: 1075
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.
Upvotes: 4
Reputation: 11
My situation was caused by wrong Erlang version. I solved it by the following steps:
Your-Path\rabbitmq_server-3.7.13\sbin
and execute the command rabbitmq-plugins.bat enable rabbitmq_management
Upvotes: 1
Reputation: 2029
I faced the same problem and was able to solve the problem following the steps mentioned below.
Upvotes: 55
Reputation: 577
run the following command after installation rabbitmq-plugins enable rabbitmq_management on rabbit mq pathRabbitMQ Server\rabbitmq_server-3.6.9\sbin>rabbitmq-plugins enable rabbitmq_management
Upvotes: 0
Reputation: 4331
How I solved the same issue... Reinstalled Erlang from x86 to x64. Also checked the option to install Microsoft distributed dlls. I don't know which one of two helped me but it helped at least.
Upvotes: 0
Reputation: 6971
I restarted my computer after install and things are running a lot smoother
Upvotes: 4
Reputation: 1298
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).
Upvotes: 28