Error while installing RMQ on Windows

3,889 views
Skip to first unread message

sunny...@springernature.com

unread,
Jul 5, 2018, 3:23:39 PM7/5/18
to rabbitmq-users
Hi All, I was installing RabbitMQ on my windows machine with RMQ version  rabbitmq-server-3.7.6. Here is the sequence of action I performed(And I guess I messed up) . 
First I installed Erlang version 21.0.1 and was facing some issue while installing plugin later I found max supported version is 20.3.x so I uninstall the previous version of Erlang and my RMQ service (but uninstall did not delete the  service from my windows and then I used " sc delete <servicename>" to delete the service from windows). Now I am installing Erlang 20.3 and then installing RMQ service. It installed successfully (But service in windows not created by itself) . 
When I am trying to start or stop the service it is saying "The service name is invalid" and if I try to install the service using rabbitmq-service.bat install command it is saying : 
"RabbitMQ service is already present - only updating service parameters
D:\RabbitMQ\OTP\erl9.3\erts-9.3\bin\erlsrv: Warning, could not set correct interactive mode. RabbitMQ
Error: The handle is invalid.
D:\RabbitMQ\OTP\erl9.3\erts-9.3\bin\erlsrv: Warning, could not set correct service description (comment) RabbitMQError: The handle is invalid."

Please help me how to resolve this situation. I have tried many times uninstall and installing the services but it didn't help
RMQError.png

Luke Bakken

unread,
Jul 5, 2018, 3:30:31 PM7/5/18
to rabbitmq-users
Hi Sunny,

Please be sure to execute all of your commands in a command shell that has administrative privileges.

If that does not work, let me know.

Thanks,
Luke

sunny...@springernature.com

unread,
Jul 6, 2018, 2:21:32 AM7/6/18
to rabbitmq-users
Hi Luke,

Yes I am using "Run as Administrator" while executing all the commands. 

FYI...I could successfully installing the same binaries on my colleague. 

Looks like while uninstalling (or executing sc delete <service-name) did not uninstalled/ clean the environment properly. As while installing it is saying service already exists. How can I be sure all variable are properly set and all the old references are removed after uninstall. 

Regards
Sunny

sunny...@springernature.com

unread,
Jul 6, 2018, 3:14:15 AM7/6/18
to rabbitmq-users
Hi All,

Attaching logs of commands executed with @echo on. Hope this can help to look inside where exactly it is failing

Regard
Sunny

On Friday, July 6, 2018 at 12:53:39 AM UTC+5:30, sunny...@springernature.com wrote:
install.txt
remove.txt
start.txt

sunny...@springernature.com

unread,
Jul 6, 2018, 9:10:28 AM7/6/18
to rabbitmq-users
Hi All,

Finally find a solution to my problem. Keys were getting generated in registry at location : HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ , which was not getting removed while uninstall. Removed the folder from registry and now able to install and start the service.


Follow above link for more reference.

Regard & Cheers
Sunny

On Friday, July 6, 2018 at 12:53:39 AM UTC+5:30, sunny...@springernature.com wrote:

Luke Bakken

unread,
Jul 6, 2018, 9:39:07 AM7/6/18
to rabbitmq-users
Hi Sunny,

Thanks for following up. My next step was to have you start searching for and deleting registry keys, which you figured out.

Luke
Message has been deleted

Nafeez Abrar

unread,
Mar 30, 2019, 11:38:25 PM3/30/19
to rabbitmq-users
Hi Sunny, Thanks a lot for your suggestion.
Reply all
Reply to author
Forward
0 new messages