mpd fails to start if music_directory is on NFS

Bug #141425 reported by Paul Natsuo Kishimoto
10
Affects Status Importance Assigned to Milestone
mpd (Debian)
Fix Released
Unknown
mpd (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: mpd

In /etc/mpd.conf, music_directory is, by default, /var/lib/mpd/music

I have /var/lib/mpd/music symlinked to a NFS folder. However, since mpd is before mountall.sh in the rc*.d directories (30 vs. 35), mpd fails to start because the NFS share is not mounted.

I fixed this by running:
 sudo update-rc.d -f mpd remove
 sudo update-rc.d mpd start 40 2 3 4 5 . stop 0 1 6 .
... but it would be nice if the package was corrected so I didn't have to do this.

Revision history for this message
Dutch Gecko (dutch-gecko) wrote :

Confirming this, where the directory has been set directly using .mpdconf rather than symlinks. The music is located on a dmraid device on an NTFS partition.

Changed in mpd:
status: New → Confirmed
Revision history for this message
Martin Brook (martin.brook) wrote :

Confirmed in gutsy.

This one had me stumped, your suggested fix makes perfect sense.

However, I think the commands should be as follows (the 15 was missing):

sudo update-rc.d -f mpd remove
sudo update-rc.d mpd start 40 2 3 4 5 . stop 15 0 1 6 .

Changed in mpd:
status: Unknown → Fix Released
Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

Experiencing this again in 8.10.

This time the offender would seem to be /etc/init.d/mountfs.sh or mountnfs-bootclean.sh; however:
# update-rc.d -f mpd remove
# update-rc.d mpd defaults 47 17
...doesn't seem to fix the problem. Perhaps it is a matter of dependencies in the init scripts?

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks for reporting. Is this still an issue for you? Could you also try jaunty?

Changed in mpd (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Paul Natsuo Kishimoto (khaeru) wrote :

I just installed the Jaunty release candidate, and it seems to be fixed. nfs-common (S20) is mounting my NFS share, and mpd is at S30 by default.

Unfortunately that was the last system I had running 8.10 LTS, so I don't know if it is still there. I should note that that system was originally installed as 7.04 and had been upgraded repeatedly; I did a clean install for Jaunty to use ext4. Perhaps the bug was a consequence of the upgrades, and won't appear on new LTS installs. Maybe the other commenters can corroborate this, if it is important.

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I noticed that the package version your bugging is updated in Maverick. Please update via www.ubuntu.com repost a detailed error report, and update the bug status. Thanks!

Revision history for this message
Florian Schlichting (fschlich) wrote :

as per comment #5

Changed in mpd (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.