How to refer to rabbitmq.config with RabbitMQ 3.7.12 and Erlang 21.2 ?

417 views
Skip to first unread message

badrira...@gmail.com

unread,
Mar 11, 2019, 2:59:19 AM3/11/19
to rabbitmq-users
Hi Team,

  Currently I am using the RabbitMQ 3.6.10 and  Erlang 19.3.6.4. In this Version, the RabbitMQ Server refers to rabbitmq.config file. 

  As I need to update to the latest version of RabbitMq and Erlang, I installed RabbitMQ 3.7.12 and  Erlang 21.2. But, in the latest version (3.7.12) RabbitMq Server is referring to advanced.config (server listens to default port : 15672).
  However,  I want it to refer rabbitmq.config file(where my custom config changes present ex: port). 

Request you to please help me with this.

Regards,
Ramesh

Luke Bakken

unread,
Mar 11, 2019, 11:36:12 AM3/11/19
to rabbitmq-users
Hi Ramesh,

You can continue to use the same rabbitmq.config file. Have you tried that? Just save it in /etc/rabbitmq/rabbitmq.config

Thanks,
Luke

badrira...@gmail.com

unread,
Mar 12, 2019, 1:04:25 AM3/12/19
to rabbitmq-users
Hi Luke,

  I have tried the below process :

1. Stop the RabbitMQ server.
2. Delete the default advanced.config file in the location ("c:/Users/ADMINI~1/AppData/Roaming/RabbitMQ/advanced.config") , I use Windows machine
3. Place the rabbitmq.config file in the same location 
 in this case Server is not starting up and throwing below error in erl_crash.dump file

     =erl_crash_dump:0.5
Tue Mar 12 10:33:02 2019
Slogan: could not start kernel pid (application_controller) (error in config file "c:/Users/ADMINI~1/AppData/Roaming/RabbitMQ/advanced.config" (none): configuration file not found)
System version: Erlang/OTP 21 [erts-10.2] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64]
Compiled: Mon Dec 10 20:51:45 2018
Taints: 
Atoms: 6004
Calling Thread: scheduler:1
=scheduler:1
Scheduler Sleep Info Flags: 
Scheduler Sleep Info Aux Work: DELAYED_AW_WAKEUP | DD | DD_THR_PRGR | THR_PRGR_LATER_OP
Current Port: 
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0
Run Queue Port Length: 0
Run Queue Flags: OUT_OF_WORK | HALFTIME_OUT_OF_WORK | NONEMPTY | EXEC
Current Process: <0.0.0>
Current Process State: Running
Current Process Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING
Current Process Program counter: 0x00000165ce492e20 (erts_code_purger:purge/1 + 248)
Current Process CP: 0x0000000000000000 (invalid)
Current Process Limited Stack Trace:
0x00000165cea9f9e8:SReturn addr 0xCE4A0468 (init:boot_loop/2 + 2248)
0x00000165cea9f9f0:SReturn addr 0x80F19918 (<terminate process normally>)
=scheduler:2
Scheduler Sleep Info Flags: SLEEPING | TSE_SLEEPING | WAITING
Scheduler Sleep Info Aux Work: 
Current Port: 
Run Queue Max Length: 0
Run Queue High Length: 0
Run Queue Normal Length: 0
Run Queue Low Length: 0 

Luke Bakken

unread,
Mar 12, 2019, 12:16:36 PM3/12/19
to rabbitmq-users
Hello,

In the future be sure to let us know you're using Windows. I tested the following process using Windows 8.1:

* Open the "RabbitMQ Command Prompt (sbin dir)" start menu item. In the console, run these commands:

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

* Then, in %AppData%\RabbitMQ, remove any files named rabbitmq.conf or advanced.config. Save your rabbitmq.config file in that location.

* Back in your console window, run these commands:

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

You can check the RabbitMQ log to ensure it's using the expected config file - a line similar to this will be logged:

 config file(s) : c:/Users/lbakken/AppData/Roaming/RabbitMQ/rabbitmq.config

Thanks,
Luke

badrira...@gmail.com

unread,
Mar 13, 2019, 5:25:27 AM3/13/19
to rabbitmq-users
Many thanks to you 
  It is working as expected 
Reply all
Reply to author
Forward
0 new messages