RabbitMQ can't find config file on Windows

6,295 views
Skip to first unread message

Yury A

unread,
Nov 10, 2014, 8:17:56 AM11/10/14
to rabbitm...@googlegroups.com
Hi guys!

On my Windows instance of RabbitMQ (3.3.5) I didn't have config file, so RabbitMQ used default values.
After that I decided to set one parameter and renamed file rabbitmq.config.example in %APPDATA%\RabbitMQ to rabbitmq.config.

But in log file I can see:

=INFO REPORT==== 10-Nov-2014::12:25:21 ===
node           : rabbit@YALIOSHINOV
home dir       : C:\WINDOWS
config file(s) : c:/Users/Yury.Alioshinov/AppData/Roaming/RabbitMQ/rabbitmq.config (not found)
cookie hash    : FjLyZGMaTpP+ODCthfIkJg==
log            : C:/Users/Yury.Alioshinov/AppData/Roaming/RabbitMQ/log/rab...@YALIOSHINOV.log
sasl log       : C:/Users/Yury.Alioshinov/AppData/Roaming/RabbitMQ/log/rab...@YALIOSHINOV-sasl.log
database dir   : c:/Users/Yury.Alioshinov/AppData/Roaming/RabbitMQ/db/rabbit@YALIOSHINOV-mnesia


So RabbitMQ didn't find config file....
Is it a bug or maybe I made something wrong?

Michael Klishin

unread,
Nov 10, 2014, 8:21:55 AM11/10/14
to Yury A, rabbitm...@googlegroups.com
From http://www.rabbitmq.com/configure.html:

«Windows service users will need to re-install the service after adding or removing a configuration file.»
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Yury A

unread,
Nov 10, 2014, 8:34:47 AM11/10/14
to rabbitm...@googlegroups.com, haste...@gmail.com
Oh, thanks a lot =)

Jeremy Herman

unread,
Nov 14, 2014, 2:01:43 PM11/14/14
to rabbitm...@googlegroups.com, haste...@gmail.com
Hi MK,

How does one reinstall the service when using your installer that installed the NT Service?  Is there a command for this?

Raymond Rizzuto

unread,
May 11, 2015, 2:26:20 PM5/11/15
to rabbitm...@googlegroups.com, haste...@gmail.com
I am having the same issue currently with 3.5.1.  According to http://www.rabbitmq.com/configure.html, "For environment changes to take effect on Windows, the service must be re-installed. It is not sufficient to restart the service. "  That seems to be in reference to environment variables, not the addition of a config file in the default location.


Raymond Rizzuto

unread,
May 11, 2015, 3:14:54 PM5/11/15
to rabbitm...@googlegroups.com, haste...@gmail.com

I am having the same issue currently with 3.5.1.  According to http://www.rabbitmq.com/configure.html, "For environment changes to take effect on Windows, the service must be re-installed. It is not sufficient to restart the service. "  That seems to be in reference to environment variables, not the addition of a config file in the default location.


 
I think my issue was an invalid config file.  I had uncommented two lines, without removing the trailing comma on the last line.  

Jared Kauppila

unread,
May 11, 2015, 3:20:15 PM5/11/15
to rabbitm...@googlegroups.com, haste...@gmail.com
Raymond,

Did your rabbitmq.config exist when the service was installed? If it wasn't present, the '-config <config path>' argument won't get set in the registry.

You can check this at

HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ\Args

Once that path is defined making changes to the config will only require a restart.
Reply all
Reply to author
Forward
0 new messages