Custom Config Files Not Used by RabbitMQ

68 views
Skip to first unread message

Elizabeth Waller

unread,
Dec 29, 2021, 11:16:42 AM12/29/21
to rabbitmq-users
Hi all,
I have just installed RabbitMQ and it is running fine except that the TLS listeners are not enabled.  In digging into this issue, I found via rabblitmqctl status command that the custom configuration files I set up are not in use.  There is nothing listed under "config files" in the status output.

I set the environmental variables via admin command prompt and in the Windows system properties:
set RABBITMQ_ADVANCED_CONFIG_FILE=c:\RabbitMQ\Configs\advanced.config
set RABBITMQ_BASE=c:\RabbitMQ\Data
set RABBITMQ_CONFIG_FILE=c:\RabbitMQ\Configs\rabbitmq.conf
set RABBITMQ_NODENAME=rabbit@xxx (removed for security purposes)
set RABBITMQ_USE_LONGNAME=true

I've tried stopping and removing and installing the service but the custom config files are still not being used.  The other environmental variables are in use (i.e., RABBITMQ_BASE).

I also see this in the log file:
Starting RabbitMQ 3.8.14 on Erlang 22.3
 Copyright (c) 2007-2021 VMware, Inc. or its affiliates.
 Licensed under the MPL 2.0. Website: https://rabbitmq.com
2021-12-28 22:12:07.494 [info] <0.276.0>
 node           : xxx (removed for security)
 home dir       : C:\Windows\system32\config\systemprofile
 config file(s) : (none)
 
Windows Server 2016
Erlang version 22.3
RabbitMQ version: 3.8.14

Any ideas?  Thanks!

Luke Bakken

unread,
Dec 29, 2021, 11:26:38 AM12/29/21
to rabbitmq-users
Hello -

Please do the following:

Run these commands from an elevated command prompt:

rabbitmq-service.bat stop
rabbitmq-service.bat remove

Set all of the RABBITMQ environment variables as system environment variables. Close and re-open your elevated command prompt. Run the following and check the output to ensure the variables are set:

set

If so, run these commands:

rabbitmq-service.bat install
rabbitmq-service.bat start

By the way you are using out-of-date versions of RabbitMQ and Erlang.

Thanks
Luke

Elizabeth Waller

unread,
Dec 29, 2021, 1:45:34 PM12/29/21
to rabbitmq-users
Hey Luke,
Thanks for the assistance!  I was using the set command but changed to setx with the /m to set the environmental variables in combination with the commands above and that did the trick.

Reply all
Reply to author
Forward
0 new messages