You are not logged in.

#1 2009-09-28 17:44:11

TomNuke
Member
Registered: 2009-09-28
Posts: 3

MPD/aMsn "Max Connections Reached"

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

#2 2009-09-28 18:31:23

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: MPD/aMsn "Max Connections Reached"

TomNuke wrote:

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

#3 2009-09-28 19:22:40

TomNuke
Member
Registered: 2009-09-28
Posts: 3

Re: MPD/aMsn "Max Connections Reached"

<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

#4 2009-09-28 21:51:08

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: MPD/aMsn "Max Connections Reached"

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

#5 2009-09-28 22:10:49

TomNuke
Member
Registered: 2009-09-28
Posts: 3

Re: MPD/aMsn "Max Connections Reached"

Thanks for all your help and advice, Much appreciated smile

Offline

#6 2009-10-08 10:18:29

shtrom
Member
Registered: 2009-06-10
Posts: 7
Website

Re: MPD/aMsn "Max Connections Reached"

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

Board footer

Powered by FluxBB