Ask Your Question
0

rabbitmq-server service not running after devstack installation on fedora19

asked 2013-10-24 13:43:34 -0500

shrikltc gravatar image

Please see below for details :

  1. I did installation of devstack on fedora19, Installation went well, able to access openstack dashboard

  2. I have redirected stack.sh output to log file, from that log file I found that there is error while starting RabbitMQ service

  3. please see below for logs/error msg :

LOGS :

  1. stack.sh logs These are the messages appear during devstack installation
  • services=rabbit
  • for service in '${services}'
  • [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,rabbit, ]]
  • return 0
  • echo_summary 'Starting RabbitMQ'
  • [[ -t 3 ]]
  • echo -e Starting RabbitMQ Starting RabbitMQ
  • is_fedora
  • [[ -z Fedora ]]
  • '[' Fedora = Fedora ']'
  • restart_service rabbitmq-server
  • is_ubuntu
  • [[ -z rpm ]]
  • '[' rpm = deb ']'
  • sudo /sbin/service rabbitmq-server restart Redirecting to /bin/systemctl restart rabbitmq-server.service Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details.
  • sudo rabbitmqctl change_password guest 0cf5231dc8f0ec437fad Changing password for user "guest" ... Error: unable to connect to node rabbit@destiny: nodedown

DIAGNOSTICS

nodes in question: [rabbit@destiny]

hosts, their running nodes and ports: - unable to connect to epmd on destiny: address (cannot connect to host/port)

current node details: - node name: rabbitmqctl8492@destiny - home dir: /var/lib/rabbitmq - cookie hash: s6XJ2l63F6Pz3eTZdny3UA==

  • is_service_enabled n-cell
  • services=n-cell
  • for service in '${services}'
  • [[ ,g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,horizon,rabbit,tempest,mysql, =~ ,n-cell, ]]
  • [[ n-cell == n-cell-* ]]
  • [[ n-cell == \n\o\v\a ]]
  1. RabbitMQ service failed to start

[stack@destiny ~]$ systemctl status rabbitmq-server.service rabbitmq-server.service - RabbitMQ broker Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; disabled) Active: failed (Result: exit-code) since Thu 2013-10-24 18:30:23 IST; 10min ago Process: 12246 ExecStopPost=/usr/bin/rm /var/run/rabbitmq/pid (code=exited, status=0/SUCCESS) Process: 12218 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=2) Process: 12160 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmqctl wait /var/run/rabbitmq/pid (code=exited, status=2) Process: 12159 ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server (code=exited, status=1/FAILURE)

[stack@destiny ~]$

  1. /var/lib/rabbitmq is empty

[root@destiny rabbitmq]# pwd /var/lib/rabbitmq [root@destiny rabbitmq]# [root@destiny rabbitmq]# ls [root@destiny rabbitmq]# [root@destiny rabbitmq]# ls -a . .. .erlang.cookie [root@destiny rabbitmq]#

[root@destiny rabbitmq]# cat .erlang.cookie KJMZUMQQJXUZHYQXEOOP [root@destiny rabbitmq]#

4. RabbitMQ service failed to restart again

[stack@destiny ~]$ systemctl list-units | grep -i rabbit rabbitmq-server.service loaded failed failed RabbitMQ broker

[stack@destiny ~]$ sudo systemctl start rabbitmq-server Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details.

[stack@destiny ~]$ journalctl -xn Hint: You are currently not seeing messages from other users and the system. Users in the groups 'adm', 'systemd-journal', 'wheel' can see all messages. Pass -q to turn off this notice. -- Logs begin at Thu 2013-10-24 16:14:21 IST, end at Thu 2013-10-24 18:30:20 IST. -- Oct 24 17:18:34 destiny sudo[10937]: stack : TTY=pts/1 ; PWD=/opt/stack/devstack ; USER=root ; COMMA Oct 24 17:18:40 destiny sudo[11005]: stack : TTY ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-10-31 04:47:12 -0500

shrikltc gravatar image

HI,

Found solution for this issue.

RabbitMQ won't work properly if hostname, /etc/hosts, /etc/hostname are not in sync with same "Hostname"

if there is some miss match then rabbitmq throw error.

issue solved !

edit flag offensive delete link more
0

answered 2013-10-24 14:28:55 -0500

shrikltc gravatar image

Rabbitmq status :

[root@destiny rabbitmq]# rabbitmqctl status Status of node rabbit@destiny ... Error: unable to connect to node rabbit@destiny: nodedown

DIAGNOSTICS

nodes in question: [rabbit@destiny]

hosts, their running nodes and ports: - unable to connect to epmd on destiny: address (cannot connect to host/port)

current node details: - node name: rabbitmqctl13047@destiny - home dir: /var/lib/rabbitmq - cookie hash: s6XJ2l63F6Pz3eTZdny3UA==

[root@destiny rabbitmq]#

edit flag offensive delete link more

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: 2013-10-24 13:43:34 -0500

Seen: 4,646 times

Last updated: Oct 31 '13