Bug 20494 - lightdm fail to start with gtk3 greeter
Summary: lightdm fail to start with gtk3 greeter
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 23:27 CET by katnatek
Modified: 2017-03-19 18:32 CET (History)
1 user (show)

See Also:
Source RPM: lightdm-gtk-greeter-2.0.2-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description katnatek 2017-03-15 23:27:04 CET
Description of problem:

If lightdm is selected as dm i got message about session failing to start
and after press any key as asked the system goes to text login.

After some research it look like gkt3 greeter is failing 

Version-Release number of selected component (if applicable):
lightdm-gtk-greeter-2.0.2-1

lightdm log:

+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.18.3, UID=0 PID=7050
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/50-mageia-autologin.conf
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/50-mageia-xfce.conf
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/50-mageia.conf
[+0.00s] DEBUG: Loading 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: Registered seat module unity
[+0.02s] DEBUG: Monitoring logind for seats
[+0.02s] DEBUG: New seat added from logind: seat0
[+0.02s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.02s] DEBUG: Seat seat0: Starting
[+0.02s] DEBUG: Seat seat0: Creating greeter session
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Using VT 1
[+0.02s] DEBUG: Seat seat0: Starting local X display on VT 1
[+0.02s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: DisplayServer x-0: Launching X Server
[+0.02s] DEBUG: Launching process 7065: /bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
[+0.02s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.04s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.04s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+1.10s] DEBUG: Got signal 10 from process 7065
[+1.10s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+1.10s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+1.11s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.11s] DEBUG: Session pid=7073: Started with service 'lightdm-greeter', username 'lightdm'
[+1.14s] DEBUG: Session pid=7073: Authentication complete with return value 0: Success
[+1.14s] DEBUG: Seat seat0: Session authenticated, running command
[+1.14s] DEBUG: Session pid=7073: Running command /sbin/lightdm-gtk3-greeter
[+1.14s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+1.14s] DEBUG: Session pid=7073: Logging to /var/log/lightdm/seat0-greeter.log
[+1.29s] DEBUG: Activating VT 1
[+1.29s] DEBUG: Activating login1 session c38
[+1.30s] DEBUG: Greeter closed communication channel
[+1.30s] DEBUG: Session pid=7073: Exited with return value 1
[+1.30s] DEBUG: Seat seat0: Session stopped
[+1.30s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+1.30s] DEBUG: Seat seat0: Stopping
[+1.30s] DEBUG: Seat seat0: Stopping display server
[+1.30s] DEBUG: Sending signal 15 to process 7065
[+1.32s] DEBUG: Seat seat0 changes active session to 
[+1.32s] CRITICAL: session_get_login1_session_id: assertion 'session != NULL' failed
[+1.69s] DEBUG: Process 7065 exited with return value 0
[+1.69s] DEBUG: DisplayServer x-0: X server stopped
[+1.69s] DEBUG: Releasing VT 1
[+1.69s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
[+1.69s] DEBUG: Seat seat0: Display server stopped
[+1.69s] DEBUG: Seat seat0: Stopped
[+1.69s] DEBUG: Required seat has stopped
[+1.69s] DEBUG: Stopping display manager
[+1.69s] DEBUG: Display manager stopped
[+1.69s] DEBUG: Stopping daemon
[+1.69s] DEBUG: Exiting with return value 1


lspcidrake output:

Card:NVIDIA GeForce FX series: NVIDIA Corporation|NV34 [GeForce FX 5200] [DISPLAY_VGA] (rev: a1)
unknown         : VIA Technologies, Inc.|CN700/VN800/P4M800CE/Pro Host Bridge [BRIDGE_HOST]
shpchp          : VIA Technologies, Inc.|VT8237/VX700 PCI Bridge [BRIDGE_PCI]
uhci_hcd        : VIA Technologies, Inc.|VT82xx/62xx UHCI USB 1.1 Controller [SERIAL_USB] (rev: 81)
snd_via82xx     : VIA Technologies, Inc.|VT8233/A/8235/8237 AC97 Audio Controller [MULTIMEDIA_AUDIO] (rev: 60)
uhci_hcd        : VIA Technologies, Inc.|VT82xx/62xx UHCI USB 1.1 Controller [SERIAL_USB] (rev: 81)
ehci_pci        : VIA Technologies, Inc.|USB 2.0 [SERIAL_USB] (rev: 86)
unknown         : VIA Technologies, Inc.|CN700/VN800/P4M800CE/Pro Host Bridge [BRIDGE_HOST]
pata_via        : VIA Technologies, Inc.|VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE [STORAGE_IDE] (rev: 06)
i2c_viapro      : VIA Technologies, Inc.|VT8237 ISA bridge [KT600/K8T800/K8T890 South] [BRIDGE_ISA]
unknown         : VIA Technologies, Inc.|PT890 Host Bridge [BRIDGE_HOST]
unknown         : VIA Technologies, Inc.|CN700/VN800/P4M800CE/Pro Host Bridge [BRIDGE_HOST]
uhci_hcd        : VIA Technologies, Inc.|VT82xx/62xx UHCI USB 1.1 Controller [SERIAL_USB] (rev: 81)
via_rhine       : VIA Technologies, Inc.|VT6102/VT6103 [Rhine-II] [NETWORK_ETHERNET] (rev: 78)
uhci_hcd        : VIA Technologies, Inc.|VT82xx/62xx UHCI USB 1.1 Controller [SERIAL_USB] (rev: 81)
unknown         : VIA Technologies, Inc.|CN700/VN800/P4M800CE/Pro Host Bridge [BRIDGE_HOST]
sata_via        : VIA Technologies, Inc.|VIA VT6420 SATA RAID Controller [STORAGE_IDE] (rev: 80)
unknown         : VIA Technologies, Inc.|CN700/VN800/P4M800CE/Pro Host Bridge [BRIDGE_HOST]
hub             : Linux 4.9.14-server-1.mga6 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hub             : Linux 4.9.14-server-1.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hub             : Linux 4.9.14-server-1.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub]
btusb           : Integrated System Solution Corp.|ISSCBTA [Wireless|Radio Frequency|Bluetooth]
hub             : Linux 4.9.14-server-1.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub]
usbhid          : MosArt|Optical Mouse [Human Interface Device|Boot Interface Subclass|Mouse]
hub             : Linux 4.9.14-server-1.mga6 uhci_hcd|UHCI Host Controller [Hub|Unused|Full speed (or root) hub]
hid_generic     : MosArt Optical Mouse

workaround: use other dm, in my case lxdm
Comment 1 Marja Van Waes 2017-03-16 09:26:56 CET
Assigning to the registered lightdm maintainer.

CC: (none) => marja11
Assignee: bugsquad => jani.valimaa

Comment 2 Jani Välimaa 2017-03-17 20:09:50 CET
Lightdm logs doesn't help much. Please attach greeter log also:
/var/log/lightdm/seat0-greeter.log
Comment 3 Jani Välimaa 2017-03-17 20:14:47 CET
And /var/log/lightdm/x-0.log too. It might have more interesting info.
Comment 4 katnatek 2017-03-18 00:21:48 CET
/var/log/lightdm/seat0-greeter.log

Error writing X authority: Failed to open X authority /var/log/lightdm/.Xauthority: Permission denied

/var/log/lightdm/x-0.log

X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: ecosse 4.4.50-server-1.mga5 
Current Operating System: Linux nacaal 4.9.14-server-1.mga6 #1 SMP Mon Mar 13 11:17:05 UTC 2017 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.14-server-1.mga6 root=UUID=0a4f3636-66dd-4ce1-82af-0e46c48eee84 ro splash quiet noiswmd resume=UUID=fdaf220e-c855-4141-a4e3-1035040ef1a6
Build Date: 04 March 2017  10:18:58AM
Build ID: x11-server 1.19.2-1.mga6 
Current version of pixman: 0.34.0
	Before reporting problems, check http://bugs.mageia.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: Wed Mar 15 15:51:44 2017
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
resize called 1024 768
(II) Server terminated successfully (0). Closing log file.
Comment 5 katnatek 2017-03-18 00:38:06 CET
(In reply to katnatek from comment #4)
> /var/log/lightdm/seat0-greeter.log
> 
> Error writing X authority: Failed to open X authority
> /var/log/lightdm/.Xauthority: Permission denied

drwxr-xr-x   2 root   root                 4096 mar 15 15:51 lightdm/
Comment 6 Jani Välimaa 2017-03-18 08:09:23 CET
(In reply to katnatek from comment #4)
> /var/log/lightdm/seat0-greeter.log
> 
> Error writing X authority: Failed to open X authority
> /var/log/lightdm/.Xauthority: Permission denied
> 

It should not use Xauthority from /var/log/lightdm, but from /var/lib/lightdm.

What's the out of 'getent passwd lightdm'?
Comment 7 Jani Välimaa 2017-03-18 16:58:36 CET
(In reply to Jani Välimaa from comment #6)
> (In reply to katnatek from comment #4)
> > /var/log/lightdm/seat0-greeter.log
> > 
> > Error writing X authority: Failed to open X authority
> > /var/log/lightdm/.Xauthority: Permission denied
> > 
> 
> It should not use Xauthority from /var/log/lightdm, but from
> /var/lib/lightdm.
> 

This can happen if Mageia was installed first time in mga3 cycle and updated mga3 -> mga4 -> mga5 -> mga6 as /var/log/lightdm was used as lightdm user's home directory at mga3 time and earlier.

Funny thing is I've never hit this problem even my installation is quite old.
Comment 8 katnatek 2017-03-19 00:50:42 CET
(In reply to Jani Välimaa from comment #7)
> This can happen if Mageia was installed first time in mga3 cycle and updated
> mga3 -> mga4 -> mga5 -> mga6 as /var/log/lightdm was used as lightdm user's
> home directory at mga3 time and earlier.
> 
> Funny thing is I've never hit this problem even my installation is quite old.

getent passwd lightdm
lightdm:x:489:485:system user for lightdm:/var/log/lightdm:/sbin/nologin

You may be point to right gulty my system has passed that cycle ;)
Comment 9 Jani Välimaa 2017-03-19 18:32:59 CET
Should be fixed with lightdm-1.18.3-2.mga6. Closing as FIXED.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.