RabbitMQ v3.9.13 is failed to start

356 views
Skip to first unread message

Pradosh Chakra

unread,
Feb 28, 2022, 7:07:49 AM2/28/22
to rabbitmq-users
Hi Team,
I am using below RabbitMQ and Erlang versions.
RabbitMQ     : 3.9.13
Erlang            :  24.2.1

Environment : Windows 10

We have implemented the feature called "Renaming RabbitMQ cluster node so that the RabbitMQ will be independent form system hostname"

The following steps implemented to make RabbitMQ runs on its own hostname.

1.stop RabbitMQ
net stop RabbitMQ /yes
2. Remove RabbitMQ Service
rabbitmq-service.bat remove
3.Add Hostname To Hosts File in the location(C:\Windows\System32\drivers\etc)
127.0.0.1 ComputerHostname

4.Create Rabbitmq Environmental Config Bat file :
C:\Test\RabbitMQ\Data\rabbitmq-env-conf.bat
5 Add RabbitMQ To Services
rabbitmq-service.bat install
6.Start RabbitMQ Service
rabbitmq-service.bat start
7. set NodeName To Environment :
setx NODENAME ComputerHostname /M

However, as discussion with RabbitMQ team before i have tried all the steps and  the RabbitMQ is failed to start after this steps.

But when i remove the rabbitmq-env-conf.bat then RabbitMQ is working properly

RabbitMQ installation Directory : C:\Test\RabbitMQ\Data

Below are the Environment Variables to customize the RabbitMQ Directory :
RABBITMQ_BASE = C:\Test\RabbitMQ\Data
RABBITMQ_ADVANCED_CONFIG_FILE = C:\Test\RabbitMQ\Data\advanced.config
NODENAME = rabbit@ComputerHostname
RABBITMQ_NODENAME=rabbit@ComputerHostname

Logs are attached for your reference.

Please help me resolving this issue.
advanced config.txt
rabbitmq.log
rabbitmq-env-conf bat.txt
rabbitmq-env-conf bat1.txt
erl_crash.dump

Luke Bakken

unread,
Feb 28, 2022, 9:00:44 AM2/28/22
to rabbitmq-users
Hello,


You must go in the same order as I indicate. In addition, I did not instruct you to set the NODENAME env variable, but RABBITMQ_NODENAME.

Please re-try following my instructions exactly. If you still have an error, do the following:

  • Log in using the same administrative account you used to install RabbitMQ
  • Open an administrative cmd.exe prompt
  • Change to the RabbitMQ server installation directory
  • Run the following commands (substitute the host name you intend to use), save the output to a text file, and attach it to your response:
set LOG=debug
set
ping ComputerHostname
.\sbin\rabbitmq-service.bat stop
.\sbin\rabbitmq-server.bat

Thanks,
Luke

Pradosh Chakra

unread,
Feb 28, 2022, 10:05:34 PM2/28/22
to rabbitmq-users
Hi Team,
 I have tried by setting RABBITMQ_NODENAME = rabbit@ComputerHostname and followed all the above steps.

I found the same error that RabbitMQ failed to start.

Then i have tried with following instructions as u given

set LOG=debug
set
ping ComputerHostname
.\sbin\rabbitmq-service.bat stop
.\sbin\rabbitmq-server.bat

Here is the file for your reference.

Please help me to resolve the issue.

document.txt

Luke Bakken

unread,
Mar 1, 2022, 8:54:16 AM3/1/22
to rabbitmq-users
Hello,

Thanks, that is helpful information. Please note that the RABBITMQ_NODENAME environment variable is still not set correctly, only NODENAME.

You have something in your environment that is causing an error:

2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> BOOT FAILED 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> =========== 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> Exception during startup: 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> error:function_clause 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> rabbit_env:parse_double_quoted_literal/3, line 1838 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> args: [[],[], 2022-03-01 08:08:50.668000+05:30 [erro] <0.129.0> "eurt=KO_VNE\nLQSergtsoP\\NOM_SMNCENIS\\snemeiS

I will find time this week to investigate.

Thanks,
Luke
Message has been deleted
Message has been deleted

Adam Cammack

unread,
Mar 1, 2022, 11:43:45 AM3/1/22
to rabbitm...@googlegroups.com

Hello,

 

This error is caused by the extra trailing backslash at the end of one of the double-quoted PATH components: "C:\Test\config\Security\" . RabbitMQ's environment parser assumes Bourne shell-style values, so even though it is a valid path component on Widows we lack the ability to parse it currently. If you remove the backslash after Security you should be able to proceed. Also, as Luke mentioned you will need to set RABBITMQ_NODENAME.

 

Hope this helps,

Adam

 

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/0949f44d-df21-4878-885e-c790570f73e0n%40googlegroups.com.

Pradosh Chakra

unread,
Mar 2, 2022, 4:17:34 AM3/2/22
to rabbitmq-users
Hi Luke,
I have tried by setting  environment variable RABBITMQ_NODENAME=rabbit@ComputerHostname.

But Similar error happened and here i have attached the text file for your reference.

Please help me and suggest me any solution.

Regards,
Pradosh
doc.txt
Reply all
Reply to author
Forward
0 new messages