You are not logged in.
Pages: 1
Hello, Im having problems with using MPD and the aMsn Music plugin (To show the 'now playing' song in aMsn)
They work fine together for a while, but after a while, The plugin stops retrieving the song, and my msn log gets filled with:
Sep 28 18:31 : client: Max Connections Reached!
Sep 28 18:31 : client: Max Connections Reached!
Sep 28 18:31 : client: Max Connections Reached!
Sep 28 18:31 : client: Max Connections Reached!
Sep 28 18:32 : client: Max Connections Reached!
Sep 28 18:32 : client: Max Connections Reached!
Sep 28 18:32 : client: Max Connections Reached!
Sep 28 18:32 : client: Max Connections Reached!
Sep 28 18:32 : client: Max Connections Reached!
Sep 28 18:32 : client: Max Connections Reached!
Does this mean that for some reason the aMsn plugin isn't closing the connection? I found the option "max_connections" in the config, and i've edited this to 100, but all this does is prolong the inevitable. Does anyone have any advice or tips on how I can solve the issue? I installed MPD according to the Archlinux wiki MPD install guide, and as I am pretty new to MPD, i'm wondering if theres something simple I'm missing?
My mpd.conf:
music_directory "/media/Media/Music/Library" # Your music dir.
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/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"
max_connections "100"
Offline
Does this mean that for some reason the aMsn plugin isn't closing the connection?
most probably, try this in a console:
netstat -a --programs |grep 6600
(change 6600 if you use a different mpd port)
ᶘ ᵒᴥᵒᶅ
Offline
<snip>
2489/wish
tcp 0 0 localhost.localdo:38783 localhost.localdom:6600 CLOSE_WAIT 2489/wish
tcp 1 0 localhost.localdo:38638 localhost.localdom:6600 CLOSE_WAIT
2489/wish
tcp 1 0 localhost.localdo:34240 localhost.localdom:6600 CLOSE_WAIT 2489/wish
tcp 1 0 localhost.localdo:38623 localhost.localdom:6600 CLOSE_WAIT 2489/wish
tcp 0 0 localhost.localdo:34235 localhost.localdom:6600 ESTABLISHED -
tcp 0 0 *:6600 *:* LISTEN -
tcp 0 0 localhost.localdom:6600 localhost.localdo:34052 ESTABLISHED -
tcp 0 0 localhost.localdom:6600 localhost.localdo:34235 ESTABLISHED
Any ideas on how I could possibly fix it? Or would It be best to just get rid of the plugin?
Thanks, Tom
Offline
this would be a bug in the plugin, your best bet probably is to file a bugreport with the plugin developer.
as an alternative you can try using Pidgin with the Musictracker plugin, i haven't seen the max-connections issue there.
ᶘ ᵒᴥᵒᶅ
Offline
Thanks for all your help and advice, Much appreciated
Offline
I have the same problem. In my case, though, it seems to be due to mpdscribble (not using MSN at all):
$ for PORT in `sudo netstat -a | sed -ns "s/^tcp[^:]\+$HOST:6600.*$HOST:\([0-9]\+\).*/\1/p"`; do sudo fuser $PORT/tcp; done
49953/tcp: 8807
38703/tcp: 8807
38686/tcp: 6213
38694/tcp: 8807
38702/tcp: 8807
49951/tcp: 8807
38687/tcp: 8807
38700/tcp: 8807
38701/tcp: 8807
49952/tcp: 8807
38698/tcp: 8807
49950/tcp: 8807
38697/tcp: 8807
38699/tcp: 8807
$ ps ax | grep 8807
8807 ? S 0:00 /usr/bin/mpdscribble
9704 pts/6 S+ 0:00 grep 8807
I tried uncommenting line "sleep = 30" in /etc/mpdscribble.conf, but it doesn't seem to prevent the issue, as mpdscribble slowly reestablishes (and keeps open) new connections (or maybe mpd doesn't close them properly?).
$ pacman -Qs mpd
...
local/mpd 0.15.4-1
Music daemon that plays MP3, FLAC, and Ogg Vorbis files
local/mpdscribble 0.2.12-2
mpd client which submits track info to audioscrobbler.
...
Offline
Pages: 1