FS#28202 - gdm takes too much time to load

Attached to Project: Arch Linux
Opened by Leonidas Spyropoulos (inglor) - Tuesday, 31 January 2012, 19:39 GMT
Last edited by Ionut Biru (wonder) - Saturday, 11 February 2012, 17:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The gdm is taked too much time to load, the kernel.log is full of debug information. My gues is that the gdm fails and is going into debug, then it is fixed by itself. It's weird. Attached is a messages.log from last restart.

Additional info:
* package version(s)
* config and/or log files etc.
Information about the package
$ pacman -Qi gdm
Name : gdm
Version : 3.2.1.1-1
URL : http://www.gnome.org
Licenses : GPL
Groups : gnome-extra
Provides : None
Depends On : libcanberra libxklavier gnome-session gnome-settings-daemon
metacity upower accountsservice consolekit xorg-xrdb nss
Optional Deps : gnome-shell: new login interface
Required By : awesome-gnome
Conflicts With : None
Replaces : None
Installed Size : 6659.00 KiB
Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Architecture : x86_64
Build Date : Wed 19 Oct 2011 05:59:55 PM BST
Install Date : Mon 26 Dec 2011 11:42:01 AM GMT
Install Reason : Explicitly installed
Install Script : Yes
Description : Gnome Display Manager (a reimplementation of xdm)


Steps to reproduce:
Restart the gdm daemon.

This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 11 February 2012, 17:46 GMT
Reason for closing:  Not a bug
Additional comments about closing:  /etc/hosts was improper configured
Comment by Ionut Biru (wonder) - Tuesday, 31 January 2012, 19:57 GMT Comment by Leonidas Spyropoulos (inglor) - Tuesday, 31 January 2012, 20:10 GMT
So is it a bug with my gdm config? (maybe outdated version?)
Comment by Ionut Biru (wonder) - Tuesday, 31 January 2012, 20:19 GMT
what config? don't you see it was added in the code to start with debug? Ask upstream to drop the debug because is slowing down gdm
Comment by Leonidas Spyropoulos (inglor) - Tuesday, 31 January 2012, 20:35 GMT
OK I reported that to the gnome3 bugtrack. Here's the link: https://bugzilla.gnome.org/show_bug.cgi?id=669135

Thanks.
Comment by Leonidas Spyropoulos (inglor) - Wednesday, 01 February 2012, 21:25 GMT
The gnome developers point out that the ConsoleKit and Avahi cannot be started from gdm and waits 20 seconds until it give up and continue loading.
I added avahi daemon to the Daemons in rc.conf but don't know how to fix the ConsoleKit. Any ideas, attaching the latest reboot messages.
Feb 1 20:31:57 localhost dbus[527]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'

Feb 1 20:31:57 localhost dbus[527]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Feb 1 20:31:57 localhost acpid: client connected from 855[0:0]
Feb 1 20:31:57 localhost acpid: 1 client rule loaded
Feb 1 20:31:58 localhost dbus[527]: [system] Activating service name='org.freedesktop.Accounts' (using servicehelper)
Feb 1 20:31:58 localhost dbus[527]: [system] Successfully activated service 'org.freedesktop.Accounts'
Feb 1 20:31:59 localhost avahi-daemon[631]: Registering new address record for fe80::16da:e9ff:fe13:96a9 on eth0.*.
Feb 1 20:32:02 localhost dhcpcd[694]: eth0: leased 192.168.1.65 for 86400 seconds
Feb 1 20:32:02 localhost avahi-daemon[631]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.65.
Feb 1 20:32:02 localhost avahi-daemon[631]: New relevant interface eth0.IPv4 for mDNS.
Feb 1 20:32:02 localhost avahi-daemon[631]: Registering new address record for 192.168.1.65 on eth0.IPv4.
Feb 1 20:32:02 localhost NetworkManager[658]: <info> (eth0): DHCPv4 state changed preinit -> bound
Feb 1 20:32:02 localhost NetworkManager[658]: <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Feb 1 20:32:02 localhost NetworkManager[658]: <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) started...
Feb 1 20:32:02 localhost NetworkManager[658]: <info> address 192.168.1.65
Feb 1 20:32:02 localhost NetworkManager[658]: <info> prefix 24 (255.255.255.0)
Feb 1 20:32:02 localhost NetworkManager[658]: <info> gateway 192.168.1.254
Feb 1 20:32:02 localhost NetworkManager[658]: <info> hostname 'tiamat'
Feb 1 20:32:02 localhost NetworkManager[658]: <info> nameserver '192.168.1.254'
Feb 1 20:32:02 localhost NetworkManager[658]: <info> domain name 'home'
Feb 1 20:32:02 localhost NetworkManager[658]: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
Feb 1 20:32:02 localhost NetworkManager[658]: <info> Activation (eth0) Stage 4 of 5 (IP4 Configure Get) complete.
Feb 1 20:32:02 localhost NetworkManager[658]: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
Feb 1 20:32:03 localhost NetworkManager[658]: <info> (eth0): device state change: ip-config -> activated (reason 'none') [70 100 0]
Feb 1 20:32:03 localhost NetworkManager[658]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Feb 1 20:32:03 localhost NetworkManager[658]: <info> Activation (eth0) successful, device activated.
Feb 1 20:32:03 localhost NetworkManager[658]: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
Feb 1 20:32:03 localhost dbus[527]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Feb 1 20:32:03 localhost dbus[527]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 1 20:32:22 localhost rtkit-daemon[765]: Warning: PolicyKit call failed: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Feb 1 20:32:22 localhost dbus[527]: [system] Failed to activate service 'org.freedesktop.ConsoleKit': timed out
Feb 1 20:32:22 localhost accounts-daemon[875]: started daemon version 0.6.15
Comment by Ionut Biru (wonder) - Thursday, 02 February 2012, 21:02 GMT
what are your DAEMONS?
are you using stock initscripts?
paste /etc/pam.d/login
Comment by Leonidas Spyropoulos (inglor) - Thursday, 02 February 2012, 21:04 GMT
Hello Ionut, my daemons are like:
DAEMONS=(syslog-ng dbus network crond avahi-daemon networkmanager acpid mpd sshd)
The login file you requested:
#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth required pam_unix.so nullok
auth required pam_tally.so onerr=succeed file=/var/log/faillog
# use this to lockout accounts for 10 minutes after 3 failed attempts
#auth required pam_tally.so deny=2 unlock_time=600 onerr=succeed file=/var/log/faillog
account required pam_access.so
account required pam_time.so
account required pam_unix.so
#password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password required pam_unix.so sha512 shadow use_authtok
session required pam_unix.so
session required pam_env.so
session required pam_motd.so
session required pam_limits.so
session optional pam_mail.so dir=/var/spool/mail standard
session optional pam_lastlog.so
session optional pam_loginuid.so
-session optional pam_ck_connector.so nox11
-session optional pam_systemd.so
Comment by Ionut Biru (wonder) - Thursday, 02 February 2012, 21:10 GMT
drop network from DAEMONS.
Comment by Leonidas Spyropoulos (inglor) - Thursday, 02 February 2012, 21:24 GMT
Yeah you were right on that since I was using the networkmanager. But still this is irelevant to the ConsoleKit. Tested and still takes 20secs for timeout.
Comment by Ionut Biru (wonder) - Thursday, 02 February 2012, 21:27 GMT
are you using default initscripts?
Comment by Leonidas Spyropoulos (inglor) - Thursday, 02 February 2012, 21:30 GMT
Yes
Comment by Ionut Biru (wonder) - Thursday, 02 February 2012, 21:35 GMT
i think it fails to start because /run/ConsoleKit is not created fast enough, even if we have /usr/lib/tmpfiles.d/consolekit.conf in consolekit 0.4.5-2.

try to add mkdir /run/ConsoleKit in rc.local to see if is working.
Comment by Leonidas Spyropoulos (inglor) - Thursday, 02 February 2012, 21:37 GMT
Could be because of my hardware. 8core + and ssd. I will try and report back. If this is the case should it be reported to somewhere else or here?
Comment by Ionut Biru (wonder) - Thursday, 02 February 2012, 22:04 GMT
did it work?
Comment by Leonidas Spyropoulos (inglor) - Thursday, 02 February 2012, 22:12 GMT
Nope :( still 20secs
$ cat /var/log/messages.log | grep ConsoleKit
Feb 2 22:10:15 localhost dbus[534]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper)
Feb 2 22:10:40 localhost dbus[534]: [system] Failed to activate service 'org.freedesktop.ConsoleKit': timed out
Comment by Leonidas Spyropoulos (inglor) - Friday, 03 February 2012, 19:22 GMT
Could it be a problem with the ConcoleKit package? Where should I report it if that's the case? Is it part of gdm?
Comment by Leonidas Spyropoulos (inglor) - Wednesday, 08 February 2012, 23:21 GMT
Searching around seems to be reports in other distros as well:
https://bugzilla.redhat.com/show_bug.cgi?id=708866

Maybe this post is relative although it is for FreeBSD
http://forums.freebsd.org/archive/index.php/t-4634.html
Comment by Leonidas Spyropoulos (inglor) - Thursday, 09 February 2012, 22:53 GMT
I played around the various settings in /etc/hosts
That might be the fix.
I made my system not booting at first, to be more exact I made it load but stuck on the debug information from Consolekit..
So I had to ssh to it and remove the debug option and anything related from rc.local

Then I reboot and it was normal! no 20 seconds delay.
I didn't bother looking the logs but seems to be fixed.
I am not sure if it was the hosts file but worth giving it a try.
Comment by Ionut Biru (wonder) - Friday, 10 February 2012, 05:26 GMT
how does your /etc/hosts look now?
Comment by Leonidas Spyropoulos (inglor) - Friday, 10 February 2012, 08:52 GMT
Hello ionut,

Here's the hosts file
cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address> <hostname.domain.org> <hostname>
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain tiamat tiamat.my.domain

# End of file

and how my rc.local looks like:cat /etc/rc.local
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#

#/usr/sbin/console-kit-daemon --debug --no-daemon

echo 2 > /sys/module/hid_apple/parameters/fnmode
echo "458856 99" | /usr/sbin/keyfuzz -s -d /dev/input/by-id/usb-Apple__Inc_Apple_Keyboard-event-kbd


Comment by Ionut Biru (wonder) - Friday, 10 February 2012, 09:08 GMT
what about HOSTNAME from rc.conf ?
Comment by Leonidas Spyropoulos (inglor) - Friday, 10 February 2012, 09:16 GMT
Hostname is tiamat
Comment by Ionut Biru (wonder) - Friday, 10 February 2012, 09:21 GMT
correct way of setting /etc/hosts is

#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost tiamat
::1 localhost.localdomain localhost tiamat
Comment by Leonidas Spyropoulos (inglor) - Friday, 10 February 2012, 09:27 GMT
That's how it was before but if its like that the tiamat.localdomain won't resolve.
On the links I posted above they mention it should contain a FQD within hosts file.

I did a reinstallation of dbus as someone mentioned it, something to with machine-id

Other than that I don't know what else could it fix it.
Comment by Ionut Biru (wonder) - Friday, 10 February 2012, 09:33 GMT
mine doesn't have tiamat.localdomain.

machine-id has sense on systemd.
Comment by Leonidas Spyropoulos (inglor) - Friday, 10 February 2012, 10:02 GMT
I don't think I have systemd on my system. (I never explicitly installed it so only if it came as dependency for another package).
I can't check it out now since I am at work - later on afternoon.
Comment by Leonidas Spyropoulos (inglor) - Friday, 10 February 2012, 23:55 GMT
I can confirm it's not installed.
Comment by Ionut Biru (wonder) - Saturday, 11 February 2012, 17:42 GMT
everything is fine now no? can i close this?
Comment by Leonidas Spyropoulos (inglor) - Saturday, 11 February 2012, 17:44 GMT
Yes you can close it.
Thanks for all the suggestions.

Loading...