NetworkManager doesn't quit properly on shutdown

Bug #1207848 reported by Jan Rathmann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,

my system takes a rather long time to shutdown (~7-10 sec.) while there are often error messages flashing on the screen like:

- Killing all remaining processes failed
- Mount: / is busy

To investigate the problem, I patched my /etc/init.d/umountfs and umountroot scripts with the proposed changes from https://code.launchpad.net/~jamesodhunt/ubuntu/saucy/sysvinit/log-processes-and-open-files-on-shutdown/+merge/163740 to log open files at shutdown and attached the resulting shutdown-lsof.log here.

The only thing in that log that looks suspicious to me are the ones regarding dhclient:

dhclient 5786 1 0 cwd DIR 252,5 4096 2 /
dhclient 5786 1 0 rtd DIR 252,5 4096 2 /
dhclient 5786 1 0 txt REG 252,5 1659968 654751 /sbin/dhclient
dhclient 5786 1 0 mem REG 252,5 52168 786517 /lib/x86_64-linux-gnu/libnss_files-2.17.so
dhclient 5786 1 0 mem REG 252,5 1848024 786477 /lib/x86_64-linux-gnu/libc-2.17.so
dhclient 5786 1 0 mem REG 252,5 149312 786464 /lib/x86_64-linux-gnu/ld-2.17.so
dhclient 5786 1 0 4w REG 252,5 1058 21443 /var/lib/NetworkManager/dhclient-8f9a3dff-24e6-4374-b0b2-c38524cdc0ce-eth0.lease

Maybe there is some problem shutting down NetworkManager? I found the respective dhclient entries on two separate shutdown logs.

Kind regards,
Jan

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: upstart 1.8-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-25.37-generic 3.8.13
Uname: Linux 3.8.0-25-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
CheckboxSubmission: b37fefbc97df4ba6a5f7edd504648fe4
CheckboxSystem: 4ed15c40009aa6f7770f606350a390a2
Date: Fri Aug 2 19:30:06 2013
InstallationDate: Installed on 2013-04-10 (114 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130410)
MarkForUpload: True
ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-3.8.0-25-generic root=/dev/mapper/internal--ssd-root ro quiet
SourcePackage: upstart
UpgradeStatus: No upgrade log present (probably fresh install)
UpstartBugCategory: System
modified.conffile..etc.at.deny: [inaccessible: [Errno 13] Keine Berechtigung: '/etc/at.deny']
---
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
CheckboxSubmission: b37fefbc97df4ba6a5f7edd504648fe4
CheckboxSystem: 4ed15c40009aa6f7770f606350a390a2
DistroRelease: Ubuntu 13.04
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2013-04-10 (116 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130410)
IpRoute:
 default via 192.168.178.1 dev eth0 proto static
 169.254.0.0/16 dev eth0 scope link metric 1000
 192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.21 metric 1
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
MarkForUpload: True
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
NonfreeKernelModules: nvidia
Package: network-manager 0.9.8.0-0ubuntu6
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.8.0-28.41-generic 3.8.13.5
RfKill:

Tags: raring
Uname: Linux 3.8.0-28-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers wireshark
mtime.conffile..etc.NetworkManager.dispatcher.d.01ifupdown: 2012-04-12T20:53:51
nmcli-con:
 NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT READONLY DBUS-PATH
 Auto-Ethernet 8f9a3dff-24e6-4374-b0b2-c38524cdc0ce 802-3-ethernet 1375699766 Mo 05 Aug 2013 12:49:26 CEST yes no /org/freedesktop/NetworkManager/Settings/2
 Xag56Rs#xP 38d171a1-ae74-449a-ab52-39274a4dfb60 802-11-wireless 0 never yes no /org/freedesktop/NetworkManager/Settings/1
 HS-Fulda-VPN 44ed749b-56b2-42eb-8717-08e5e0ef49a6 vpn 1375200591 Di 30 Jul 2013 18:09:51 CEST yes no /org/freedesktop/NetworkManager/Settings/0
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH
 eth0 802-3-ethernet connected /org/freedesktop/NetworkManager/Devices/0
nmcli-nm:
 RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
 running 0.9.8.0 connected enabled enabled enabled enabled disabled

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote :
Revision history for this message
James Hunt (jamesodhunt) wrote :

Hi Jan,

Thanks for reporting this issue. I think you are correct - nm looks like the culprit. Re-assigning...

affects: upstart (Ubuntu) → network-manager (Ubuntu)
Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : IpAddr.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : NetDevice.eth0.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : NetDevice.lo.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : NetworkManager.conf.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : PciNetwork.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : ProcEnviron.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : WifiSyslog.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : modified.conffile..etc.NetworkManager.dispatcher.d.01ifupdown.txt

apport information

Revision history for this message
Jan Rathmann (kaiserclaudius) wrote : Re: Shutdown takes an unusual amount of time

Since the bug was reassigned to NetworkManager, I have run apport-collect to attach relevant files regarding NetworkManager.

Kind regards,
Jan

summary: - Shutdown takes an unusual amount of time
+ NetworkManager doesn't quit properly on shutdown
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates.

I'm going to close this bug report as their is nothing else we can do with this old report in a now unsupported version of Ubuntu. If you still have this issue on Ubuntu 14.04 or higher, please do reopen or report a new bug.

Changed in network-manager (Ubuntu):
status: New → Invalid
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.