Installing RabbitMQ 3.11.5 Node not running issue...

291 views
Skip to first unread message

Steven Ogilvie

unread,
Jan 10, 2023, 11:12:30 AM1/10/23
to rabbitmq-users

We have gone from:
RabbitMQ:          3.9.15

Erlang:                  24.3.4.2

OpenSLL:             3.0.7

 

To

RabbitMQ:          3.11.5

Erlang:                  25.1.2

OpenSSL:             3.0.7

The 3.9.15 installer we have wrapped around was working successfully, but now with the version 3.11.5, the installer is failing when we are verifying that the node is running, I have attached a zip containing log files.

BTW in the RabbitMQ.conf file during the install we uncomment the following lines:
#~uncomment_authmech~

#~uncomment~

 In the MSI log file, the failure starts at line 1131:

MSI (s) (EC:34) [12:56:50:174]: Executing op: ActionStart(Name=VerifyRabbitNodeRunning,Description=Waiting for RabbitMQ node to be fully booted and running...,)

VerifyRabbitNodeRunning: pathToRabbitmqDiagnosticsBat is: C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.5\sbin\rabbitmq-diagnostics.bat

VerifyRabbitNodeRunning: CheckRunningArgument is: check_running

VerifyRabbitNodeRunning: RunProcess: Running C:\Program Files\RabbitMQ Server\rabbitmq_server-3.11.5\sbin\rabbitmq-diagnostics.bat with argument check_running returned 69 - Error: unable to perform an operation on node 'rabbit@VM12208'. Please see diagnostics

 Would you be able to let me know what is wrong?

 Happy New Year,

Steve

RabbitMQ_3.11.5_FailedInstall.zip

Luke Bakken

unread,
Jan 10, 2023, 11:36:35 AM1/10/23
to rabbitmq-users
Hi Steve,

I see this in the RabbitMQ log files:

2023-01-09 12:58:17.085000-05:00 [error] <0.803.0> ** Connection attempt from node 'rabbitmqcli-256-rabbit@VM12208' rejected. Invalid challenge reply. **

This means that the Erlang cookie being used by rabbitmq-diagnostics.bat does not match what RabbitMQ is using.

The windows service runs as SYSTEM so the cookie file it's using is at C:\Windows\system32\config\systemprofile\.erlang.cookie

Be sure that the same file is in the home directory of the effective user account that is running rabbitmq-diagnostics.bat

If that's not possible during the execution of your MSI we can probably come up with clever ways of setting the cookie value via erl.exe VM arguments.

This behavior hasn't changed between 3.9 and 3.11 so I'm not really sure why you're running into this issue.

Thanks,
Luke

Steven Ogilvie

unread,
Jan 10, 2023, 12:52:39 PM1/10/23
to rabbitm...@googlegroups.com

Hi Luke,

 

I see 4 .erlang.cookie’s in my VM:
C:\
C:\Users\LocalAdmin (user that is login into windows)

C:\Windows\ServiceProfiles\LocalService

C:\Windows\System32\config\systemprofile

They are all the same except for the C:\Users\LocalAdmin one

Strange they all have the same date modified

 

Steve

 

--
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/295613f5-4645-4bf0-bbf4-5a69949f7d29n%40googlegroups.com.

Luke Bakken

unread,
Jan 10, 2023, 1:22:44 PM1/10/23
to rabbitmq-users
OK that explains the issue.

Your installer will have to ensure that the cookie files are synchronized after the RabbitMQ windows service starts but before the first rabbitmq-diagnostics.bat command is executed. Otherwise, when that command is run it will write it's own cookie file which won't match what RabbitMQ is using.

Thanks,
Luke

Luke Bakken

unread,
Jan 10, 2023, 1:23:24 PM1/10/23
to rabbitmq-users
Or, you can write your own cookie files prior to installing RabbitMQ. The file is treated as a binary blob.

Luke Bakken

unread,
Jan 10, 2023, 1:24:32 PM1/10/23
to rabbitmq-users
Whoops, I should say the file should contain valid ASCII or UTF-8 encoded characters. It is turned into an Erlang atom internally.

Steven Ogilvie

unread,
Jan 10, 2023, 1:48:27 PM1/10/23
to rabbitm...@googlegroups.com

Which .erlang.cookie should I use as the reference?

The C:\Users\LocalAdmin? Or the C:\Windows\System32\config\systemprofile?

Thanks,

Steve

 

--

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.

Luke Bakken

unread,
Jan 10, 2023, 3:17:34 PM1/10/23
to rabbitmq-users
Sorry, I should have been clear about this.

When your installer installs and starts the RabbitMQ Windows service, if the file C:\Windows\System32\config\systemprofile\.erlang.cookie does not exist, the Erlang VM will write one there. Then, your installer should copy that file to the home directory of the user account that will be running rabbitmq-diagnostics.bat

Steven Ogilvie

unread,
Jan 11, 2023, 10:37:07 AM1/11/23
to rabbitm...@googlegroups.com

Luke,

 

Thank you, works like a charm, used the C:\Windows\System32\config\systemprofile .erlang.cookie and copied it to C:\Users\<username> and C:\ as well as the C:\Windows\ServiceProfiles\LocalService

 

Thank you,

 

Steve

 

From: rabbitm...@googlegroups.com <rabbitm...@googlegroups.com> On Behalf Of Luke Bakken
Sent: January 10, 2023 3:18 PM
To: rabbitmq-users <rabbitm...@googlegroups.com>
Subject: Re: [rabbitmq-users] Re: Installing RabbitMQ 3.11.5 Node not running issue...

 

Sorry, I should have been clear about this.

--

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.

Reply all
Reply to author
Forward
0 new messages