sftp/ssh freeze after hibernate

Bug #605283 reported by donquixote
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Steps:
1. ssh-connect to a remote server with nautilus (a web server vm, in my case)
2. Open some remote files with gedit directly from nautilus
3. Open a terminal, and connect to ssh
4. Hibernate and resume.

Result:
- gedit freezes
- ssh terminal unresponsive
- at the time when i still had 2GB memory (instead of 4GB), the rest of the system was also quite unresponsive.

Responsiveness (for everything) is back when I unmount the ssh/sftp connection in Nautilus, and/or close the ssh terminals.

------

Solution:
- Applications should understand that the connection is temporarily gone, and not waste resources on a broken ssh connection.
- Ideally, all involved applications should remember the remote filesystem location and opened files, until the connection is back. If they already do, we need to take care that the bugfix does not change this.
- Ubuntu hibernate should tell applications that ssh connections are temporarily gone.
- Ubuntu wake-up-from-hibernate should ask the ssh password and reconnect, if I want to use one of the applications that depends on the ssh connection. This should not be in a modal dialog, but rather in a panel notification or anything that can wait until user takes care of it.

Bottomline:
Remember the state, allow to reconnect, and be patient (with dialogs and system resources) as long as the connection is (temporarily) gone.

Important:
As it is now, if after the unmount I then change one of the files in gedit, it will ask me for the ssh password and reconnect. This is good, and should stay this way!!

-----

I make this a kernel bug, because of the hibernate stuff.
I imagine that gedit is just one example for this problem, and the real solution has to happen in the kernel.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-23-generic 2.6.32-23.37
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lemonhead 26870 F.... pulseaudio
 /dev/snd/pcmC0D0p: lemonhead 26870 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xea100000 irq 22'
   Mixer name : 'Realtek ALC888'
   Components : 'HDA:10ec0888,1458a002,00100001'
   Controls : 40
   Simple ctrls : 22
Date: Wed Jul 14 07:38:03 2010
HibernationDevice: RESUME=UUID=70ea4d68-3ffb-49fb-bcac-6b8763075a6b
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 ppp0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. EP43-DS3L
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-23-generic root=UUID=1821e0b4-ad3f-4483-a9cc-c486acd7d7b4 ro quiet splash
ProcEnviron:
 LC_TIME=custom.UTF-8"
 LANGUAGE=en
 PATH=(custom, user)
 LANG=de_DE.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
RfKill:

SourcePackage: linux
dmi.bios.date: 07/22/2008
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6
dmi.board.name: EP43-DS3L
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6:bd07/22/2008:svnGigabyteTechnologyCo.,Ltd.:pnEP43-DS3L:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnEP43-DS3L:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: EP43-DS3L
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
donquixote (lemon-head-bw) wrote :
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi donquixote,

If you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kernel-hibernate
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
donquixote (lemon-head-bw) wrote :

As I understand, "upstream kernel" is something like the -dev version of the Kernel.
Does this not damage my system, if I use an upstream kernel? Can I downgrade? Or should I rather run the upstream Kernel on a text box?
I don't feel very comfortable with the idea.

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu development release http://cdimage.ubuntu.com/daily-live/current/ . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.