V3.8.8 : RABBITMQ_BASE Directory Location change for Windows Installation has failed.

227 views
Skip to first unread message

badrira...@gmail.com

unread,
Oct 30, 2020, 6:59:45 AM10/30/20
to rabbitmq-users
Hi Team,

Erlang V23.0
RabbitMQ V3.8.8
Windows 10.

  I have done the changes for customizing the rabbitmq default location from %appdata% to Custom location.

in v3.8.3 we fount it working but similar steps (attachment : Steps.txt) performed in v3.8.8 and found not working.

We have observed mainly two differences across these two versions during this activity.
1. Advanced.config file not created in a custom location (attachment name : RabbitMQ_Log.txt)
2.Registry value for the key Env is different (attachments : v.3.8.8_registryEntry.PNG, v3.8.3_registryEditor.PNG).

Can you please have a look and guide us ?
RabbitMQ_Log.txt
Steps.txt
v.3.8.8_registryEntry.PNG
v3.8.3_registryEditor.PNG

Luke Bakken

unread,
Oct 30, 2020, 2:31:06 PM10/30/20
to rabbitmq-users
Hi Badri,

Please re-read my response in the attached file to this message - https://groups.google.com/d/msg/rabbitmq-users/LZCh9n-LuZM/T8eMyMq_AQAJ

In the instructions, I indicate that using the setx command does NOT modify the current shell session. In your sequence of steps you do not indicate that you restart the shell to pick up the value.

First of all, please use the latest version of RabbitMQ, 3.8.9.

Then, log in using the administrative user you used to install RabbitMQ, and open an elevated command prompt. Run these commands:

C:\>cd "\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9"
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>set RABBITMQ_BASE=C:\ProgramData\RabbitMQ
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>setx RABBITMQ_BASE C:\ProgramData\RabbitMQ /M
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>set RABBITMQ_ADVANCED_CONFIG_FILE=C:\ProgramData\RabbitMQ\advanced.config
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>setx RABBITMQ_ADVANCED_CONFIG_FILE C:\ProgramData\RabbitMQ\advanced.config /M
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat stop
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>echo %RABBITMQ_BASE%
C:\ProgramData\RabbitMQ
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>echo %RABBITMQ_ADVANCED_CONFIG_FILE%
C:\ProgramData\RabbitMQ\advanced.config
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat remove
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat install
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat start

You will not see the RABBITMQ_* variables in the registry entry. They must be set as system-wide variables.

Thanks,
Luke

Luke Bakken

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

This is changed behavior starting in version 3.8.4 via this PR https://github.com/rabbitmq/rabbitmq-server/pull/2142

At the very least I'll make sure our documentation has been updated to reflect the changes.

Thanks,
Luke
Message has been deleted
Message has been deleted

badrira...@gmail.com

unread,
Nov 2, 2020, 7:40:56 AM11/2/20
to rabbitmq-users
Hi Luke,

  Thanks for the response.
  
I have tried the steps provided by you in version 3.8.9 and found it not working (please find attached steps and their output).

Could you please give more details on the PR mentioned and also let me know this is an expected behavior (Customized  RABBITMQ_BASE, RABBITMQ_ADVANCED_CONFIG_FILE is not supported) or will this be fixed in future versions.

Our requirement is to install the RabbitMQ in different location other than user's specific directory i.e. %appdata%. So, How can we achieve this using 3.8.8 or 3.8.9 ?

Thanks,
Badri.

Luke Bakken

unread,
Nov 2, 2020, 8:37:41 AM11/2/20
to rabbitmq-users
Hi Badri,

You did not attach the transcript of what you tried. My instructions work so there must be something you missed. I can't assist you without knowing what you did.

Here is what worked in my Windows 10 environment:

First of all, please use the latest version of RabbitMQ, 3.8.9.

Then, log in using the administrative user you used to install RabbitMQ, and open an elevated command prompt. Run these commands:

C:\>cd "\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9"
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>set RABBITMQ_BASE=C:\ProgramData\RabbitMQ
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>setx RABBITMQ_BASE C:\ProgramData\RabbitMQ /M
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>set RABBITMQ_ADVANCED_CONFIG_FILE=C:\ProgramData\RabbitMQ\advanced.config
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>setx RABBITMQ_ADVANCED_CONFIG_FILE C:\ProgramData\RabbitMQ\advanced.config /M
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat stop
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>echo %RABBITMQ_BASE%
C:\ProgramData\RabbitMQ
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>echo %RABBITMQ_ADVANCED_CONFIG_FILE%
C:\ProgramData\RabbitMQ\advanced.config
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat remove
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat install
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.9>.\sbin\rabbitmq-service.bat start

Thanks,
Luke

badrira...@gmail.com

unread,
Nov 3, 2020, 1:38:46 AM11/3/20
to rabbitmq-users
Hi Luke,

Please find attached steps which I missed in previous communication.

In my case also rabbitmq is coming up but it is not reffering the advanced.config file since it is not present in the new location (C:\ProgramData\RabbitMQ).
because of this rabbitmq runs on default configurations and port.

Please correct me if I do something wrong here.

Thanks,
Badri.
ProgramData_After_location_change.PNG
UI_before_location_change.PNG
UI_After_location_change.PNG
Log_before_location_change.PNG
Steps.txt
appdata_before_location_change.PNG
Log_After_location_change.PNG

Luke Bakken

unread,
Nov 3, 2020, 9:04:29 AM11/3/20
to rabbitmq-users
Hi Badri,

You must create the advanced.config file yourself. The file you see in the %AppData%\RabbitMQ directory was created by the installer. Use a text editor to create this file: C:\ProgramData\RabbitMQ\advanced.config

The simplest valid file has this as its content:

[].

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