On suspend NetworkManager deconfigures the network, killing NFS mount and hanging GNOME, etc.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NetworkManager |
Expired
|
High
|
|||
network-manager (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: network-manager
When the system is going to sleep Network Manager unloads the network interface even though the home directory is NFS loaded on that interface.
Obviously there is still more work happening on that directory and so the system hangs on I/O in the case where NFS is mounted with the hard option.
This prevents power saving and the system is unusable as Network Manager dies with the rest of Gnome all waiting for I/O
If you log in on one of the TTYs shutting the system down cleanly fails on the kernel hung I/O and so the only way out is to press the reset button.
here is the syslog output showing network manager stopping the nic just before the kernel says ouch I have no file system to talk to:
Feb 2 21:33:53 desktop kernel: [19339.921076] CPU0 attaching NULL sched-domain.
Feb 2 21:33:53 desktop kernel: [19339.921090] CPU1 attaching NULL sched-domain.
Feb 2 21:33:53 desktop kernel: [19339.961405] CPU0 attaching sched-domain:
Feb 2 21:33:53 desktop kernel: [19339.961414] domain 0: span 0-1 level SIBLING
Feb 2 21:33:53 desktop kernel: [19339.961421] groups: 0 1
Feb 2 21:33:53 desktop kernel: [19339.961434] CPU1 attaching sched-domain:
Feb 2 21:33:53 desktop kernel: [19339.961439] domain 0: span 0-1 level SIBLING
Feb 2 21:33:53 desktop kernel: [19339.961445] groups: 1 0
Feb 2 21:33:53 desktop anacron[2176]: Normal exit (0 jobs run)
Feb 2 21:33:54 desktop NetworkManager: <info> Sleeping...
Feb 2 21:33:54 desktop NetworkManager: <info> (eth0): now unmanaged
Feb 2 21:33:54 desktop NetworkManager: <info> (eth0): device state change: 8 -> 1 (reason 37)
Feb 2 21:33:54 desktop NetworkManager: <info> (eth0): deactivating device (reason: 37).
Feb 2 21:33:54 desktop NetworkManager: <info> (eth0): canceled DHCP transaction, dhcp client pid 839
Feb 2 21:33:54 desktop NetworkManager: <WARN> check_one_route(): (eth0) error -34 returned from rtnl_route_del(): Sucess#012
Feb 2 21:33:54 desktop NetworkManager: <info> (eth0): cleaning up...
Feb 2 21:33:54 desktop NetworkManager: <info> (eth0): taking down device.
Feb 2 21:33:54 desktop NetworkManager: <info> (wlan0): now unmanaged
Feb 2 21:33:54 desktop NetworkManager: <info> (wlan0): device state change: 3 -> 1 (reason 37)
Feb 2 21:33:54 desktop NetworkManager: <info> (wlan0): cleaning up...
Feb 2 21:33:54 desktop NetworkManager: <info> (wlan0): taking down device.
Feb 2 21:33:55 desktop NetworkManager: <info> (eth0): carrier now OFF (device state 1)
Feb 2 21:36:55 desktop kernel: [19521.570035] nfs: server nfs.office.local not responding, still trying
Feb 2 21:36:56 desktop kernel: [19522.710031] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:03 desktop kernel: [19529.660034] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:17 desktop kernel: [19543.690033] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:26 desktop kernel: [19552.670037] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:27 desktop kernel: [19553.670029] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:29 desktop kernel: [19555.660034] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:33 desktop kernel: [19559.470051] nfs: server nfs.office.local not responding, still trying
Feb 2 21:37:34 desktop kernel: [19560.950099] INFO: task sync:2239 blocked for more than 120 seconds.
Feb 2 21:37:34 desktop kernel: [19560.950184] "echo 0 > /proc/sys/
Feb 2 21:37:34 desktop kernel: [19560.950267] sync D 00000000ffffffff 0 2239 2104 0x00000000
Feb 2 21:37:34 desktop kernel: [19560.950279] ffff8800228d1c58 0000000000000086 ffff880001a23880 0000000000015880
Feb 2 21:37:34 desktop kernel: [19560.950290] ffff880010115e70 0000000000015880 0000000000015880 0000000000015880
Feb 2 21:37:34 desktop kernel: [19560.950299] 0000000000015880 ffff880010115e70 0000000000015880 0000000000015880
Feb 2 21:37:34 desktop kernel: [19560.950309] Call Trace:
Feb 2 21:37:34 desktop kernel: [19560.950328] [<ffffffff810da
Feb 2 21:37:34 desktop kernel: [19560.950338] [<ffffffff81527
Feb 2 21:37:34 desktop kernel: [19560.950346] [<ffffffff810da
Feb 2 21:37:34 desktop kernel: [19560.950354] [<ffffffff81528
Feb 2 21:37:34 desktop kernel: [19560.950363] [<ffffffff810da
Feb 2 21:37:34 desktop kernel: [19560.950373] [<ffffffff81078
Feb 2 21:37:34 desktop kernel: [19560.950383] [<ffffffff810e4
Feb 2 21:37:34 desktop kernel: [19560.950391] [<ffffffff810da
Feb 2 21:37:34 desktop kernel: [19560.950401] [<ffffffff810e4
Feb 2 21:37:34 desktop kernel: [19560.950411] [<ffffffff81012
Feb 2 21:37:34 desktop kernel: [19560.950421] [<ffffffff81135
Feb 2 21:37:34 desktop kernel: [19560.950429] [<ffffffff810da
Feb 2 21:37:34 desktop kernel: [19560.950439] [<ffffffff8113f
Feb 2 21:37:34 desktop kernel: [19560.950449] [<ffffffff8116f
Feb 2 21:37:34 desktop kernel: [19560.950457] [<ffffffff810e3
Feb 2 21:37:34 desktop kernel: [19560.950466] [<ffffffff8113f
Feb 2 21:37:34 desktop kernel: [19560.950475] [<ffffffff81143
Feb 2 21:37:34 desktop kernel: [19560.950483] [<ffffffff81143
Feb 2 21:37:34 desktop kernel: [19560.950492] [<ffffffff81143
Feb 2 21:37:34 desktop kernel: [19560.950500] [<ffffffff81012
ProblemType: Bug
Architecture: amd64
CRDA: Error: [Errno 2] No such file or directory
Date: Wed Feb 3 15:23:26 2010
DistroRelease: Ubuntu 9.10
Gconf:
IfupdownConfig:
auto lo
iface lo inet loopback
IpRoute:
10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.124 metric 1
169.254.0.0/16 dev eth0 scope link metric 1000
default via 10.10.10.2 dev eth0 proto static
NonfreeKernelMo
Package: network-manager 0.8~a~git.
ProcEnviron:
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: network-manager
Uname: Linux 2.6.31-17-generic x86_64
WpaSupplicantLog:
Changed in network-manager (Ubuntu): | |
status: | New → Confirmed |
Changed in network-manager: | |
importance: | Unknown → High |
status: | Unknown → New |
tags: | added: precise |
summary: |
- Network manager kills NFS link on going to sleep hanging Gnome etc. + On suspend NetworkManager deconfigures the network, killing NFS mount + and hanging GNOME, etc. |
Changed in network-manager: | |
status: | New → Expired |
Changed in network-manager (Ubuntu): | |
status: | Incomplete → Confirmed |
As I wrote on similar bug 792007 I am always able to release the blocking by restarting network-manager. Try:
sudo service network-manager restart
Please leave a comment here if you know a permanent workaround to automatically unmount nfs shares BEFORE the network-manager disconnects.. It seems that scripts in /usr/lib/ pm-utils/ sleep.d/ get executed too late.