Default Install of mpd not able to open /var/log/mpd/mpd.log on Disco Dingo so mpd.service fails.
Bug #1842683 reported by
ALU
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mpd (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Brand new installation of Ubuntu 19.04 (Disco Dingo) on laptop.
Reviewing syslog messages returned the following
Sep 4 09:36:31 REDACTED mpd[1606]: exception: failed to open log file "/var/log/
Sep 4 09:36:31 REDACTED systemd[1590]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Sep 4 09:36:31 REDACTED systemd[1590]: mpd.service: Failed with result 'exit-code'.
Sep 4 09:36:31 REDACTED systemd[1590]: Failed to start Music Player Daemon.
I can easily fix by modifying permissions or modifying the config file, but reporting as this probably impacts others.
To post a comment you must log in.
More information:
$ls -ld /var/log/mpd
drwxr-xr-x 2 mpd audio 4096 Sep 1 00:00 /var/log/mpd/
$ ls -l /var/log/mpd/
total 8
-rw-r--r-- 1 root root 600 Sep 4 09:36 mpd.log
-rw-r--r-- 1 root root 164 Aug 31 21:58 mpd.log.1.gz
$cat /etc/logrotate. d/mpd
copytruncate
/var/log/mpd/*.log {
weekly
missingok
rotate 7
compress
notifempty
create 600
}
So I'd guess that the create statement in /etc/logrotate. d/mpd should read
"create 600 mpd audio"
and not just "create 600"