Windows RABBITMQ_ADVANCED_CONFIG_FILE environment variable v3.8.9

330 views
Skip to first unread message

James Naylor

unread,
Oct 26, 2020, 8:48:01 AM10/26/20
to rabbitmq-users

Hi All

I'm looking for a bit of help using the RABBITMQ_ADVANCED_CONFIG_FILE environment variable on Windows.

We were using v3.7.5 and I set the RABBITMQ_ADVANCED_CONFIG_FILE to the location of my advanced.config file and this worked fine. Since upgrading to v3.8.9, I cannot get RabbitMQ to see my configuration file - it will only look in %APPDATA%\RabbitMQ.

I am doing what I did before, using rabbitmq-service remove, setting the environment variable and then rabbitmq-service install.

I have tried different values for RABBITMQ_CONFIG_FILE, tried setting the variables in a rabbitmq-env-conf.bat file and passing this in with RABBITMQ_CONF_ENV_FILE, but nothing will get it to pick up my advanced.config file!

How do I set up Rabbit to use my advanced.config file??

Many Thanks

James

Luke Bakken

unread,
Oct 30, 2020, 9:08:27 AM10/30/20
to rabbitmq-users
Hi James,

I will investigate this today, thanks.

Luke Bakken

unread,
Oct 30, 2020, 4:49:46 PM10/30/20
to rabbitmq-users
Hi James,

RabbitMQ 3.8.4 changed the behavior of how environment variables interact with the Windows service as well as removed support for rabbitmq-env-conf.bat. See my response here:


In your case, you will want to set a system-wide RABBITMQ_ADVANCED_CONFIG_FILE environment variable. After doing that, open a new administrative shell (ensure the variable is set!) and remove and re-install the RabbitMQ windows service.

I am going to make sure our documentation reflects the current behavior as well as see about re-adding support for rabbitmq-env-conf.bat

Thanks and please let me know if you run into further issues -
Luke

On Monday, October 26, 2020 at 5:48:01 AM UTC-7, James Naylor wrote:

Luke Bakken

unread,
Oct 30, 2020, 7:53:03 PM10/30/20
to rabbitmq-users
Hi James,

RabbitMQ 3.8.5 has my fix for rabbitmq-env-conf.bat - https://github.com/rabbitmq/rabbitmq-common/issues/392

Would you mind sharing exactly how you were trying to set the location of the advanced.config file using rabbitmq-env-conf.bat? Please attach the full files you are using as well.

Thanks,
Luke
Reply all
Reply to author
Forward
0 new messages