Ask Your Question
0

Fail to start rabbitmq-server.service on opensuse13.2

asked 2015-04-13 22:24:34 -0500

Eric Ren gravatar image

Following this doc:

http://docs.openstack.org/juno/install-guide/install/zypper/content/index.html

I'm trying to install openstack on opensuse13.2. When I go to 'messaging server' section of 'Chapter 2. Basic environment':

http://docs.openstack.org/juno/install-guide/install/zypper/content/ch_basic_environment.html#basics-messaging-server

after installing rabbitmq-server:

# zypper install rabbitmq-server

It failed to start rabbitmq-server:

# systemctl enable rabbitmq-server.service
# systemctl start rabbitmq-server.service

And error message is:

controller:~ # systemctl status rabbitmq-server.service 
rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled)
   Active: failed (Result: exit-code) since 二 2015-04-14 10:36:02 CST; 45min ago
  Process: 2966 ExecStopPost=/usr/bin/rm /var/run/rabbitmq/pid (code=exited, status=0/SUCCESS)
  Process: 2925 ExecStop=/usr/sbin/rabbitmqctl stop (code=exited, status=2)
  Process: 2840 ExecStartPost=/usr/sbin/rabbitmqctl wait /var/run/rabbitmq/pid (code=exited, status=2)
  Process: 2839 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 2839 (code=exited, status=1/FAILURE)

4月 14 10:36:02 controller rabbitmqctl[2925]: Error: unable to connect to node rabbit@controller: nodedown
4月 14 10:36:02 controller rabbitmqctl[2925]: DIAGNOSTICS
4月 14 10:36:02 controller rabbitmqctl[2925]: ===========
4月 14 10:36:02 controller rabbitmqctl[2925]: attempted to contact: [rabbit@controller]
4月 14 10:36:02 controller rabbitmqctl[2925]: rabbit@controller:
4月 14 10:36:02 controller rabbitmqctl[2925]: * unable to connect to epmd (port 4369) on controller: address (cannot connect to host/port)
4月 14 10:36:02 controller rabbitmqctl[2925]: current node details:
4月 14 10:36:02 controller rabbitmqctl[2925]: - node name: rabbitmqctl2933@controller
4月 14 10:36:02 controller rabbitmqctl[2925]: - home dir: /var/lib/rabbitmq
4月 14 10:36:02 controller rabbitmqctl[2925]: - cookie hash: kBnKPRMCXBnfQlB8kipSdA==

Does anyone ever get the same problem?

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
2

answered 2015-04-14 00:32:23 -0500

Eric Ren gravatar image

I have solved this problem. By doing the following:

  1. make 'controller' as hostname

    #hostname controller
    or
    issue 'yast lan' to configure

  2. adding '127.0.0.1 controller' to /etc/hosts

  3. re-install rabbitmq

    #zypper rm rabbitmq-server
    #rm -rf /var/log/rabbitmq
    #zypper in rabbitmq-server

  4. enable and restart this service

    controller:~ # systemctl enable rabbitmq-server.service
    controller:~ # systemctl restart rabbitmq-server.service
    controller:~ # systemctl status rabbitmq-server.service

edit flag offensive delete link more

Comments

Whew! Right on brother! I've suffered with this craziness for days and the problem still exists for opensuse Leap 42.1 almost a year later. Sheesh... Great Find, and thanks for sharing.

the_keyboardist gravatar imagethe_keyboardist ( 2016-02-10 17:55:37 -0500 )edit

Thanks, Only I restart the service without removing after adding a controller with 127.0.0.1.

Ahmed Morgan gravatar imageAhmed Morgan ( 2017-05-08 07:50:40 -0500 )edit
0

answered 2018-06-12 05:08:14 -0500

Mahmut Bro gravatar image

Hi,

I have alse tried above reply. It is working.

edit flag offensive delete link more
0

answered 2018-07-18 06:18:03 -0500

OpenHead gravatar image

I have added '127.0.0.1 controller' to /etc/hosts. and it works!

thanks.

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: 2015-04-13 22:24:34 -0500

Seen: 3,753 times

Last updated: Apr 14 '15