rabbitmq-server fails to start when /var/log/rabbitmq does not exist
Bug #1585043 reported by
Michael Baudino
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RabbitMQ |
Fix Released
|
Unknown
|
|||
rabbitmq-server (Ubuntu) |
Won't Fix
|
High
|
Unassigned |
Bug Description
rabbitmq-server fails to start (`sudo service [re]start rabbitmq-server`) if the log directory (`/var/
It's a frequent use-case for people who mount `/var/log` as `tmpfs` (e.g. for SSD optimization).
The script just hangs forever and does not provide any useful output nor (you guessed it) any log.
Running `sudo mkdir /var/log/rabbitmq && sudo chown rabbitmq:rabbitmq /var/log && sudo service rabbitmq-server restart` starts it successfully, though.
Bug noticed on rabbitmq-server 3.6.2-1 but it may affect other versions too.
Feel free to ask more information, I reproduce this bug every single morning when starting my computer ;-)
Changed in rabbitmq-server (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in rabbitmq: | |
status: | Unknown → Fix Released |
To post a comment you must log in.
I was able to reproduce this issue also:
Oct 17 14:01:11 u1610 rabbitmq[23206]: /usr/sbin/ rabbitmq- server: 33: /usr/sbin/ rabbitmq- server: cannot create /var/log/ rabbitmq/ startup_ log: Dir server. service: Main process exited, code=exited, status= 2/INVALIDARGUME NT server. service: Control process exited, code=exited status=2 server. service has failed
Oct 17 14:01:11 u1610 systemd[1]: rabbitmq-
Oct 17 14:01:12 u1610 rabbitmq[23207]: Waiting for rabbit@u1610 ...
Oct 17 14:01:12 u1610 rabbitmq[23207]: pid is 21986 ...
Oct 17 14:01:12 u1610 rabbitmq[23207]: Error: process_not_running
Oct 17 14:01:12 u1610 systemd[1]: rabbitmq-
Oct 17 14:01:12 u1610 systemd[1]: Failed to start RabbitMQ Messaging Server.
-- Subject: Unit rabbitmq-