[Pkg-mpd-maintainers] Bug#887834: mpd installation fails, cannot open /var/lib/mpd/tag_cache, /run/mpd/pid

Diederik de Haas didi.debian at cknow.org
Wed Nov 10 23:49:32 GMT 2021


On Fri, 5 Nov 2021 05:55:52 +0100 Florian Schlichting <fsfs at debian.org> wrote:
> Hi Ryan (and Max please see below):
> 
> please, for now, delete or comment out the pid_file line

I'm responding to this bug as commenting out the pid_file line was the solution
for me too, but my 'symptoms' are (a bit) different.

For me it wasn't a new install of mpd, but an upgrade:
root at soundserver:~# grep 'upgrade mpd' /var/log/dpkg.log
2021-11-10 21:03:37 upgrade mpd:arm64 0.22.10-1+b1 0.23.3-2

The system upgrade brought a lot of updated and also new packages (pipewire),
but in hindsight it's probably not important. I also installed a new kernel and
therefor rebooted my system.

After reboot I noticed a problem with mpd:
diederik at soundserver:~$ systemctl | grep -i fail
● mpd.service                  loaded failed failed    Music Player Daemon
● mpd.socket                   loaded failed failed    mpd.socket
diederik at soundserver:~$ systemctl status mpd.service
× mpd.service - Music Player Daemon
     Loaded: loaded (/lib/systemd/system/mpd.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2021-11-10 23:30:21 CET; 1min 11s ago
TriggeredBy: × mpd.socket
       Docs: man:mpd(1)
             man:mpd.conf(5)
             file:///usr/share/doc/mpd/html/user.html
    Process: 1466 ExecStart=/usr/bin/mpd --no-daemon $MPDCONF (code=exited, status=1/FAILURE)
   Main PID: 1466 (code=exited, status=1/FAILURE)
        CPU: 1.876s

nov 10 23:30:19 soundserver systemd[1]: Starting Music Player Daemon...
nov 10 23:30:21 soundserver mpd[1466]: Nov 10 23:30 : exception: Tag list mismatch, discarding database file
nov 10 23:30:21 soundserver mpd[1466]: Nov 10 23:30 : exception: Failed to create pid file "/run/mpd/pid": Permission denied
nov 10 23:30:21 soundserver systemd[1]: mpd.service: Main process exited, code=exited, status=1/FAILURE
nov 10 23:30:21 soundserver systemd[1]: mpd.service: Failed with result 'exit-code'.
nov 10 23:30:21 soundserver systemd[1]: Failed to start Music Player Daemon.
nov 10 23:30:21 soundserver systemd[1]: mpd.service: Consumed 1.876s CPU time.
nov 10 23:30:21 soundserver systemd[1]: mpd.service: Start request repeated too quickly.
nov 10 23:30:21 soundserver systemd[1]: mpd.service: Failed with result 'exit-code'.
nov 10 23:30:21 soundserver systemd[1]: Failed to start Music Player Daemon.

I found https://github.com/MusicPlayerDaemon/MPD/issues/1299 which seem to
indicate that the first exception is expected.
I did a "mpc rescan" both as user (me) and as root, but got
"MPD error: Connection refused", which indicates a premission issue. So I
checked the /run/ directory and saw that there wasn't a 'mpd' subdir.

Then I checked Debian's BTS and found this bug.
After disabling the pidfile-line, mpd did start up successfully (it still
printed the "exception: Tag list mismatch, discarding database file", but it
now did start successfully.

root at soundserver:~# ls -ld /run/mpd
drwxr-xr-x 2 root root 60 Nov 10 23:53 /run/mpd
root at soundserver:~# ls -l /run/mpd/
total 0
srw-rw-rw- 1 root root 0 Nov 10 23:53 socket


I'm _assuming_ that it's the same issue, but as my symptoms are somewhat
different, I thought I'd mention mine.
If this is actually a different issue which should be filed separately, let me
know and I'll do that. If you want me to run (some) tests, I can do that too.

Cheers,
  Diederik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-mpd-maintainers/attachments/20211111/1115fc6e/attachment.sig>


More information about the Pkg-mpd-maintainers mailing list