Bug 745418

Summary: System dbus daemon disappearing (and crashing tons of stuff on the computer) every once in a while
Product: [openSUSE] openSUSE 12.2 Reporter: Vincent Untz <vuntz>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: fcrozat
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/messages bits
/var/log/NetworkManager bits

Description Vincent Untz 2012-02-06 19:52:23 UTC
For some time now, I keep losing my X session every once in a while. Generally, it also appears that NetworkManager died too.

I'm attaching some bit of /var/log/messages that shows a bit what's happening. My guess is that the system dbus dies, and so a lot of stuff just disappears at the same time. But apparently, it always happens after some dhcp thing.
Comment 1 Vincent Untz 2012-02-06 19:53:06 UTC
Created attachment 474621 [details]
/var/log/messages bits
Comment 2 Vincent Untz 2012-02-06 19:54:06 UTC
Created attachment 474622 [details]
/var/log/NetworkManager bits

Two interesting things in this log from NM:

 - DHCP client died abnormally
 - disconnected by the system bus
Comment 3 Vincent Untz 2012-02-06 19:55:49 UTC
cc'ing Frédéric since I'm sure he'll be happy to look at that ;-)
Comment 4 Vincent Untz 2012-02-07 12:48:55 UTC
Just got it again. We can see that dbus got restarted by systemd just after the crash ("1min 28s ago"). Also, systemd doesn't notice when NM disappears because network.service is not about NM directly :/

etaules:~ # systemctl status dbus.service
dbus.service - D-Bus System Message Bus
	  Loaded: loaded (/lib/systemd/system/dbus.service; static)
	  Active: active (running) since Tue, 07 Feb 2012 13:42:42 +0100; 1min 28s ago
	 Process: 4759 ExecStartPre=/bin/rm -f /var/run/dbus/pid (code=exited, status=0/SUCCESS)
	 Process: 4757 ExecStartPre=/bin/dbus-uuidgen --ensure (code=exited, status=0/SUCCESS)
	Main PID: 4761 (dbus-daemon)
	  CGroup: name=systemd:/system/dbus.service
		  ├ 4761 /bin/dbus-daemon --system --address=systemd: --nofork --systemd-activation
		  ├ 4831 /usr/lib/polkit-1/polkitd --no-debug
		  ├ 4993 /usr/lib/upower/upowerd
		  ├ 7995 /usr/lib/udisks/udisks-daemon
		  └ 7996 udisks-daemon: not polling any devices

etaules:~ # systemctl status network.service
network.service - LSB: Configure the localfs depending network interfaces
	  Loaded: loaded (/etc/init.d/network)
	  Active: active (exited) since Mon, 06 Feb 2012 20:46:51 +0100; 16h ago
	 Process: 28464 ExecStop=/etc/init.d/network stop (code=exited, status=0/SUCCESS)
	 Process: 29141 ExecStart=/etc/init.d/network start (code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/system/network.service
Comment 5 Frederic Crozat 2012-02-07 13:11:04 UTC
for network.service, this is "normal", NM has its own service : NetworkManager.service, check status on this service.

I guess we need dmesg output (after booting with systemd.log_level=debug systemd.log_target=kmsg) after it happens..
Comment 6 Vincent Untz 2012-02-10 14:15:34 UTC
Ok, doesn't happen anymore. Weird.