Ask Your Question
0

The service rabbitmq-server fails to start if rabbitmq.config file exists in /etc/rabbitmq/ directory. If I have even a blank file as rabbitmq.config the service rabbitmq-server fails to start.

asked 2015-06-11 00:34:43 -0500

Vikram gravatar image

I'm in the final process of installing ICEHOUSE, and I'm now at a stage where I must edit the nano /etc/rabbitmq/rabbitmq.config and use the following: [{rabbit, [{loopback_users, []}]}]

The service rabbitmq-server fails to start if rabbitmq.config file exists in /etc/rabbitmq/ directory. If I have even a blank file as rabbitmq.config the service rabbitmq-server fails to start.

Strange ... Has this happened to anyone, or am I the CHOOSEN ONE :)

CURRENT SCENERIO

CURRENT SCENERIO
=================
root@controller:/home/XXXXXX# ls /etc/rabbitmq/
enabled_plugins  rabbitmq.config  rabbitmq_OLD.config
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# rm /etc/rabbitmq/rabbitmq.config
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# service rabbitmq-server restart
 * Restarting message broker rabbitmq-server                                                                                                                     [ OK ]
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# nano /etc/rabbitmq/rabbitmq.config
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# ls /etc/rabbitmq/rabbitmq.config
ls: cannot access /etc/rabbitmq/rabbitmq.config: No such file or directory
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# nano /etc/rabbitmq/rabbitmq.config
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# ls /etc/rabbitmq/rabbitmq.config
/etc/rabbitmq/rabbitmq.config
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# service rabbitmq-server restart
 * Restarting message broker rabbitmq-server                                                                                                                     [fail]
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# rm /etc/rabbitmq/rabbitmq.config
root@controller:/home/XXXXXX#
root@controller:/home/XXXXXX# service rabbitmq-server restart
 * Restarting message broker rabbitmq-server                                                                                                                     [ OK ]

LOGS
====
=INFO REPORT==== 11-Jun-2015::09:26:15 ===
Halting Erlang VM

=INFO REPORT==== 11-Jun-2015::09:26:30 ===
Starting RabbitMQ 3.2.4 on Erlang R16B03
Copyright (C) 2007-2013 GoPivotal, Inc.
Licensed under the MPL.  See http://www.rabbitmq.com/

=INFO REPORT==== 11-Jun-2015::09:26:30 ===
node           : rabbit@controller
home dir       : /var/lib/rabbitmq
config file(s) : (none)
cookie hash    : QVBdAzu+ABo1H5Wopt/OPw==
log            : /var/log/rabbitmq/rabbit@controller.log
sasl log       : /var/log/rabbitmq/rabbit@controller-sasl.log
database dir   : /var/lib/rabbitmq/mnesia/rabbit@controller

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
Limiting to approx 924 file handles (829 sockets)

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
Memory limit set to 397MB of 993MB total.

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
Disk free limit set to 50MB

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
msg_store_transient: using rabbit_msg_store_ets_index to provide index

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
msg_store_persistent: using rabbit_msg_store_ets_index to provide index

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
started TCP Listener on [::]:5672

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
Management plugin started. Port: 15672

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
Statistics database started.

=INFO REPORT==== 11-Jun-2015::09:26:31 ===
Server startup complete; 6 plugins started.
 * amqp_client
 * mochiweb
 * rabbitmq_management
 * rabbitmq_management_agent
 * rabbitmq_web_dispatch
 * webmachine

=INFO REPORT==== 11-Jun-2015::09:26:36 ===
accepting AMQP connection <0.283.0> (10.10.10.10:57299 -> 10.10.10.10:5672)

=INFO REPORT==== 11-Jun-2015::09:26:36 ===
accepting AMQP connection <0.294.0> (10.10.10.10:57300 -> 10.10.10.10:5672)

=INFO REPORT==== 11-Jun-2015::09:26:36 ===
accepting AMQP connection <0.307.0> (10.10.10.10:57301 -> 10.10.10.10:5672)

=INFO REPORT==== 11-Jun-2015::09 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-11 01:53:13 -0500

uts9 gravatar image

updated 2015-06-11 01:54:31 -0500

Can you run

$sudo rabbitmqctl reset

Man page

reset

Return a RabbitMQ node to its virgin state. Removes the node from any cluster it belongs to, removes all data from the management database, such as configured users and vhosts, and deletes all persistent messages. For reset and force_reset to succeed the RabbitMQ application must have been stopped, e.g. with stop_app. For example:

rabbitmqctl reset

This command resets the RabbitMQ node.

edit flag offensive delete link more

Comments

I was finally able to reset rabbitmqctl, but it didn't help. Again I'm facing the same issue. As soon as I edit rabbitmq.config file, I cannot restart the rabbitmq-server service. What should I do ...???

Vikram gravatar imageVikram ( 2015-06-12 02:58:15 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-11 00:34:43 -0500

Seen: 2,509 times

Last updated: Jun 11 '15