You are not logged in.

#1 2010-03-13 10:21:38

freenight
Member
Registered: 2009-12-01
Posts: 6

mpd client can not connect to server

any time when i tried to using a mpd client i got this:

[freenight@localhost ~]$sonata
2010-03-14 02:17:32  timed out
2010-03-14 02:17:32  Not connected

i have installed and configure the mpd as what arch wiki entry http://wiki.archlinux.org/index.php/Mpd … _procedure said.. but the client just cann't connect to the server, why?

the /etc/mpd.conf:

music_directory       "/home/freenight/music" 
playlist_directory    "/var/lib/mpd/playlists"
db_file               "/var/lib/mpd/mpd.db"
log_file              "/var/log/mpd/mpd.log"
error_file            "/var/log/mpd/mpd.error"
pid_file              "/var/run/mpd/mpd.pid"
state_file            "/var/lib/mpd/mpdstate"
user                  "mpd"

Last edited by freenight (2010-03-13 13:01:35)

Offline

#2 2010-03-13 12:38:16

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: mpd client can not connect to server

New versions of mpd need to have an entry in hosts.allow

add something like "mpd: ALL"


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2010-03-13 13:00:34

freenight
Member
Registered: 2009-12-01
Posts: 6

Re: mpd client can not connect to server

Rasi wrote:

New versions of mpd need to have an entry in hosts.allow

add something like "mpd: ALL"

thanks rasi, but it seems like didn't work for me

Offline

#4 2010-03-13 17:57:10

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: mpd client can not connect to server

Rasi wrote:

New versions of mpd need to have an entry in hosts.allow

add something like "mpd: ALL"

You'll get a 'connection refused by server' error if that's the case.

freenight,

Kill mpd with 'mpd --kill', restart it with 'mpd -v', and post the output.

Offline

#5 2010-03-14 02:23:58

freenight
Member
Registered: 2009-12-01
Posts: 6

Re: mpd client can not connect to server

[freenight@sunny awesome]$ sudo mpd -v
config: loading file /etc/mpd.conf
listen: binding to any address
listen: binding to socket address [::]:6600
listen: binding to socket address 0.0.0.0:6600
path: path_set_fs_charset: fs charset is: UTF-8
failed to stat music directory "/home/freenight/music": Permission denied
database: reading DB
output: No "audio_output" defined in config file
output: Attempt to detect audio output device
output: Attempting to detect a alsa audio device
output: Successfully detected a alsa audio device
daemon: opening pid file
[freenight@sunny awesome]$ daemon: daemonized!
daemon: writing pid file

Offline

#6 2010-03-14 04:42:49

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: mpd client can not connect to server

failed to stat music directory "/home/freenight/music": Permission denied

You may want to look at the permissions on that directory. I don't use MPD as user mpd, so I don't know what the set up is like.

Offline

#7 2010-03-14 05:16:57

thetrivialstuff
Member
Registered: 2006-05-10
Posts: 191

Re: mpd client can not connect to server

TCP wrappers syntax changed again, unannounced. The man page is now incorrect.

Try to find an up-to-date one somewhere on the 'net; if you're trying to call shell commands from hosts.allow, you now need the word 'spawn' in front of them. That seemed to fix the problem for me, anyway; there might be other differences too.

~Felix.

Offline

Board footer

Powered by FluxBB