TCP ports stuck in SYN_RECV, cannot connect clients

Need help with MPD?
Post Reply
bytesoup
Posts: 4
Joined: June 12th, 2013, 4:38 pm

TCP ports stuck in SYN_RECV, cannot connect clients

Post by bytesoup » June 12th, 2013, 4:52 pm

Hi folks,

I installed mpd onto an Ubuntu 11.10 and most of the time it works ok. Now and then I find I cannot connect a client. When I ssh to the machine I see the following kind of netstat output:

Output from mpd --version

Code: Select all

$ /usr/bin/mpd --version
mpd (MPD: Music Player Daemon) 0.16.2 

Client (sonata)

$ netstat -an | grep "192.168.0.15"
tcp 0 0 192.168.0.12:60527 192.168.0.15:6600 ESTABLISHED
tcp 0 1 192.168.0.12:60497 192.168.0.15:6600 FIN_WAIT1
tcp 0 1 192.168.0.12:60526 192.168.0.15:6600 FIN_WAIT1
tcp 0 0 192.168.0.12:49694 192.168.0.15:22 ESTABLISHED
tcp 0 1 192.168.0.12:60524 192.168.0.15:6600 FIN_WAIT1
tcp 0 1 192.168.0.12:60525 192.168.0.15:6600 FIN_WAIT1
tcp 0 1 192.168.0.12:60498 192.168.0.15:6600 FIN_WAIT1
tcp 0 1 192.168.0.12:60521 192.168.0.15:6600 FIN_WAIT1
tcp 0 1 192.168.0.12:60522 192.168.0.15:6600 FIN_WAIT1

Server (mpd)

$ netstat -an | grep 6600
tcp 0 0 192.168.0.15:6600 0.0.0.0:* LISTEN
tcp 0 0 192.168.0.15:6600 192.168.0.12:60535 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60498 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60536 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60527 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60497 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60533 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60532 SYN_RECV
tcp 0 0 192.168.0.15:6600 192.168.0.12:60526 SYN_RECV
tcp 1 0 192.168.0.15:6600 192.168.0.12:59696 CLOSE_WAIT
tcp 1 0 192.168.0.15:6600 192.168.0.12:59697 CLOSE_WAIT
tcp 1 0 192.168.0.15:6600 192.168.0.12:59700 CLOSE_WAIT
tcp 1 0 192.168.0.15:6600 192.168.0.12:59699 CLOSE_WAIT
tcp 0 0 192.168.0.15:6600 192.168.0.6:53942 ESTABLISHED
tcp 1 0 192.168.0.15:6600 192.168.0.12:59703 CLOSE_WAIT
tcp 1 0 192.168.0.15:6600 192.168.0.12:59702 CLOSE_WAIT
tcp 8 0 192.168.0.15:6600 192.168.0.12:59038 CLOSE_WAIT

Does this seem like a client disconnection issue? If so then I wonder why the server side is stuck in SYN_RECV. I have no other connectivity issues to this machine. I can use ssh, sftp, vnc etc. If anyone has nay idea i'd be greatful for a suggestion.

Workaround is restarting mpd which is ok for me, but its not fair to expect other users to have to do this.

Post Reply