You are not logged in.
I got the rabbitmq package from https://aur.archlinux.org/packages/rabbitmq/. Upon installing with 'pacman -U', I got the message
==> WARNING:
==> This systemd unit executes rabbitmq as rabbitmq user. This is *DIFFERENT*
==> from the legacy sysvinit scripts included in the package that
==> default on using the "root" user. DO NOT MIX usage of this systemd unit
==> with rc.d initscripts, or permission problems may arise.
==> To fix those, use the following command (as root):chown -R rabbitmq.rabbitmq /var/lib/rabbitmq
==> DO NOT DELETE anything manually, that may make your rabbitmq install
==> unusable, until deletion of everything under /var/lib/rabbitmq
I did the 'chown' thing as advised, but I'm not sure if there is something more I should be doing (or not doing).
I can start the server with
sudo rabbitmq-server
and then in another terminal I can do
sudo /usr/sbin/rabbitmqctl status
and the output seems to show everything working.
The trouble starts if instead of directly running rabbit-server, I do
sudo systemctl enable rabbitmq
sudo systemctl start rabbitmq
It seems to start fine and then I get (when I do systemctl status rabbitmq)
rabbitmq.service - RabbitMQ Messaging Server
Loaded: loaded (/usr/lib/systemd/system/rabbitmq.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2014-12-29 02:03:25 GMT; 4s ago
Process: 25657 ExecStop=/usr/bin/rabbitmqctl stop (code=exited, status=2)
Process: 25549 ExecStart=/usr/bin/rabbitmq-server (code=exited, status=1/FAILURE)
Main PID: 25549 (code=exited, status=1/FAILURE)
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: * epmd reports: node 'rabbit' not running at all
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: no other nodes on brunnhilde
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: * suggestion: start the node
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: current node details:
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - node name: 'rabbitmqctl-25657@brunnhilde'
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - home dir: /var/lib/rabbitmq
Dec 29 02:03:25 brunnhilde rabbitmq[25657]: - cookie hash: 59JWXfWlAKuxru4vaTbvBQ==
Dec 29 02:03:25 brunnhilde systemd[1]: rabbitmq.service: control process exited, code=exited status=2
Dec 29 02:03:25 brunnhilde systemd[1]: Unit rabbitmq.service entered failed state.
Dec 29 02:03:25 brunnhilde systemd[1]: rabbitmq.service failed.
I presume this failure has something to do with the systemd warning that I got when installing, but I am not really sure what to do.
Has anyone got rabbitmq server working using systemctl?
Last edited by mjandrews (2014-12-29 20:25:13)
Offline
I seem to have fixed it now.
I changed /etc/rabbitmq/rabbitmq-env.conf from
NODENAME=rabbit
NODE_IP_ADDRESS=0.0.0.0
NODE_PORT=5672
LOG_BASE=/var/log/rabbitmq
MNESIA_BASE=/var/lib/rabbitmq/mnesia
to
NODENAME=rabbit
NODE_IP_ADDRESS=127.0.0.1
NODE_PORT=5672
HOME=/var/lib/rabbitmq
LOG_BASE=/var/log/rabbitmq
MNESIA_BASE=/var/lib/rabbitmq/mnesia
and that seems to have done the trick.
Offline