A
A
Andrey Sidorov2017-10-16 18:19:52
RabbitMQ
Andrey Sidorov, 2017-10-16 18:19:52

Why is rabbitMQ not installed and running?

I install from the package from the Rabbit site (I also tried installing through the repository):
[email protected]:/var/www# dpkg -i rabbitmq-server_3.6.12-1_all.deb
(Reading the database ... 63899 files and directories are currently installed. )
Preparing to unpack rabbitmq-server_3.6.12-1_all.deb ...
Unpack rabbitmq-server (3.6.12-1) to replace (3.6.12-1) ...
Configure the rabbitmq-server (3.6.12-1) package ...
Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing package rabbitmq-server (--install):
Processing triggers for man-db (2.7.0.2-5) …
Processing triggers for systemd (215-17+deb8u7) …
Errors occurred while processing the following packages:
rabbitmq-server I tried
to run it myself, the result is the same.
[email protected]:/var/www# service rabbitmq-server start
Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details.
I run the recommended command
[email protected]: /var/www# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled)
Active: failed (Result: exit-code) since Mon 2017-10-16 18:11:56 MSK; 4s ago
Process: 20386 ExecStop=/bin/sh -c while ps -p $MAINPID >/dev/null 2>&1; do sleep 1; done (code=exited, status=0/SUCCESS)
Process: 20272 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
Process: 20171 ExecStart=/usr/lib/rabbitmq /bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 20171 (code=exited, status=1/FAILURE)
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]:= ==========
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]: attempted to contact:
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[ 20272]: [email protected]:
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]: * unable to connect to epmd (port 4369) on wine: address (cannot connect to host/port)
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]: current node details:
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]: - node name: '[email protected] '
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]: - home dir: /var/lib/rabbitmq
Oct 16 18:11:56 wine.storemaker.ru rabbitmqctl[20272]: - cookie hash: ZlPlWL9gVfkCatgjem2lPQ ==
Oct 16 18:11:56 wine.storemaker.ru systemd[1]: Failed to start RabbitMQ broker.
Oct 16 18:11:56 wine.storemaker.ru systemd[1]: Unit rabbitmq-server.service entered failed state.
netstat -npl:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 998/exim4
tcp 0 0 0.0.0.0:58721 0.0.0.0:* LISTEN 385/rpc.statd
421/memcached tcp 0 0 0.0.0.0:111
0.0.0.0:* LISTEN LISTEN 422/sshd tcp6 0 0 ::1:25 :::* LISTEN 998/exim4 tcp6 0 0 :::41498 :::* LISTEN 385/rpc.statd

tcp6 0 0 :::443 :::* LISTEN 582/apache2
tcp6 0 0 :::3306 :::* LISTEN 555/mysqld
tcp6 0 0 :::111 :::* LISTEN 370/rpcbind
tcp6 0 0 :: :80 :::* LISTEN 582/apache2
tcp6 0 0 :::21 :::* LISTEN 689/proftpd: (accep
tcp6 0 0 :::22 :::* LISTEN 422/sshd
udp 0 0 0.0.0.0: 39614 0.0.0.0:* 385/rpc.statd
udp 0 0 0.0.0.0:966 0.0.0.0:* 370/rpcbind
udp 0 0 127.0.0.1:11211 0.0.0.0:* 421/memcached
udp 0 0 127.0.0.1:985 0.0.0.0:* 385/
rpc.statd
udp 0 0 185.58.207.217:123 0.0.0.0:* 505/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 505/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 505/ntpd
udp6 0 0 :::35558 :::* 385/rpc.statd
udp6 0 0 :::966 :::* 370/rpcbind
udp6 0 0 :::111 :::* 370/rpcbind
udp6 0 0 fe80::5054:ff:fefc::123 :::*
505/ntpd
udp6 0 0 :::123 :::* 505/ntpd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] SEQPACKET LISTENING 8267 1/systemd /run/udev /control
unix 2 [ ACC ] STREAM LISTENING 8270 1/systemd /run/systemd/journal/stdout
unix 2 [ ACC ] STREAM LISTENING 43930 16924/systemd /run/user/0/systemd/private
unix 2 [ ACC ] STREAM LISTENING 11164 555/mysqld /var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 10681 1/systemd /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 10684 1/systemd /run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 29373 1/systemd /run/systemd/private
unix 2 [ ACC ] STREAM LISTENING 9170 370/rpcbind /run/rpcbind.sock
Epmd is running on the required port, I also tried to set another port. I ran it both as a service and as a deamon - the result is the same.
/var/log/syslog has this entry
Oct 16 17:10:20 wine systemd[1]: Failed to start RabbitMQ broker.
Oct 16 17:10:20 wine systemd[1]: Unit rabbitmq-server.service entered failed state.
Oct 16 17:13:53 wine systemd[1]: Cannot add dependency job for unit [email protected], ignoring: Unit [email protected] failed to load: No such file or directory.
Oct 16 17:13:54 wine rabbitmq-server[3918]: ERROR: epmd error for host wine: address (cannot connect to host/port)
Oct 16 17:13:54 wine systemd[1]: rabbitmq-server.service : main process exited, code=exited, status=1/FAILURE
Oct 16 17:13:55 wine rabbitmqctl[4016]: Stopping and halting node [email protected]
Oct 16 17:13:55 wine rabbitmqctl[4016]: Error: unable to connect to node [email protected]: nodedown
Oct 16 17:13:55 wine rabbitmqctl[4016]: DIAGNOSTICS
Oct 16 17:13:55 wine rabbitmqctl[4016]: ===========
Oct 16 17:13:55 wine rabbitmqctl[4016] : attempted to contact:
Oct 16 17:13:55 wine rabbitmqctl[4016]: [email protected]:
Oct 16 17:13:55 wine rabbitmqctl[4016]: * unable to connect to epmd (port 4369) on wine: address (cannot connect to host/port)
Oct 16 17:13:55 wine rabbitmqctl[4016]: current node details:
Oct 16 17:13:55 wine rabbitmqctl[4016]: - node name: 'rabbitmq-cli [email protected]'
Oct 16 17:13:55 wine rabbitmqctl[4016]: - home dir: /var/lib/rabbitmq
Oct 16 17:13:55 wine rabbitmqctl[4016]: - cookie hash: ZlPlWL9gVfkCatgjem2lPQ==
I'm also interested in the highlighted line, maybe this is the problem? but where does he go, what file or folder does he not see? what rights should be and what kind of file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sidorov, 2017-10-17
@Prorok89

Solved a problem. In my case, the server was called wine.storemaker.ru and it was registered in the hosts that way.
The presence of the error "unable to connect to epmd (port 4369) on wine: address (cannot connect to host/port)" suggested that something was wrong with the name. In general, I removed the installed rabbitmq-server, changed the name from wine.storemaker.ru to myserver (so that there were no dots in the name) and reinstalled the rabbit. Everything worked right away, there were no more errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question