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
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
|
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
Saturday, 11 February 2012, 17:46 GMT
Reason for closing: Not a bug
Additional comments about closing: /etc/hosts was improper configured
http://git.gnome.org/browse/gdm/commit/?id=5407f9fc02494234f5909e3f551e4916e5350850
http://git.gnome.org/browse/gdm/commit/?id=2e6e88a4a47d81eb653da8c98e7166260ff49b1f
Thanks.
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
are you using stock initscripts?
paste /etc/pam.d/login
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
try to add mkdir /run/ConsoleKit in rc.local to see if is working.
$ 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
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
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.
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
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost tiamat
::1 localhost.localdomain localhost tiamat
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.
machine-id has sense on systemd.
I can't check it out now since I am at work - later on afternoon.
Thanks for all the suggestions.