lightdm pausing a long time at boot

Bug #1129157 reported by Serge Hallyn
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
consolekit (Ubuntu)
Confirmed
Undecided
Unassigned
dbus (Ubuntu)
Confirmed
Undecided
Unassigned
lightdm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I boot my core i7 ssd laptop, which used to take about 10s or less, it now hangs for another 20 secs with blank screen before lightdm pops up. The bootchart.png (which i'll attach) and lightdm logs show that lightdm seems to be waiting on something for that long, and nothing else seems to be going on.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: lightdm 1.4.0-0ubuntu3
ProcVersionSignature: Ubuntu 3.8.0-6.11-generic 3.8.0-rc7
Uname: Linux 3.8.0-6-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.8-0ubuntu4
Architecture: amd64
Date: Mon Feb 18 08:41:52 2013
InstallationDate: Installed on 2012-03-24 (330 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120323)
LightdmConfig:
 [SeatDefaults]
 user-session=ubuntu
 greeter-session=unity-greeter
MarkForUpload: True
ProcEnviron:
 TERM=rxvt
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lightdm
UpgradeStatus: Upgraded to raring on 2012-12-12 (67 days ago)
modified.conffile..etc.init.lightdm.conf: [modified]
mtime.conffile..etc.init.lightdm.conf: 2012-04-17T09:28:07.756400

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :
Revision history for this message
Jouni Mettala (jouni-mettala) wrote :

From: LightdmLog.txt

[+2.65s] DEBUG: Started session 2270 with service 'lightdm-greeter', username 'lightdm'
[+25.40s] DEBUG: Session 2270 authentication complete with return value 0: Success

Changed in lightdm (Ubuntu):
status: New → Confirmed
Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Did you check syslog for entries related to the delay.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Here is the syslog bit from my latest boot. I haven't had a chance to correlate exactly to the bootchart.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

I do see (in today's latest log):

Feb 20 21:05:58 sergelap dbus[686]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
...
Feb 20 21:06:23 sergelap dbus[686]: [system] Failed to activate service 'org.freedesktop.ConsoleKit': timed out
Feb 20 21:06:23 sergelap dbus[686]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Feb 20 21:06:23 sergelap dbus[686]: [system] Successfully activated service 'org.freedesktop.ConsoleKit'

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

makes me wonder if I should just have lightdm.conf sleep 1 or 2 seconds. Apparently it comes up before consolekit can run, and then times out for an insane 20 seconds before trying again?

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

I can confirm this blocking time out. It does not happen on every boot though. So it might be some kind of race condition caused by upgrading to 13.04.

Running dbus in debug mode would be the next step to solve this mystery I guess.

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

You upgraded to Raring like two months ago. Since when does your system take longer to boot?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1129157] Re: lightdm pausing a long time at boot

Quoting Thaddäus Tintenfisch (<email address hidden>):
> You upgraded to Raring like two months ago. Since when does your system
> take longer to boot?

It just started last week (-ish).

-serge

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in consolekit (Ubuntu):
status: New → Confirmed
Revision history for this message
Per-Inge (per-inge-hallin) wrote :

In my case this happens at every boot. I upgraded to Raring last week. The boot behaves as normal, but instead of showing the login screen there is a pause of about 20 sec.

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :
Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Edit the corresponding dbus service file

    /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service

and add the debug flag

    Exec=/usr/sbin/console-kit-daemon --no-daemon --debug

.

Reboot your system and attach the syslog log file.

Revision history for this message
Per-Inge (per-inge-hallin) wrote :

This is what I get in syslog after the reboot. I stopped XBMC and then made a reboot.
The delay between spin down of the fans and presentation of the login screen was about 20 sec.

Revision history for this message
Per-Inge (per-inge-hallin) wrote :

I changed IPV6 to ignore, but didn't change anything.

Feb 23 15:15:25 pi-GA-990FXA-UD3-1304 dbus[903]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 23 15:15:33 pi-GA-990FXA-UD3-1304 ntpdate[2034]: adjust time server 91.189.94.4 offset 0.295083 sec
Feb 23 15:15:47 pi-GA-990FXA-UD3-1304 dbus[903]: [system] Failed to activate service 'org.freedesktop.ConsoleKit': timed out
Feb 23 15:15:47 pi-GA-990FXA-UD3-1304 dbus[903]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Feb 23 15:15:47 pi-GA-990FXA-UD3-1304 console-kit-daemon[2133]: DEBUG: Debugging enabled

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dbus (Ubuntu):
status: New → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Not sure whether this has been fixed as of yesterday, or just hasn't shown up lately. Boots are fast again right now.

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

So the bug has been fixed silently? Don't think any of the recent updates was targeting one of the affected packages.

Revision history for this message
Per-Inge (per-inge-hallin) wrote :

Not in my case. I still have the delay on a fully updated 13.04.

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.