Rabbit MQ 3.7.2 not starting with a rabbitmq.conf file on windows

947 views
Skip to first unread message

Aniket Patil

unread,
Mar 12, 2018, 4:00:58 PM3/12/18
to rabbitmq-users
Hi, 

I am running rabbitMQ 3.7.2 on windows.

1. Added a rabbitmq.conf file under %AppData%Roaming\RabbitMQ  with the following content 

listeners.tcp.default = 27271

2. When I run the rabbitmq-server I get the following error 

BOOT FAILED
===========

Config file generation failed Could not load module C:\Program Files\erl8.3\erts-8.3\bin\erlexec.dll.


BOOT FAILED
===========

Error description:
    rabbit:start_it/1 line 458
    rabbit:boot_error/2 line 858
    rabbit_lager:log_locations/0 line 43
    rabbit_lager:ensure_lager_configured/0 line 144
    rabbit_lager:lager_configured/0 line 151
    lager:list_all_sinks/0 line 317
    lager_config:get/2 line 71
    ets:lookup(lager_config, {'_global',handlers})
exit:generate_config_file
Log file(s) (may contain more information):

{"init terminating in do_boot",generate_config_file}
init terminating in do_boot (generate_config_file)


Interesting point is if i use the rabbitmq.conf file the error points to  Could not load module C:\Program Files\erl8.3\erts-8.3\bin\erlexec.dll.  

However my ERLANG_HOME envirionment  variable is set to C:\erlang I am not sure why it looks for arlexec.dll at C:\Program Files\erl8.3\erts-8.3\bin. 

Please note If I delete the rabbitMQ.conf it works I am able to start the rabbitMQ server with out any issues. 

I am not sure if I am missing anything here. Appreciate the help on this.  

Thanks,
Aniket

Luke Bakken

unread,
Mar 12, 2018, 4:50:35 PM3/12/18
to rabbitmq-users
Hi Aniket,

What Windows version are you using?

Did you install Erlang and RabbitMQ using an administrative user and / or administrative command prompt according to these instructions? https://www.rabbitmq.com/install-windows.html

If you installed Erlang and RabbitMQ using an administrative user, there is no need to set the ERLANG_HOME environment variable.

Thanks,
Luke

Aniket Patil

unread,
Mar 13, 2018, 2:14:49 PM3/13/18
to rabbitmq-users
Thanks Luke.  I am testing this on a Windows Server 2016 machine.  Also I did a reinstall of manual instal on windows which needs the ERLANG_HOME to be set.  https://www.rabbitmq.com/install-windows-manual.html  

I did figure out that the file needs to named only rabbitmq instead of rabbitmq.conf . So now I have a file named rabbitmq under %APPDATA%\RabbitMQ\ (Ref : https://www.rabbitmq.com/configure.html ) with following entry in it
listeners.tcp.default = 27271

The rabbitmq server now starts but looks like it still does not honor the config file I can see the following in logs. 

Licensed under the MPL.  See http://www.rabbitmq.com/
2018-03-13 10:57:30.136 [info] <0.189.0> 
 node                : rabbit@Dev0002429
 home dir          : C:\Users\anik7857
 config file(s)   : (none)
 cookie hash     : jtNHcxHds7vJ9rxvAQwUsA==
 log(s)               : C:/Users/anik7857/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
                         : C:/Users/anik7857/AppData/Roaming/RabbitMQ/log/rabbit@Dev0002429_upgrade.log
 database dir    : c:/Users/anik7857/AppData/Roaming/RabbitMQ/db/RABBIT~1.COM

Am I missing something as per the documentation the config file should be named rabbimq and be at %APPDATA%\RabbitMQ\ for Windows machine. (Ref : https://www.rabbitmq.com/configure.html ) Please let know.

Thanks, Aniket

On Monday, March 12, 2018 at 1:00:58 PM UTC-7, Aniket Patil wrote:

Arnaud Cogoluègnes

unread,
Mar 15, 2018, 9:52:15 AM3/15/18
to rabbitm...@googlegroups.com
The configuration file should be C:/Users/anik7857/AppData/Roaming/RabbitMQ/rabbitmq.conf in your case. Not sure where you got the information that it should have no extension.

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Mar 15, 2018, 9:58:58 AM3/15/18
to rabbitm...@googlegroups.com
Well, in 3.6.x the .config extension must be omitted but starting with 3.7.x it can be added
and for rabbitmq.conf, it pretty much always is because no examples out there omit it ;)

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Aniket Patil

unread,
Mar 18, 2018, 9:18:41 PM3/18/18
to rabbitmq-users
Thank you all. the issue here was the erlang path was pointing to a incorrect location in erl.ini file. Pointing it to correct path resolved the issue.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Michael Klishin

unread,
Mar 19, 2018, 1:34:46 PM3/19/18
to rabbitm...@googlegroups.com
Thank you for reporting back.

To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages