This morning our mp3 server at work ran out of disk space entirely, which caused mpd to stop (we run mpd, icecast with the Pitchfork frontend off a Debian server over our stereo system in the office. It's great except for the terrible music that often gets played).
After clearing some space (also known as deleting aforementioned terrible music), I was unable to start mpd simply with /etc/init.d/mpd start. The error I received was 'Error reading db, fgets'.
There wasn't much around on the internet about why this happens, but it doesn't take a genius to figure that the mpd database either got corrupted or simply became unavailable due to the lack of disk space.
The solution: run mpd --create-db from the command line, which forces the database to recreate itself. Once this is finished, you should be able to run /etc/init.d/mpd start without any problems.
Edit: Had issues with icecast after this as well. Restarting didn't help, had to kill a rogue process and it automagically recovered..
This site is archived. mig5 is taking a break from writing.
Thanks, the mpd fix helped me
Thanks, the mpd fix helped me out.
Glad to hear it! :)
Glad to hear it! :)
Very good post, thanks a lot.
Very good post, thanks a lot.