Discussion:
Fail to connect to mpd
(too old to reply)
andy
2007-11-08 05:10:39 UTC
Permalink
Today, after I ran "mpdboot -n 2 -v", I got error
///////////////////////////////////////////////////////////////////
running mpdallexit on cluster9
LAUNCHED mpd on cluster9 via
RUNNING: mpd on cluster9
LAUNCHED mpd on cluster1 via cluster9
mpdboot_cluster9 (handle_mpd_output 394): failed to connect to mpd on
cluster1
////////////////////////////////////////////////////////////////////
Then I check hosts using "mpdcheck -f mpd.hosts -ssh", I got
///////////////////////////////////////////////////////////////////
client on cluster1 failed to access the server
here is the output:
Traceback (most recent call last):
File "/usr/local/bin/mpdcheck.py", line 103, in <module>
sock.connect((argv[argidx+1],int(argv[argidx+2]))) # note double
parens
File "<string>", line 1, in connect
socket.error: (113, 'No route to host')
///////////////////////////////////////////////////////////////////
However, cluster1 could ssh cluster9 without password.
Thanka a lot for your help!

Best regards,

Xuechen
jarek
2007-11-16 19:33:08 UTC
Permalink
Post by andy
Today, after I ran "mpdboot -n 2 -v", I got error
///////////////////////////////////////////////////////////////////
running mpdallexit on cluster9
LAUNCHED mpd on cluster9 via
RUNNING: mpd on cluster9
LAUNCHED mpd on cluster1 via cluster9
mpdboot_cluster9 (handle_mpd_output 394): failed to connect to mpd on
cluster1
////////////////////////////////////////////////////////////////////
Then I check hosts using "mpdcheck -f mpd.hosts -ssh", I got
///////////////////////////////////////////////////////////////////
client on cluster1 failed to access the server
File "/usr/local/bin/mpdcheck.py", line 103, in <module>
sock.connect((argv[argidx+1],int(argv[argidx+2]))) # note double
parens
File "<string>", line 1, in connect
socket.error: (113, 'No route to host')
///////////////////////////////////////////////////////////////////
However, cluster1 could ssh cluster9 without password.
Thanka a lot for your help!
Best regards,
Xuechen
Hi,
reading the install guide you will notice:
"if you are blocking all ports except the ports used by ssh/sshd, then
mpd
will still fail to operate correctly"

So open on all your boxes some ports, let's say 55000 - 56000
Then go to ~/.mpd.conf on all boxes an add following line:
MPD_PORT_RANGE=55000:56000

Regards,
jarek

Loading...