[Bug 522819] Re: Loosing connections with Connection reset by peer message
Yes, 69.12.176.95 is the broadcast address for my home network. I don't have a good idea what would happen if one attempted to use the broadcast address for the IP of a machine, but I imagine it might have problems like dropped connections. Ok, that might be half the mystery. The other half is how/why did Network Manager set the IP on eth0 to the broadcast address instead of 69.12.176.91 (which is static)? I'm paying close attention now to what the IP on eth0 gets set to when I enable eth0 Home under Network Manager. So far this problem has not repeated. Thanks, Greg -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 522819] Re: Loosing connections with Connection reset by peer message
Re: background image, not background download: I was assuming this changing Hubble background image was downloaded from somewhere on the Internet. So you mean there is no download, it's changing background image over a set of locally-installed images, and that started to fail as well ? -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 522819] Re: Loosing connections with Connection reset by peer message
Well, here is something strange. The machine in question is on the network via a Network Manager, connection eth0 home. eth0 home is a static-IP configuration for eth0 - the device IP, its netmask, router, DNSes, etc are all given explicitly in Network Manager for this connection. The IP is supposed to be 69.12.176.91. However, I noticed that instead the IP was 69.12.176.95. This is last IP of the 8-IP allowed range on my home network. It is what dhcp would have given, I think. But, I verified dhclient is not running - killall dhclient yields dhclient: no process found. I also verified that in Network Manager, the active connection is eth0 home under wired networks. There is no way the eth0 IP should have been 69.12.176.95. I disconnected eth0 home, and then reconnected it (under Network Manager), and the IP went to 69.12.176.91. The problem with my machine dropping connections - ssh logins to remote hosts - seems to have stopped. I have now gone 12hrs without a dropped connection (ie: the Read from remote host isildur: Connection reset by peer). So there is nowtwo questions: How did this happend? and How would it cause the dropped connections? I do use dhclient when I use this laptop with WiFi networks, and also one wired network - but never for my home network, eth0 home, which is where this problem was happening - and dhclient was not running. How did the IP get set to the wrong value? Does hibernate thaw kill a running version of dhclient when it shuts down the network connection(s)? If dhclient survived a hibernate thaw, could it have changed the eth0 IP, then exited, leaving no trace that it was responsible? Even so, simply having the wrong IP on eth0 shouldn't cause the network connections to be periodically dropped, or so I would think. The only issue I can imagine is that hostname reports fingon.cosmology.name, and nslookup of fingon.cosmology.name yields 69.12.176.91. Could having the wrong IP for one's hostname cause network connections to be dropped? I would not think so. But, clearly something strange buggy is going on. Anyone have any insight? Thanks, Greg Huey -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 522819] Re: Loosing connections with Connection reset by peer message
Would 69.12.176.95 be the broadcast address on your network ? Or would 69.12.176.95 also be attributed to something else on your network ? -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 522819] Re: Loosing connections with Connection reset by peer message
I set LogLevel in the ssh and sshd config files to debug3 in an attempt to discover the cause for the network connection being dropped. I see alot of debugging info, butnothing jumps out at me as a possible cause. The sshd info was not logged to a file that I could find, but here is the output of the ssh client. Note that this time the connections all died simultaneously, and within only a few minutes of being initiated. g...@fingon:~$ ssh -l hgreg isildur debug2: ssh_connect: needpriv 0 debug1: Connecting to isildur [69.12.176.89] port 22. debug1: Connection established. debug1: identity file /home/ggh/.ssh/identity type -1 debug3: Not a RSA1 key file /home/ggh/.ssh/id_rsa. debug2: key_type_from_name: unknown key type '-BEGIN' debug3: key_read: missing keytype debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug2: key_type_from_name: unknown key type '-END' debug3: key_read: missing keytype debug1: identity file /home/ggh/.ssh/id_rsa type 1 debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-4096 debug1: Checking blacklist file /etc/ssh/blacklist.RSA-4096 debug1: identity file /home/ggh/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2 debug1: match: OpenSSH_4.2 pat OpenSSH_4* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-6ubuntu2 debug2: fd 3 setting O_NONBLOCK debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2:
[Bug 522819] Re: Loosing connections with Connection reset by peer message
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
[Bug 522819] Re: Loosing connections with Connection reset by peer message
Not a bug in openssh, works fine everywhere. Looks like an issue with your local network (especially as other things, like the background download, also fail). ** Changed in: openssh (Ubuntu) Status: New = Invalid -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 522819] Re: Loosing connections with Connection reset by peer message
I have more info to add. This bug seems to involve wpa_supplicant. I have wpa_supplicant version 0.6.9-3ubuntu1 installed on the Ubuntu box in question. Internet traffic is over wired ethernet (eth0). ifconfig eth0 and route -n both report what one expects. However, I noticed wpa_supplicant was running. Why is wpa_supplicant running when the wireless device is not active? (I am using _only_ wired ethernet, eth0, at the moment). I noticed the following in /var/log/syslog : Feb 16 15:44:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:45:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:45:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:46:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:46:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:47:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:47:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:48:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:48:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:49:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:49:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:50:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:50:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE Feb 16 15:51:43 fingon wpa_supplicant[30855]: CTRL-EVENT-SCAN-RESULTS Feb 16 15:51:43 fingon wpa_supplicant[30855]: WPS-AP-AVAILABLE ps -auxwww | grep wpa_supplicant yields: root 30855 0.0 0.0 28328 2676 ?S13:32 0:00 /sbin/wpa_supplicant -u -s So why is it running? I did a kill -9 30855, and that process died, but a new one was created (by NetworkManager ?) This happened each time I killed the current wpa_supplicant process, until I killed them in rapid succession (with many killall -9 wpa_supplicant). That does finally kill wpa_supplicant _without_ it getting immediately restarted, but now the NetworkManager icon is gone from the toolbar at the botton of the screen (however, a ps -auxwww | grep NetworkManager reveals it is still running). The network device, eth0, was shut down, and the route table flushed. So, I manually restarted eth0 with ifconfig, and recreated the route table. I had network access. I logged into other machines from the Ubuntu box in question, and the remote sessions did not die as before. So, getting rid of wpa_supplicant apparently solved one problem, but now NetworkManager is screwed - here is part of /var/log/messages: Feb 16 13:19:39 fingon kernel: [907935.419193] Registered led device: iwl-phy0::radio Feb 16 13:19:39 fingon kernel: [907935.419219] Registered led device: iwl-phy0::assoc Feb 16 13:19:39 fingon kernel: [907935.419242] Registered led device: iwl-phy0::RX Feb 16 13:19:39 fingon kernel: [907935.419262] Registered led device: iwl-phy0::TX Feb 16 13:19:39 fingon kernel: [907935.472428] ADDRCONF(NETDEV_UP): wlan0: link is not ready Feb 16 13:19:40 fingon kernel: [907936.785985] Registered led device: iwl-phy0::radio Feb 16 13:19:40 fingon kernel: [907936.786016] Registered led device: iwl-phy0::assoc Feb 16 13:19:40 fingon kernel: [907936.786038] Registered led device: iwl-phy0::RX Feb 16 13:19:40 fingon kernel: [907936.786058] Registered led device: iwl-phy0::TX Feb 16 13:19:40 fingon kernel: [907936.861341] ADDRCONF(NETDEV_UP): wlan0: link is not ready Feb 16 13:19:41 fingon kernel: [907937.769498] Registered led device: iwl-phy0::radio Feb 16 13:19:41 fingon kernel: [907937.769521] Registered led device: iwl-phy0::assoc Feb 16 13:19:41 fingon kernel: [907937.769543] Registered led device: iwl-phy0::RX Feb 16 13:19:41 fingon kernel: [907937.769568] Registered led device: iwl-phy0::TX Feb 16 13:19:41 fingon kernel: [907937.801600] ADDRCONF(NETDEV_UP): wlan0: link is not ready Feb 16 13:19:42 fingon kernel: [907938.785864] Registered led device: iwl-phy0::radio Feb 16 13:19:42 fingon kernel: [907938.785889] Registered led device: iwl-phy0::assoc Feb 16 13:19:42 fingon kernel: [907938.785912] Registered led device: iwl-phy0::RX Feb 16 13:19:42 fingon kernel: [907938.785933] Registered led device: iwl-phy0::TX Feb 16 13:19:42 fingon kernel: [907938.841474] ADDRCONF(NETDEV_UP): wlan0: link is not ready Feb 16 13:22:38 fingon kernel: [908114.272537] NetworkManager[1217]: segfault at 7fff296cfff8 ip 7f69b5ef23c1 sp 7fff296d error 6 in libc-2.10.1.so[7f69b5e7e000+166000] Feb 16 13:22:41 fingon kernel: [908117.232836] NetworkManager[29216]: segfault at 7fff0220bff8 ip 7f5d34ca5e34 sp 7fff0220c000 error 6 in libc-2.10.1.so[7f5d34c61000+166000] Feb 16 13:22:44 fingon kernel: [908120.299359] nm-applet[2273]: segfault at 50 ip 00420d47 sp 7fff1eda3070 error 4 in nm-applet[40+58000] Feb 16 13:25:18 fingon kernel: [908274.300044] usb 4-1: USB disconnect, address 21 Feb 16 13:27:26 fingon kernel: [908402.912478] ADDRCONF(NETDEV_UP): eth0: link is not
[Bug 522819] Re: Loosing connections with Connection reset by peer message
Oh, one more thing. Normally the desk background shows a different Hubble (?) image, changing about every 10 or 15 minutes. That has stopped. Now its keeping the most recent background image - the image is not changing to the next in the sequence. What the heck is going on? -- 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. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs