Error installing Windows Service

1,837 views
Skip to first unread message

Joseph L. Casale

unread,
Aug 2, 2021, 6:08:06 PM8/2/21
to rabbitmq-users
I am trying to install RabbitMQ on Windows 2019 Server in an environment with several group policy-based restrictions that I assume are interfering with the installation.

When I run the rabbitmq-service.bat file using an elevated terminal, the following error is shown when installing the service:

c:\Program Files\erl-24.0.5\erts-12.0.3\bin\erlsrv: Service RabbitMQ added to the system.
c:\Program Files\erl-24.0.5\erts-12.0.3\bin\erlsrv: Unrecognized option neighbours:.

It appears the actual string in the error is empty as there is nothing between the colon and period.

The resulting Erricson service definition is created with an env multi-line string value that is empty.

Does anyone have an idea which facility may be failing during installation?

Thanks.

Mátyás Dulácska

unread,
Jan 5, 2023, 4:41:42 AM1/5/23
to rabbitmq-users
Hi,

I have the same problem (with Erlang version 25.2 and RabbitMQ version 3.11.5).
Could anyone solve this error, or understand its reason?

Thanks

Luke Bakken

unread,
Jan 5, 2023, 9:53:16 AM1/5/23
to rabbitmq-users
Hi  Mátyás,

Please follow these steps exactly and copy everything from your terminal into a file to attach to your next response -
  • Open an administrative command prompt
  • Change to the RabbitMQ server's sbin directory (most likely C:\Program Files\RabbitMQ Server\rabbitmq*\sbin)
  • Run these commands:
.\rabbitmq-service.bat stop
.\rabbitmq-service.bat remove
set
.\rabbitmq-service.bat install
.\rabbitmq-service.bat start

Thanks,
Luke

Mátyás Dulácska

unread,
Jan 9, 2023, 12:13:13 PM1/9/23
to rabbitmq-users
Hi Luke ,

Thank you for your answer, checking environment variables with "set" helped me to solve my problem.

I have seen earlier the importance of HOMEDRIVE (https://github.com/rabbitmq/rabbitmq-server/discussions/6581#discussioncomment-4420812), but when I checked my env variables in system properties, HOMEDRIVE was not present there, so I didnt understand whats going on. But it was present in cmd after "set", and setting its value (to the same drive on which I wanted to do installation) solved my problem, so I could install RabbitMQ and it operates well since.

Thank you for your help,
Mátyás
Reply all
Reply to author
Forward
0 new messages