Hi there,
I’m trying to set up MPD for the first time, and I’m having a bit of an issue. My steps essentially go like this:
- Start MPD
matt@matt:~> sudo /usr/bin/mpd /etc/mpd.conf
-
Start Sonata (Or MPoD on my iPhone). Everything connects okay.
-
Try to play a song. Doesn’t play. MPD Server has crashed.
Here it is from the beginning of me starting sonata:
matt@matt:~> sonata
2011-03-12 12:27:04 Connection lost while reading line
Traceback (most recent call last):
File "/usr/local/lib64/python2.7/site-packages/sonata/current.py", line 623, in on_current_click
self.iterate_now()
File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1065, in iterate_now
self.iterate()
File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1019, in iterate
self.handle_change_status()
File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1566, in handle_change_status
self.info_update(True)
File "/usr/local/lib64/python2.7/site-packages/sonata/main.py", line 1320, in info_update
self.info.info_update(playing_or_paused, newbitrate, self.songinfo, update_all, blank_window, skip_lyrics)
File "/usr/local/lib64/python2.7/site-packages/sonata/info.py", line 292, in info_update
if len(tracks) > 0:
TypeError: object of type 'NoneType' has no len()
2011-03-12 12:27:08 Connection lost while reading line
2011-03-12 12:27:08 [Errno 32] Broken pipe
2011-03-12 12:27:09 Already connected
2011-03-12 12:27:09 'NoneType' object has no attribute 'sendall'
2011-03-12 12:27:10 [Errno 111] Connection refused
2011-03-12 12:27:10 Not connected
The same happens when I try to play from MPoD, resulting in a “Not Connected to server” and finding that the server has shut itself down.
Here is the entirety of my /etc/mpd.conf file: (Had to put it in a pastebin to avoid going over the character limit on new threads)
mpd --version
matt@matt:~> mpd --version
mpd (MPD: Music Player Daemon) 0.16.1
Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright (C) 2008-2010 Max Kellermann <max@duempel.org>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Supported decoders:
[mad] mp3 mp2
[mpg123] mp3
[vorbis] ogg oga
[oggflac] ogg oga
[flac] flac
[audiofile] wav au aiff aif
[faad] aac
[mp4ff] m4a m4b mp4
[mpcdec] mpc
[wavpack] wv
[modplug] 669 amf ams dbm dfm dsm far it med mdl mod mtm mt2 okt s3m stm ult umx xm
[mikmod] amf dsm far gdm imf it med mod mtm s3m stm stx ult uni xm
[fluidsynth] mid
[ffmpeg] 16sv 3g2 3gp 4xm 8svx aa3 aac ac3 afc aif aifc aiff al alaw amr anim apc ape asf atrac au aud avi avm2 avs bap bfi c93 cak cin cmv cpk daud dct divx dts dv dvd dxa eac3 film flac flc fli fll flx flv g726 gsm gxf iss m1v m2v m2t m2ts m4a m4b m4v mad mj2 mjpeg mjpg mka mkv mlp mm mmf mov mp+ mp1 mp2 mp3 mp4 mpc mpeg mpg mpga mpp mpu mve mvi mxf nc nsv nut nuv oga ogm ogv ogx oma ogg omg psp pva qcp qt r3d ra ram rl2 rm rmvb roq rpl rvc shn smk snd sol son spx str swf tgi tgq tgv thp ts tsp tta xa xvid uv uv2 vb vid vob voc vp6 vmd wav wma wmv wsaud wsvga wv wve
[gme] ay gbs gym hes kss nsf nsfe sap spc vgm vgz
Supported outputs:
shout null fifo alsa ao oss pulse mvp jack httpd recorder
Supported encoders:
null vorbis lame wave flac
Supported archives:
bz2 iso
Supported protocols:
file:// http:// mms:// mmsh:// mmst:// mmsu:// gopher:// rtp:// rtsp:// rtmp:// rtmpt:// rtmps://
Sonata Version
matt@matt:~> sonata --version
Version: Sonata 1.6.2.1
Website: http://sonata.berlios.de/
KDE 4.6, OpenSUSE 11.4
Running out through ALSA (PulseAudio is disabled)
Thanks for the help!