"rabbitmq-service.bat install exited with code 1" and other Rabbit errors when installing on Windows Server 2022 #13763
-
Community Support Policy
RabbitMQ version usedother (please specify) Erlang version used26.2.x Operating system (distribution) usedWindows Server 2022 How is RabbitMQ deployed?Windows installer rabbitmq-diagnostics status outputSee https://www.rabbitmq.com/docs/cli to learn how to use rabbitmq-diagnostics
Logs from node 1 (with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 2 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.confSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ clusterIf installing it manually, then first install the supported Erlang version by running Erlang installer. After that install Rabbit itself by running Rabbit installer. Then enable all the required plugins by running "rabbitmq-plugins.bat enable" commands. Steps to reproduce the behavior in questionExit code 1 issue during Rabbit installation on some Windows Server 2022 machines are hard to avoid - they can happen when installing Erlang and Rabbit silently wrapped inside our installer, when installing Erlang, Rabbit and plugins using batch script that we wrote and even when installing Erlang and Rabbit manually using their exe installers. advanced.configSee https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code# PASTE CODE HERE, BETWEEN BACKTICKS Kubernetes deployment file# Relevant parts of K8S deployment that demonstrate how RabbitMQ is deployed
# PASTE YAML HERE, BETWEEN BACKTICKS What problem are you trying to solve?Hi all, We seem to have a general problem with RabbitMQ installation on Windows Server 2022. Rabbit version that we are using is 3.13.7, with Erlang version 26.2.5.4. ( We also tried with Rabbit 4.0.8 and Erlang 27.3.2) On older Windows OS-es than 2022, for example on 2016 and 2019, we don't have any issues and our installer completes successfully every time. Despite this error broke the installation, RabbitMQ service was actually created and in Running state... But there is no Rabbit DB or log folder created yet.
Other errors that are randomly appearing are:
The point is that various different Rabbit related errors started happening on Server 2022 machines without any specific rule when or if a specific error will happen. But definitely the most common one is "rabbitmq-service.bat install exited with code 1". I tried the following and nothing helped:
Does anybody have an idea what is causing these errors? Has anything changed in latest Windows Server 2022 versions that might affect RabbitMQ installation? I currently solved this problem by:
But this is not the real solution, this is only a workaround because the cause for these issues remains unknown. Seems to me like Rabbit is less responsive and takes longer to start on Server 2022. Hope that someone can help us with these installation problems. Thank you in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@ivvuckovi I cannot know what specifically affects the service, you have to investigate that on your own. RabbitMQ 4.0.x and 4.1.x starts up much faster than earlier versions, in particular when there are no messages to recover or indexes to rebuild. Those "Distribution failed" messages contain context you have omitted. The shared secret of your effective OS user does not match. See How CLI Tools Authenticate to Nodes (and Nodes to Each Other) and CLI Tools Authentication Failures. |
Beta Was this translation helpful? Give feedback.
@ivvuckovi something prevents the node from starting a listener it uses for communicating with other nodes and CLI tools.
In addition to the guides above, see what ports RabbitMQ nodes use and Inter-node Communication.
According to the message, the node uses short names. This may or may not be expected, and such hostnames may or may not resolve in your case, see Cluster Formation Requirements.
We will not troubleshoot your networking, firewalls, and so on. This is very clearly stated in the community support policy.
Or just use WSL, or run RabbitMQ as an OCI container.