Page 1 of 1

Xenial to Bionic: mpd.service start operation timed out

Posted: August 8th, 2019, 4:04 pm
by asktoby
Hello,
I upgraded from Ubuntu Xenial to Bionic. MPD no longer starts for me.

Code: Select all

toby@Media:~$ sudo service mpd start
Job for mpd.service failed because a timeout was exceeded.
See "systemctl status mpd.service" and "journalctl -xe" for details.
The logs show:

Code: Select all

$journalctl -xe
-- Unit mpd.service has begun starting up.
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : exception: bind to '0.0.0.0:6600' failed (continuing anyway, because binding to '[::]:6600' succeeded): Failed to bind socket: Address already in use
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : path: SetFSCharset: fs charset is:
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : libsamplerate: libsamplerate converter 'Fastest Sinc Interpolator'
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : vorbis: Xiph.Org libVorbis 1.3.5
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : opus: libopus 1.1.2
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : sndfile: libsndfile-1.0.28
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : wildmidi: configuration file does not exist: /etc/timidity/timidity.cfg
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : adplug: adplug 2.2.1
Aug 08 16:46:10 Media mpd[10322]: Aug 08 16:46 : simple_db: reading DB
Aug 08 16:46:12 Media mpd[10322]: Aug 08 16:46 : curl: version 7.58.0
Aug 08 16:46:12 Media mpd[10322]: Aug 08 16:46 : curl: with GnuTLS/3.5.18
Aug 08 16:47:36 Media systemd[1]: mpd.service: Start operation timed out. Terminating.
Aug 08 16:48:37 Media systemd[1]: mpd.service: Failed with result 'timeout'.
Aug 08 16:48:37 Media systemd[1]: Failed to start Music Player Daemon.
-- Subject: Unit mpd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- Unit mpd.service has failed.
-- The result is RESULT.

Code: Select all

$ sudo systemctl status mpd.service
‚óŹ mpd.service - Music Player Daemon
   Loaded: loaded (/lib/systemd/system/mpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Thu 2019-08-08 16:48:37 BST; 1min 2s ago
     Docs: man:mpd(1)
           man:mpd.conf(5)
           file:///usr/share/doc/mpd/user-manual.html
  Process: 10322 ExecStart=/usr/bin/mpd --no-daemon $MPDCONF (code=exited, status=0/SUCCESS)
 Main PID: 10322 (code=exited, status=0/SUCCESS)
Here is my /etc/mpd.conf:
https://pastebin.pl/view/raw/4f2c8dd6

My $mpd --version is "Music Player Daemon 0.20.18"
Full version output: https://pastebin.pl/view/raw/c151030c

Any idea what the problem might be?

Re: Xenial to Bionic: mpd.service start operation timed out

Posted: August 8th, 2019, 5:56 pm
by max
Your MPD version is old and unsupported.
But my random guess is that the upgrade broke the NFS client, and now MPD times out while waiting for data from the NFS mount.
If you need further help, first upgrade to a supported version (i.e. 0.21.13 or git master).

Re: Xenial to Bionic: mpd.service start operation timed out

Posted: August 9th, 2019, 4:22 pm
by asktoby
One of my mounts had failed, you were right.
I've fixed that now and mpd runs fine when I run it as root (sudo mpd --no-daemon) and I'm able to connect to it by mpc.
However when I run it as a service (sudo service mpd start) it sits at 50% CPU indefinitely and I'm not able to connect to it with mpc.

(Point taken about it being out of date. 0.20.18 is the latest for Bionic Beaver unfortunately.)

Re: Xenial to Bionic: mpd.service start operation timed out

Posted: August 9th, 2019, 5:32 pm
by max
It's a pity that Debian-based distributions (e.g. Ubuntu and Raspbian) ship with outdated and discontinued MPD versions. Their refusal to provide bug fixes to their users creates a lot of sorrow. These distributions need to hear more loud complaints from their users.

Re: Xenial to Bionic: mpd.service start operation timed out

Posted: August 9th, 2019, 6:02 pm
by asktoby
Yep. I've been burnt before installing things from source and ending up going down the garden path introducing a slew of other issues, "shaving the yak".
I really only like to use distro packages these days.

Re: Xenial to Bionic: mpd.service start operation timed out

Posted: August 17th, 2019, 9:27 pm
by asktoby
Just to follow up - it seems to be fixed now. I think that it sitting at 50% CPU was it scanning my media library, which seemed to take a very long time.
I'm not sure when things changed but it's been a week and it all seems to be working now.
Thanks for the help.