PDA

View Full Version : [ubuntu] [12.04] LightDM quits/crashes



cyberwizzard
April 26th, 2012, 04:13 PM
LightDM does not start up properly on a fresh PP install. I see the Ubuntu logo at the end of the bootup (using nvidia drivers, so plymouth is useless) and then it goes back to console.

Looking at the logs, LightDM shuts down because its greeter shuts down. The greeter shuts down with a message that is not quite helpful.

LightDM.log:

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.2.1, UID=0 PID=1127
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.04s] DEBUG: X server :0 will replace Plymouth
[+0.06s] DEBUG: Using VT 7
[+0.06s] DEBUG: Activating VT 7
[+0.06s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.06s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.06s] DEBUG: Launching X Server
[+0.06s] DEBUG: Launching process 1145: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
[+0.06s] DEBUG: Waiting for ready signal from X server :0
[+0.06s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.06s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.73s] DEBUG: Got signal 10 from process 1145
[+1.73s] DEBUG: Got signal from X server :0
[+1.73s] DEBUG: Stopping Plymouth, X server is ready
[+1.75s] DEBUG: Connecting to XServer :0
[+1.75s] DEBUG: Starting greeter
[+1.75s] DEBUG: Started session 1257 with service 'lightdm', username 'lightdm'
[+1.88s] DEBUG: Session 1257 authentication complete with return value 0: Success
[+1.88s] DEBUG: Greeter authorized
[+1.88s] DEBUG: Logging to /var/log/lightdm/x-0-greeter.log
[+1.88s] DEBUG: Session 1257 running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/unity-greeter
[+2.21s] DEBUG: Greeter closed communication channel
[+2.21s] DEBUG: Session 1257 exited with return value 0
[+2.21s] DEBUG: Greeter quit
[+2.21s] DEBUG: Failed to start greeter
[+2.21s] DEBUG: Stopping display
[+2.21s] DEBUG: Sending signal 15 to process 1145
[+2.85s] DEBUG: Process 1145 exited with return value 0
[+2.85s] DEBUG: X server stopped
[+2.85s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+2.85s] DEBUG: Releasing VT 7
[+2.85s] DEBUG: Display server stopped
[+2.85s] DEBUG: Display stopped
[+2.85s] DEBUG: Stopping X local seat, failed to start a display
[+2.85s] DEBUG: Stopping seat
[+2.85s] DEBUG: Seat stopped
[+2.85s] DEBUG: Required seat has stopped
[+2.85s] DEBUG: Stopping display manager
[+2.85s] DEBUG: Display manager stopped
[+2.85s] DEBUG: Stopping daemon
[+2.85s] DEBUG: Exiting with return value 1

x-0-greeter.log:

Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
(unity-greeter:1356): Gtk-WARNING **: cannot open display: :0
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key

x-0.log:

X.Org X Server 1.11.3
Release Date: 2011-12-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-29-server x86_64 Ubuntu
Current Operating System: Linux localhost 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-23-generic root=UUID=704dd6ee-0eed-436d-8fd7-dbf263bf1b39 ro quiet splash vt.handoff=7
Build Date: 05 April 2012 04:32:37AM
xorg-server 2:1.11.4-0ubuntu10 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.24.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr 26 17:00:46 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) Failed to load module "nv" (module does not exist, 0)
(EE) Failed to load module "nv" (module does not exist, 0)
ddxSigGiveUp: Closing log
Server terminated successfully (0). Closing log file.

Before I get the suggestion again: this is a new/fresh install of Precise Pangolin. Reinstalling will not help (nor is it an option since this is a computer which is going into production and has cost a full day to set up).

Edit: I forgot to mention that I *can* start LightDM by hand as root. This is currently my workaround: use rc.local and a 10 second delay to start LightDM after the Upstart-LightDM has stopped.

dangmc
April 28th, 2012, 03:48 PM
-1 down vote favorite
share [g+] share [fb] share [tw]
@cyberwizzard-Your thread seems to be the closest I can find to mirror my problem. I posted this on 'Ask Ubuntu' without receiving any helpful response.


I did a clean install '12.04_amd64 3 times with the same results each time. Installation went without problems, I did all my updates, installed aptitude, synaptic, changed server locale, started adding multimedia apps when everything went blank and logged out. No error messages. Login screen only allows guest access. I reinstalled 11.10_amd64-no problems now. Second and third install gave same results. The only root access is by tty. This is the most unusable version I've had in the 6 years I've been using Ubuntu.

Asus P7P55D-E mainboard
Intel I5-750 processor
Western Digital 1 tb. Caviar 'black' hdd
old WD 160 gb. hdd
8gb 1600 'ripjaws' memory
Nvidia 9800GT gpu
triple boot: Ubuntu 12.04_amd64, Windows 7 Professional, Windows XP Professional-Precise and win 7 shared 1tb hdd, xp on 160 gb.
I found this message on /var/log/lightdm/lightdm.log:

session 1839: Sending SIGTERM session 1839:exited with return value 0 Greeter quit

This response:Hello, as you've given up on 12.04 there's not much to answer here. – Jacob Johan Edwards 8 hours ago

This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions on filing a bug report are here. – Jacob Johan Edwards 8 hours ago

My reply:
Well excuse me! I never stated that I was finished with 12.04; I simply returned to Oneiric as a temporary measure until this problem is solved. I posted here hoping to get assistance or at least some suggestion as to a solution, not to be chastised like a schoolboy. I was led to believe 'Ask Ubuntu' was the place to be for solutions-obviously I was mis-informed. – dangmc 25 mins ago

Sorry for the rant-I never posted anything on 'Ask Ubuntu' before; I really didn't expect to be treated like this. I will keep checking back and hopefully a solution willl be found soon. I had Precise as a guest OS on Virtualbox since alpha 2 and have been quite impressed by lack of major issues. Thank You

update:I did not intend to offend or dismiss. AskUbuntu is, indeed, a place for solutions. This question addresses recovering from, in essence, a bug, and it's basically impossible to debug problems that are not reproducible and that the original reporter has given up and downgraded away from. I've nominated your question for reopening, nonetheless. Best wishes. – Jacob Johan Edwards 2 hours ago

This seems to be the solution to your problem here - askubuntu.com/questions/70236/… – jrg♦ 2 hours ago

@jrg Thank you for your suggestion. I'm going to reinstall 12.04 on my old xp drive since I really don't need xp anymore; I will then try your suggested fix/workaround. My gut feeling is that we have a bug in Lightdm; not a problem with permissions because admin account was available through multiple reboots-then without warning 'auto' logged out to guest screen. Admin was no longer accessable neither cli or gui.@Jacob-thank you for positive comment. I would have filed bug rep-couldn't do it through console. – dangmc 4 mins ago edit

dangmc
April 28th, 2012, 08:29 PM
-1 down vote favorite
share [g+] share [fb] share [tw]
@cyberwizzard-Your thread seems to be the closest I can find to mirror my problem. I posted this on 'Ask Ubuntu' without receiving any helpful response.


I did a clean install '12.04_amd64 3 times with the same results each time. Installation went without problems, I did all my updates, installed aptitude, synaptic, changed server locale, started adding multimedia apps when everything went blank and logged out. No error messages. Login screen only allows guest access. I reinstalled 11.10_amd64-no problems now. Second and third install gave same results. The only root access is by tty. This is the most unusable version I've had in the 6 years I've been using Ubuntu.

Asus P7P55D-E mainboard
Intel I5-750 processor
Western Digital 1 tb. Caviar 'black' hdd
old WD 160 gb. hdd
8gb 1600 'ripjaws' memory
Nvidia 9800GT gpu
triple boot: Ubuntu 12.04_amd64, Windows 7 Professional, Windows XP Professional-Precise and win 7 shared 1tb hdd, xp on 160 gb.
I found this message on /var/log/lightdm/lightdm.log:

session 1839: Sending SIGTERM session 1839:exited with return value 0 Greeter quit

This response:Hello, as you've given up on 12.04 there's not much to answer here. Jacob Johan Edwards 8 hours ago

This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions on filing a bug report are here. Jacob Johan Edwards 8 hours ago

My reply:
Well excuse me! I never stated that I was finished with 12.04; I simply returned to Oneiric as a temporary measure until this problem is solved. I posted here hoping to get assistance or at least some suggestion as to a solution, not to be chastised like a schoolboy. I was led to believe 'Ask Ubuntu' was the place to be for solutions-obviously I was mis-informed. dangmc 25 mins ago

Sorry for the rant-I never posted anything on 'Ask Ubuntu' before; I really didn't expect to be treated like this. I will keep checking back and hopefully a solution willl be found soon. I had Precise as a guest OS on Virtualbox since alpha 2 and have been quite impressed by lack of major issues. Thank You

update:I did not intend to offend or dismiss. AskUbuntu is, indeed, a place for solutions. This question addresses recovering from, in essence, a bug, and it's basically impossible to debug problems that are not reproducible and that the original reporter has given up and downgraded away from. I've nominated your question for reopening, nonetheless. Best wishes. Jacob Johan Edwards 2 hours ago

This seems to be the solution to your problem here - askubuntu.com/questions/70236/ jrg♦ 2 hours ago

@jrg Thank you for your suggestion. I'm going to reinstall 12.04 on my old xp drive since I really don't need xp anymore; I will then try your suggested fix/workaround. My gut feeling is that we have a bug in Lightdm; not a problem with permissions because admin account was available through multiple reboots-then without warning 'auto' logged out to guest screen. Admin was no longer accessable neither cli or gui.@Jacob-thank you for positive comment. I would have filed bug rep-couldn't do it through console. dangmc 4 mins ago edit
Possibly related to this?:https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/964607

dangmc
April 28th, 2012, 11:27 PM
Possibly related to this?:https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/964607
Update: reinstalled 12.04, upon initial reboot defaulted immediately to guest acccount, booted to console, performed updates, rebooted, installed: gnome-session-fallback, gnome-shell, gnome-tweak-tool. Rebooted, changed lightdm settings per: http://www.ubuntubuzz.com/2012/03/how-to-disable-guest-account-in-ubuntu.html
now seems to be ok so far. I won't mark this solved until I'm sure it won't jump to login screen while I'm working.

IowPizza
May 2nd, 2012, 07:48 PM
Same hapens to me. Since I can't to install and uninstall everyday, I solved it temporarily by uninstalling Ati Catalyst Drivers. Now the graphcs card's cooler is running all the time making a lot of noise.

IowPizza
May 2nd, 2012, 08:21 PM
I've solved the problem in my laptop. After uninstalling the Ati Drivers /usr/share/ati/fglrx-uninstall.sh, I reinstalled them again and now it seems everyting is working fine again.

dangmc
May 3rd, 2012, 01:04 AM
I've solved the problem in my laptop. After uninstalling the Ati Drivers /usr/share/ati/fglrx-uninstall.sh, I reinstalled them again and now it seems everyting is working fine again.
Great that you were able to fix your problem. My graphics card is 'Nvidia' and I tried your suggestion without success.
I just reinstalled Nvidia driver: 302.07, installed GDM, purged & reinstalled xserver all from console. Rebooted to Ubuntu 3D, played flash video, crashed to login screen in 23 secs. Rebooted to 2D, working great. Plays videos flawlessly.

dangmc
May 23rd, 2012, 05:32 AM
I'm still experiencing the same problem: watching videos in 3d mode results in desktop reverting to login screen in 2-5 minutes. When I switch to 2d mode either in unity or gnome-everything works without problems.



bump

sune_cph
May 26th, 2012, 09:17 PM
Same problem here with 12.04 x64 and Nvidia GTX470.

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.2.1, UID=0 PID=1154
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.01s] DEBUG: X server :0 will replace Plymouth
[+0.03s] DEBUG: Using VT 7
[+0.03s] DEBUG: Activating VT 7
[+0.03s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.03s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.03s] DEBUG: Launching X Server
[+0.03s] DEBUG: Launching process 1253: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
[+0.03s] DEBUG: Waiting for ready signal from X server :0
[+0.04s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.04s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.29s] DEBUG: Process 1253 exited with return value 1
[+0.29s] DEBUG: X server stopped
[+0.29s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+0.29s] DEBUG: Releasing VT 7
[+0.29s] DEBUG: Stopping Plymouth, X server failed to start
[+0.33s] DEBUG: Display server stopped
[+0.33s] DEBUG: Stopping display
[+0.33s] DEBUG: Display stopped
[+0.33s] DEBUG: Stopping X local seat, failed to start a display
[+0.33s] DEBUG: Stopping seat
[+0.33s] DEBUG: Seat stopped
[+0.33s] DEBUG: Required seat has stopped
[+0.33s] DEBUG: Stopping display manager
[+0.33s] DEBUG: Display manager stopped
[+0.33s] DEBUG: Stopping daemon
[+0.34s] DEBUG: Exiting with return value 1

dangmc
May 27th, 2012, 04:35 AM
Same problem here with 12.04 x64 and Nvidia GTX470.

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.2.1, UID=0 PID=1154
[+0.00s] DEBUG: Loaded configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Adding default seat
[+0.00s] DEBUG: Starting seat
[+0.00s] DEBUG: Starting new display for greeter
[+0.00s] DEBUG: Starting local X display
[+0.01s] DEBUG: X server :0 will replace Plymouth
[+0.03s] DEBUG: Using VT 7
[+0.03s] DEBUG: Activating VT 7
[+0.03s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.03s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.03s] DEBUG: Launching X Server
[+0.03s] DEBUG: Launching process 1253: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
[+0.03s] DEBUG: Waiting for ready signal from X server :0
[+0.04s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.04s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.29s] DEBUG: Process 1253 exited with return value 1
[+0.29s] DEBUG: X server stopped
[+0.29s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+0.29s] DEBUG: Releasing VT 7
[+0.29s] DEBUG: Stopping Plymouth, X server failed to start
[+0.33s] DEBUG: Display server stopped
[+0.33s] DEBUG: Stopping display
[+0.33s] DEBUG: Display stopped
[+0.33s] DEBUG: Stopping X local seat, failed to start a display
[+0.33s] DEBUG: Stopping seat
[+0.33s] DEBUG: Seat stopped
[+0.33s] DEBUG: Required seat has stopped
[+0.33s] DEBUG: Stopping display manager
[+0.33s] DEBUG: Display manager stopped
[+0.33s] DEBUG: Stopping daemon
[+0.34s] DEBUG: Exiting with return value 1
@zune_cph: You might want to check this out:https://bugs.launchpad.net/bugs/973096

chamcham123
August 12th, 2012, 06:40 PM
apt-get install unity-greeter


fixes this problem. I've been pulling my hair out the last
2 days and running the above command fixed it for me.

I'm running 12.10 (Quantal).