MPD: "Failed to decode..."
Posted: Sun Dec 23, 2018 7:46 pm
[PROBLEM]
Suddenly a well functioning MPD (on Raspbian Jessie 9.1, Raspberry Pi v1) didn't play songs anymore. Playlists could be loaded, library searched - but no audio output.
Throughout this text here, "one_of_my_songs.mp3" is a placeholder-filename of the actual song it tried to play.
On MALP (Android) there was no error message.
You could switch songs in the playlist, change volume, anything - but: no audio output and the play position would not change.
On GMPC (Linux) at least I got an error message:
[SOLUTION]
The affected songs were on a mounted network share (CIFS/SMB) which simply wasn't mounted anymore since reboot.
Reading "/var/log/mpd/mpd.log" helped to figure this out:
Suddenly a well functioning MPD (on Raspbian Jessie 9.1, Raspberry Pi v1) didn't play songs anymore. Playlists could be loaded, library searched - but no audio output.
Throughout this text here, "one_of_my_songs.mp3" is a placeholder-filename of the actual song it tried to play.
On MALP (Android) there was no error message.
You could switch songs in the playlist, change volume, anything - but: no audio output and the play position would not change.
On GMPC (Linux) at least I got an error message:
MPD Reported the following error: 'Failed to decode one_of_my_songs.mp3'
[SOLUTION]
The affected songs were on a mounted network share (CIFS/SMB) which simply wasn't mounted anymore since reboot.
Reading "/var/log/mpd/mpd.log" helped to figure this out:
Followed again, by a more cryptic message - but for the same audiofile:errno: Failed to open "/var/lib/mpd/music/one_of_my_songs.mp3": No such file or directory
Just check if the audiofiles are accessible by MPD when this happensmpg123: libmpg123 failed to open /var/lib/mpd/music/one_of_my_songs.mp3: A generic mpg123 error.