You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There multiple way to replicate the issue this one is simpler:
Download ProcessExplorer from Microsoft
Open ProcessExplorer
Delete the RabbitMQ service (it won't be deleted, it will be marked for deletion)
Install RabbitMQ service (It will fail)
Here is result from step 4:
rabbitmq_server-3.6.4\sbin>rabbitmq-service.bat install
C:\Program Files\erl8.1\erts-8.1\bin\erlsrv: Unable to register RabbitMQ service with service manager.
Error: The specified service has been marked for deletion.
C:\Program Files\erl8.1\erts-8.1\bin\erlsrv: No service with the name RabbitMQ exists.
rabbitmq_server-3.6.4\sbin>echo Exit Code is %errorlevel%
Exit Code is 0
RabbitMQ service installer returned that there no error, when in reality there was one.
I wasn't able to reproduce it exactly as described above however it is clear that the install batch file does not check the ERRORLEVEL of the last erlsrv command and instaed just skip to the :END label that exits with a '0'. I will add a check and we can do some more testing. @michaelklishin should I submit against stable?
When testing I also noted a scenario we won't be able to handle which is this. Here erlsrv does not return a non-zero exit code as this error isn't considered severe enough.
There multiple way to replicate the issue this one is simpler:
Here is result from step 4:
RabbitMQ service installer returned that there no error, when in reality there was one.
https://github.com/rabbitmq/rabbitmq-server/blob/master/scripts/rabbitmq-service.bat
The text was updated successfully, but these errors were encountered: