RabbitMQ node stops right after installation #12991
-
Describe the bugWe install RMQ 3.10.6 and Erlang 25.0.3 as part of our installation environment. On this Windows Server 2022 on Domain, the service wouldn't start. We upgraded (basically uninstall and reinstall) to 4.0.4 and 27.2 still get the same problem. I have the steps I followed below. In all our windows envs, it installed successfully. But on this customer server, it crashes as soon as it starts. I have the logs and the entire RMQ folder attached. Reproduction steps
Expected behaviorThe RMQ service should start and not crash. Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
What is different about this server vs all others? Please do the following:
|
Beta Was this translation helpful? Give feedback.
-
Exception from log file:
|
Beta Was this translation helpful? Give feedback.
-
The problem is that RabbitMQ can't determine the home directory for the user who installed RabbitMQ on this particular Windows machine. This code: ...calls this code: ...which means that the Erlang VM can't determine the value for https://github.com/erlang/otp/blob/maint-27/erts/etc/common/erlexec.c#L1629-L1651 On Windows, this code uses The zip file you provided shows that there is a zero-byte file named |
Beta Was this translation helpful? Give feedback.
-
A mandatory mention of the fact that RabbitMQ 3.10.x has been out of community support for more than two years. |
Beta Was this translation helpful? Give feedback.
The problem is that RabbitMQ can't determine the home directory for the user who installed RabbitMQ on this particular Windows machine.
This code:
https://github.com/rabbitmq/rabbitmq-server/blob/v4.0.x/deps/rabbit/src/rabbit.erl#L1401
...calls this code:
https://github.com/rabbitmq/rabbitmq-server/blob/v4.0.x/deps/rabbit/src/rabbit.erl#L1679-L1683
...which means that the Erlang VM can't determine the value for
home
when it starts. This is the code that determines the home directory on Windows:https://github.com/erlang/otp/blob/maint-27/erts/etc/common/erlexec.c#L1629-L1651
On Windows, this code uses
HOMEDRIVE
andHOMEPATH
, or the value ofUSERPROFILE
, to determine the home directory. Th…