Error with rabbit-mq server

Pensu picture Pensu · Apr 16, 2014 · Viewed 16.7k times · Source

I am trying to setup OpenStack on Ubuntu 12.04 using devstack. Now, the error I am getting is:

Setting up rabbitmq-server (2.7.1-0ubuntu4) ...
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
++ err_trap
++ local r=100
++ set +o xtrace
stack.sh failed

Any idea why am I getting this error?

Answer

Kostyantyn picture Kostyantyn · Feb 18, 2015

I had this issue twice, when either hostname or ip address in the hosts file didn't match. Therefore, check that you provide the correct ip address and hostname in the /etc/hosts file

  1. Run sudo cat /etc/hostname to see your hostname

Output:

yoursite
  1. Run sudo nano /etc/hosts

File contains:

127.0.0.1 yoursite

As you see from cat /etc/hostname, hostname is the same as in the /etc/hosts:

  1. Run sudo rabbitmq-server start to start the rabbitmq-server