[Bug 522819] Re: Loosing connections with "Connection reset by peer" message

GregoryHuey ghlaunchpad_ubuntubugs at cosmology.name
Sun Mar 7 06:32:00 GMT 2010


No

This is certainly not a local network issue.

I am continuing to see network connections from this machine to another
machine on the same local network being lost. The network connections
are over wired ethernet (device eth0). I also have wireless on this
laptop (a Thinkpad W700ds) which I sometimes use (device wlan0). When my
network connections are dying I am using only eth0. wlan0 is not being
used, but its not deactivated either (that is, I have not done a
ifconfig wlan0 down).

 I think the problem might be due to a problem with wpa_supplicant (or,
perhaps this is a second problem with a common cause). I get the
following messages in /var/log/syslog and daemon.log :

Mar  6 21:18:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:18:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:19:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:19:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:20:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:20:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:21:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:21:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:22:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:22:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:23:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:23:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:24:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:24:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:25:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:25:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:26:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:26:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:27:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:27:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:28:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:28:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 
Mar  6 21:29:12 fingon wpa_supplicant[1379]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:29:12 fingon wpa_supplicant[1379]: WPS-AP-AVAILABLE 

and

Mar  6 21:29:43 fingon wpa_supplicant[5778]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:29:43 fingon wpa_supplicant[5778]: WPS-AP-AVAILABLE 
Mar  6 21:29:43 fingon wpa_supplicant[5778]: Failed to initiate AP scan.
Mar  6 21:29:48 fingon wpa_supplicant[5778]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:29:48 fingon wpa_supplicant[5778]: WPS-AP-AVAILABLE 
Mar  6 21:30:07 fingon wpa_supplicant[5778]: CTRL-EVENT-SCAN-RESULTS 
Mar  6 21:30:07 fingon wpa_supplicant[5778]: WPS-AP-AVAILABLE 
Mar  6 21:30:34 fingon wpa_supplicant[5778]: Failed to initiate AP scan.
Mar  6 21:31:14 fingon wpa_supplicant[5778]: Failed to initiate AP scan.
Mar  6 21:32:04 fingon wpa_supplicant[5778]: Failed to initiate AP scan.
Mar  6 21:33:04 fingon wpa_supplicant[5778]: Failed to initiate AP scan.


and when I turn off the wifi with a manual switch on the machine, I see the following in
syslog:

Mar  6 21:32:04 fingon wpa_supplicant[5778]: Failed to initiate AP scan.
Mar  6 21:33:04 fingon wpa_supplicant[5778]: Failed to initiate AP scan.
Mar  6 21:33:07 fingon NetworkManager: <info>  Wireless now disabled by radio killswitch
Mar  6 21:33:07 fingon NetworkManager: <info>  (wlan0): device state change: 3 -> 2 (reason 0)
Mar  6 21:33:07 fingon NetworkManager: <info>  (wlan0): deactivating device (reason: 0).
Mar  6 21:33:07 fingon NetworkManager: <info>  Policy set 'eth0 home' (eth0) as default for routing and DNS.

And now all the "CTRL-EVENT-SCAN-RESULTS" and "WPS-AP-AVAILABLE" messages cease.
However, it seems the network connections will still die after some time.

Now, ssh merely reports "Read from remote host isildur: Connection reset by peer
Connection to isildur closed."

How can I find out _why_ the connection was reset?

Before you say this must be a problem with the remote host - no, it is
certainly not. I know this because:

A) it happens when the Ubuntu laptop in question connects to any other
remote machine via a ssh login - so its a problem that does not depend
on which remote machine one logs into.

B) Other linux boxes can log into the same remote machines that this
Ubuntu machine logs into, and their network connections are not not
dropped like this.


To correct Thierry Carrez on a point above, I said "background image", not "background download" - pay attention - as I said, the display screen background image ceases to change. There is no "background download" that is failing.

I know this likely not enough info to diagnose the problem, but I hope
its enough for you to tell me what info you do need to diagnose it.

Please change the status of this bug to "valid". It is certainly not
"invalid".

Thanks,
Greg Huey

** Changed in: openssh (Ubuntu)
       Status: Invalid => Incomplete

-- 
Loosing connections with "Connection reset by peer" message
https://bugs.launchpad.net/bugs/522819
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in ubuntu.



More information about the Ubuntu-server-bugs mailing list