[Pkg-mpd-maintainers] Bug#887834: Bug#887834: mpd installation fails, cannot open /var/lib/mpd/tag_cache, /run/mpd/pid
Ryan Kavanagh
rak at debian.org
Thu Nov 4 17:56:34 GMT 2021
Control: unarchive -1
Control: reopen -1 !
Control: found -1 0.23.3-1
Control: severity -1 grave
Justification: renders package unusable
Hi Florian,
I can reproduce this bug with 0.23.3-1. I purged mpd and reinstalled it,
and have the following minimal mpd.conf:
--------------------------------------------------
music_directory "/var/lib/mpd/music"
db_file "/var/lib/mpd/tag_cache"
pid_file "/run/mpd/pid"
state_file "/var/lib/mpd/state"
log_level "verbose"
user "mpd"
bind_to_address "127.0.0.1"
audio_output {
type "null"
name "null"
}
--------------------------------------------------
Attempting to start mpd results in:
--------------------------------------------------
rak at zeta:~$ sudo service mpd start
Job for mpd.service failed because a fatal signal was delivered to the control process.
See "systemctl status mpd.service" and "journalctl -xeu mpd.service" for details.
rak at zeta:~$ sudo systemctl status mpd.service
× mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Thu 2021-11-04 13:49:36 EDT; 2s ago
TriggeredBy: × mpd.socket
Docs: man:mpd(1)
man:mpd.conf(5)
file:///usr/share/doc/mpd/html/user.html
Process: 474546 ExecStart=/usr/bin/mpd --no-daemon $MPDCONF (code=killed, signal=ABRT)
Main PID: 474546 (code=killed, signal=ABRT)
CPU: 175ms
Nov 04 13:49:36 zeta mpd[474546]: sndfile: libsndfile-1.0.31
Nov 04 13:49:36 zeta mpd[474546]: hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Nov 04 13:49:36 zeta mpd[474546]: adplug: adplug 2.3.3
Nov 04 13:49:36 zeta mpd[474546]: exception: Failed to open '/var/lib/mpd/tag_cache': No such file or directory
Nov 04 13:49:36 zeta mpd[474546]: curl: version 7.74.0
Nov 04 13:49:36 zeta mpd[474546]: curl: with GnuTLS/3.7.2
Nov 04 13:49:36 zeta mpd[474546]: mpd: ../src/event/Loop.cxx:60: EventLoop::~EventLoop(): Assertion `sockets.empty()' failed.
Nov 04 13:49:36 zeta systemd[1]: mpd.service: Main process exited, code=killed, status=6/ABRT
Nov 04 13:49:36 zeta systemd[1]: mpd.service: Failed with result 'signal'.
Nov 04 13:49:36 zeta systemd[1]: Failed to start Music Player Daemon.
rak at zeta:~$ ls -lash /var/lib/mpd
total 14K
0 drwxr-xr-x 1 mpd audio 50 2021-11-04 13:46 .
0 drwxr-xr-x 1 root root 1.2K 2021-11-02 21:41 ..
1.5K drwxr-xr-x 8 rak rak 14 2021-11-02 21:53 music
0 drwxr-xr-x 1 mpd audio 162 2020-02-01 13:12 playlists
12K -rw-r--r-- 1 mpd audio 12K 2021-11-04 13:31 sticker.sql
rak at zeta:~$ sudo journalctl -S "2021-11-04 13:49:30" -xu mpd.service
-- Journal begins at Sat 2021-10-30 20:02:14 EDT, ends at Thu 2021-11-04 13:49:46 EDT. --
Nov 04 13:49:35 zeta systemd[1]: Starting Music Player Daemon...
░░ Subject: A start job for unit mpd.service has begun execution
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit mpd.service has begun execution.
░░
░░ The job identifier is 21168.
Nov 04 13:49:36 zeta mpd[474546]: libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
Nov 04 13:49:36 zeta mpd[474546]: vorbis: Xiph.Org libVorbis 1.3.7
Nov 04 13:49:36 zeta mpd[474546]: opus: libopus 1.3.1
Nov 04 13:49:36 zeta mpd[474546]: sndfile: libsndfile-1.0.31
Nov 04 13:49:36 zeta mpd[474546]: hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Nov 04 13:49:36 zeta mpd[474546]: adplug: adplug 2.3.3
Nov 04 13:49:36 zeta mpd[474546]: exception: Failed to open '/var/lib/mpd/tag_cache': No such file or directory
Nov 04 13:49:36 zeta mpd[474546]: curl: version 7.74.0
Nov 04 13:49:36 zeta mpd[474546]: curl: with GnuTLS/3.7.2
Nov 04 13:49:36 zeta mpd[474546]: mpd: ../src/event/Loop.cxx:60: EventLoop::~EventLoop(): Assertion `sockets.empty()' failed.
Nov 04 13:49:36 zeta systemd[1]: mpd.service: Main process exited, code=killed, status=6/ABRT
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit mpd.service has exited.
░░
░░ The process' exit code is 'killed' and its exit status is 6.
Nov 04 13:49:36 zeta systemd[1]: mpd.service: Failed with result 'signal'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit mpd.service has entered the 'failed' state with result 'signal'.
Nov 04 13:49:36 zeta systemd[1]: Failed to start Music Player Daemon.
░░ Subject: A start job for unit mpd.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit mpd.service has finished with a failure.
░░
░░ The job identifier is 21168 and the job result is failed.
--------------------------------------------------
If I attempt to create an empty file '/var/lib/mpd/tag_cache', I get the
following behaviour:
--------------------------------------------------
rak at zeta:~$ doas -u mpd touch /var/lib/mpd/tag_cache
rak at zeta:~$ doas service mpd start
[sudo] password for rak:
Job for mpd.service failed because a fatal signal was delivered to the control process.
See "systemctl status mpd.service" and "journalctl -xeu mpd.service" for details.
rak at zeta:~$ doas systemctl status mpd.service
× mpd.service - Music Player Daemon
Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Thu 2021-11-04 13:51:52 EDT; 1s ago
TriggeredBy: × mpd.socket
Docs: man:mpd(1)
man:mpd.conf(5)
file:///usr/share/doc/mpd/html/user.html
Process: 474899 ExecStart=/usr/bin/mpd --no-daemon $MPDCONF (code=killed, signal=ABRT)
Main PID: 474899 (code=killed, signal=ABRT)
CPU: 180ms
Nov 04 13:51:52 zeta mpd[474899]: hybrid_dsd: The Hybrid DSD decoder is disabled because it was not explicitly enabled
Nov 04 13:51:52 zeta mpd[474899]: adplug: adplug 2.3.3
Nov 04 13:51:52 zeta mpd[474899]: simple_db: reading DB
Nov 04 13:51:52 zeta mpd[474899]: exception: Database corrupted
Nov 04 13:51:52 zeta mpd[474899]: curl: version 7.74.0
Nov 04 13:51:52 zeta mpd[474899]: curl: with GnuTLS/3.7.2
Nov 04 13:51:52 zeta mpd[474899]: mpd: ../src/event/Loop.cxx:60: EventLoop::~EventLoop(): Assertion `sockets.empty()' failed.
Nov 04 13:51:52 zeta systemd[1]: mpd.service: Main process exited, code=killed, status=6/ABRT
Nov 04 13:51:52 zeta systemd[1]: mpd.service: Failed with result 'signal'.
Nov 04 13:51:52 zeta systemd[1]: Failed to start Music Player Daemon.
rak at zeta:~$ ls -lash /var/lib/mpd
total 14K
0 drwxr-xr-x 1 mpd audio 68 2021-11-04 13:51 .
0 drwxr-xr-x 1 root root 1.2K 2021-11-02 21:41 ..
1.5K drwxr-xr-x 8 rak rak 14 2021-11-02 21:53 music
0 drwxr-xr-x 1 mpd audio 162 2020-02-01 13:12 playlists
12K -rw-r--r-- 1 mpd audio 12K 2021-11-04 13:31 sticker.sql
0 -rw-r--r-- 1 mpd audio 0 2021-11-04 13:51 tag_cache
--------------------------------------------------
I've bumped the severity to grave because this bug renders the package
unusable. I'm happy to provide any debugging information you need.
Best,
Ryan
--
|)|/ Ryan Kavanagh | 4E46 9519 ED67 7734 268F
|\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mpd-maintainers/attachments/20211104/461f10b2/attachment.sig>
More information about the Pkg-mpd-maintainers
mailing list