You are not logged in.

#1 2009-04-23 14:22:05

ap_
Member
From: Finland
Registered: 2008-10-14
Posts: 48

Cannot connect to MPD [SOLVED and ashamed]

Hi. Since rebooting the computer I haven't been able to connect MPD at localhost. Yes, I've tried rebooting and restarting MPD smile

The daemon starts fine (also at boot):

 sudo /etc/rc.d/mpd start
:: Starting Music Player Daemon [DONE]

However with ncmpcpp I get "Cannot connect to mpd: problems connecting to "localhost" on port 6600: Connection refused". And with Sonata 

sonata
2009-04-23 17:17:53  [Errno 111] Connection refused
2009-04-23 17:17:53  Not connected

Also stopping the daemon outputs this:

sudo /etc/rc.d/mpd stop
:: Stopping Music Player Daemon  [BUSY] 
/etc/rc.d/mpd: line 6: 20685 Aborted                 /usr/bin/mpd --kill /etc/mpd.conf >&/dev/null [FAIL]
music_directory       "/home/ap/Music"
playlist_directory    "/home/ap/.playlists"
db_file               "/home/ap/.mpd/db"
log_file              "/home/ap/.mpd/log"
error_file            "/home/ap/.mpd/error"
pid_file              "/home/ap/.mpd/mpd.pid"
state_file            "/home/ap/.mpd/mpdstate"
user                  "ap"
bind_to_address       "localhost"
#mpd_port          "6600"
port                  "6600"
log_level          "verbose"
connection_timeout   "60"
#max_playlist_length  "16384"
filesystem_charset   "UTF-8"
#id3v1_encoding       "ISO-8859-1"

Any suggestions?

EDIT: Sorry, just double checked with ps, MPD is not running, even though it seems to start succesfully.

Ehh, reading the error log helps sometimes. Deleting mpdstate-file fixed the problem. :facepalm:

Last edited by ap_ (2009-04-23 15:25:39)

Offline

Board footer

Powered by FluxBB