FS#58510 - [rabbitmq] error reading .erlang.cookie on default install

Attached to Project: Community Packages
Opened by act28 (act28) - Wednesday, 09 May 2018, 05:09 GMT
Last edited by Levente Polyak (anthraxx) - Saturday, 07 July 2018, 17:57 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
On a vanilla install of rabbitmq, using the default (generated) config, systemctl is unable to start rabbitmq.

journalctl says: {shutdown,{failed_to_start_child,auth,{"Error when reading /var/lib/rabbitmq/.erlang.cookie: eacces",...

.erlang.cookie is present in /var/lib/rabbitmq and is owned by root

Solved by deleting the cookie and restarting the service. I believe the service is started as user rabbitmq.

Additional info:
* rabbitmq 3.7.4-1

Steps to reproduce:
1. install vanilla rabbitmq
2. systemctl start rabbitmq (throws startup error, check `journalctl -xe` for details)
3. rm -f /var/lib/rabbitmq/.erlang.cookie
4. systemctl start rabbitmq (starts successfully)
This task depends upon

Closed by  Levente Polyak (anthraxx)
Saturday, 07 July 2018, 17:57 GMT
Reason for closing:  Works for me
Comment by Levente Polyak (anthraxx) - Thursday, 10 May 2018, 15:47 GMT
your .erlang.cookie was there already before "vanilla install" and you seem to have started or interacted with rabbitmq as root.
Just tried it in a clean env and it just works.

Loading...