RabbitMQ 3.8.4 fails to load rabbitmq.conf after service reinstall

237 views
Skip to first unread message

walker...@gmail.com

unread,
Jul 28, 2020, 8:55:44 AM7/28/20
to rabbitmq-users
Hello, 

I just recently noticed this - we're trying to upgrade our RabbitMQ from 3.8.2 to 3.8.4. 
After service reinstall, it fails to load the rabbitmq.conf correctly. 
It uses the advanced.config (which is empty - we don't use this) instead. 
And so I tried to use the environment variable RABBITMQ_CONFIG_FILE to force the RabbitMQ to use rabbitmq.conf but I've encountered these messages instead - and the service won't start.
rabbitmqconfenvfile.png
We were able to use the RABBITMQ_CONFIG_FILE system environment variable before. Did something change? 

Here's the setup I'm running RabbitMQ with:
OS: Windows 10 Pro
RabbitMQ: 3.8.4
Erlang: 10.7 (OTP  22.3)

* All ports needed by Erlang and RabbitMQ are set up 


Michal Kuratczyk

unread,
Jul 28, 2020, 2:17:02 PM7/28/20
to rabbitm...@googlegroups.com
Hi,

The very first item on 3.8.5 release notes says "In 3.8.4, RABBITMQ_CONF_ENV_FILE value was ignored on Windows." :)

Best regards,


--
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/bb5183a9-867f-4d23-bd1a-d702efbca0dbn%40googlegroups.com.


--
Michał

Luke Bakken

unread,
Jul 29, 2020, 1:57:39 PM7/29/20
to rabbitmq-users
Hello,

Unfortunately I can't read that screenshot. Please save a larger format and attach it as a file, not in-line.

In addition, attach all of the complete configuration files you are trying to use, and share the exact commands you are using to upgrade.

Thanks,
Luke
Message has been deleted

Michal Kuratczyk

unread,
Aug 4, 2020, 9:14:04 AM8/4/20
to rabbitm...@googlegroups.com
Have you tried 3.8.5? As I mentioned, there was a bug in 3.8.4 which led to RABBITMQ_CONF_ENV_FILE being ignored on Windows. 3.8.5 fixed that.

PS 3.8.6 was just released if you want.

On Tue, Aug 4, 2020 at 2:36 PM Renya Walker <walker...@gmail.com> wrote:
Hello Luke, 

I attached the configuration file I'm currently using - rabbitmq.conf. 
So what I did was - 

Prerequisite: 
  1. Uninstalled RabbitMQ 3.8.2
  2. Uninstalled Erlang 10.5
  3. Performed 'clean-up' like delete the installation artifacts, delete the erlang.cookie files, delete the RabbitMQ app data folder.
Installation/Service Reinstall:
  1. Upgraded my Erlang to 22.3
  2. I downloaded 3.8.4 from GitHub, and installed it to my machine.
  3. Then to have RabbitMQ load our own rabbitmq.conf, I did the service reinstall 
    1. rabbitmq-service stop
    2. rabbitmq-service remove
    3. rabbitmq-service install
  4. Doing #3 somehow killed the service - I did all the troubleshooting I knew - like checked .erlang.cookie files if they are in sync, checked ports... everything seemed to be fine, except that RabbitMQ refused to start. (Please see the attached file - AfterServiceReinstall.jpg)
I wanted to attach the erlang crash dump, but I think it exceeded attachment file size limit but I uploaded it in my drive here - 

I also attached here the rabbitmq log.


Dev environment: 
  • OS: Windows 10 Pro 
  • RabbitMQ: 3.8.4
  • Erlang: 10.7
Best regards,

Renya W.

--
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.


--
Michał

Renya Walker

unread,
Aug 4, 2020, 10:20:46 AM8/4/20
to rabbitmq-users
Hello Michal, 

Yes I've tried 3.8.5 and 3.8.6. 
I get the same results. 

Erlang crashes - RabbitMQ service won't start. 

I get the same erlang crash dump.
 
=erl_crash_dump:0.5
Tue Aug 04 22:17:33 2020
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,function_clause}},{rabbit_prelaunch_app,start,[normal,[]]}}})
System version: Erlang/OTP 23 [erts-11.0] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64]
Compiled: Tue May 12 22:02:00 2020
Taints: crypto
Atoms: 17624
Calling Thread: scheduler:1

Best regards,

Renya W.


On Tuesday, August 4, 2020 at 9:14:04 PM UTC+8, Michal Kuratczyk wrote:
Have you tried 3.8.5? As I mentioned, there was a bug in 3.8.4 which led to RABBITMQ_CONF_ENV_FILE being ignored on Windows. 3.8.5 fixed that.

PS 3.8.6 was just released if you want.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.


--
Michał

Renya Walker

unread,
Aug 4, 2020, 10:48:33 AM8/4/20
to rabbitmq-users
Hello Luke, 

I had to delete my previous reply because I mistakenly uploaded something else. 

I attached the configuration file I'm currently using - rabbitmq.conf. 
So what I did was - 

Prerequisite: 
  1. Uninstalled RabbitMQ 3.8.2
  2. Uninstalled Erlang 10.5
  3. Performed 'clean-up' like delete the installation artifacts, delete the erlang.cookie files, delete the RabbitMQ app data folder.
Installation/Service Reinstall:
  1. Upgraded my Erlang to 22.3
  2. I downloaded 3.8.4 from GitHub, and installed it to my machine.
  3. Then to have RabbitMQ load our own rabbitmq.conf, I did the service reinstall 
    1. rabbitmq-service stop
    2. rabbitmq-service remove
    3. rabbitmq-service install
  4. Doing #3 somehow killed the service - I did all the troubleshooting I knew - like checked .erlang.cookie files if they are in sync, checked ports... everything seemed to be fine, except that RabbitMQ refused to start. (Please see the attached file - AfterServiceReinstall.jpg)
I wanted to attach the erlang crash dump, but I think it exceeded attachment file size limit but I uploaded it in my drive here - 

I also attached here the rabbitmq log.


Dev environment: 
  • OS: Windows 10 Pro 
  • RabbitMQ: 3.8.4
  • Erlang: 10.7
Best regards,

Renya W.

On Thursday, July 30, 2020 at 1:57:39 AM UTC+8, Luke Bakken wrote:
rabbitmq.conf
AfterServiceReinstall.jpg
erlangcookie.jpg
RabbitMQLog.log

Luke Bakken

unread,
Aug 4, 2020, 4:13:40 PM8/4/20
to rabbitmq-users
Hello,

In the log file you provided you can see that something told RabbitMQ to stop:

2020-08-04 19:49:26.056 [info] <0.713.0> Server startup complete; 0 plugins started.
2020-08-04 19:56:06.249 [info] <0.92.0> RabbitMQ is asked to stop...
2020-08-04 19:56:06.328 [info] <0.92.0> Stopping RabbitMQ applications and their dependencies in the following order:

It appears there was a graceful shutdown?

First, remove all traces of RabbitMQ 3.8.4 and install version 3.8.6 that was just released - https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.6

Could you please stop the Windows service, if running, and open an administrative prompt. Navigate to this directory...

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.6\sbin

...and run these commands:

set LOG=debug
.\rabbitmq-server.bat

This will run RabbitMQ in the foreground and we may get more information.

Thanks,
Luke

Renya Walker

unread,
Aug 5, 2020, 11:34:04 AM8/5/20
to rabbitmq-users
Hello Luke, 

I did what you suggested. It works now for some reason. 
I'm now using RMQ 3.8.6 and Erlang OTP 23. 

Thank you very much for your help. 

Best regards, 

Renya W. 
Reply all
Reply to author
Forward
0 new messages