You are not logged in.

#1 2021-06-23 22:16:00

justdanyul
Member
Registered: 2011-09-29
Posts: 137

Lightdm service fails multiple times during boot

Hi there,

I have a slightly annoying "issue" with lightdm. Basically, it works fine, but the lightdm service starts and stops between 3 and 5 times during boot, before finally starting successfully. I got an incredibly simple setup as per

lightdm --show-config
   [LightDM]
A  run-directory=/run/lightdm

   [Seat:*]
A  greeter-session=lightdm-gtk-greeter
A  session-wrapper=/etc/lightdm/Xsession
A  logind-check-graphical=true
A  display-setup-script=/etc/lightdm/Xsetup 

Sources:
A  /etc/lightdm/lightdm.conf

The logs are

/var/log/lightdm/lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=549
[+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 /var/lib/flatpak/exports/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
[+0.00s] DEBUG:   [Seat:*] contains unknown option logind-check-graphical
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.00s] DEBUG: Monitoring logind for seats
[+0.00s] DEBUG: New seat added from logind: seat0
[+0.00s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.00s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.00s] DEBUG: Seat seat0: Starting
[+0.00s] DEBUG: Seat seat0: Creating greeter session
[+0.00s] DEBUG: Seat seat0: Creating display server of type x
[+0.00s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.00s] DEBUG: Using VT 7
[+0.00s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.00s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.00s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.00s] DEBUG: XServer 0: Launching X Server
[+0.00s] DEBUG: Launching process 555: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.00s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.00s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.00s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.00s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+1.43s] DEBUG: Got signal 10 from process 555
[+1.43s] DEBUG: XServer 0: Got signal from X server :0
[+1.43s] DEBUG: XServer 0: Connecting to XServer :0
[+1.43s] DEBUG: Launching process 562: /etc/lightdm/Xsetup 
[+1.56s] DEBUG: Process 562 exited with return value 0
[+1.56s] DEBUG: Seat seat0: Exit status of /etc/lightdm/Xsetup : 0
[+1.56s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.56s] DEBUG: Session pid=565: Started with service 'lightdm-greeter', username 'lightdm'
[+1.57s] DEBUG: Session pid=565: Authentication complete with return value 0: Success
[+1.57s] DEBUG: Seat seat0: Session authenticated, running command
[+1.57s] DEBUG: Session pid=565: Running command /usr/bin/lightdm-gtk-greeter
[+1.57s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+1.57s] DEBUG: Session pid=565: Logging to /var/log/lightdm/seat0-greeter.log
[+1.66s] DEBUG: Activating VT 7
[+1.66s] DEBUG: Activating login1 session c1
[+1.66s] DEBUG: Seat seat0 changes active session to c1
[+1.66s] DEBUG: Session c1 is already active
[+1.78s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+1.88s] DEBUG: Greeter start authentication for daniel
[+1.88s] DEBUG: Session pid=614: Started with service 'lightdm', username 'daniel'
[+1.90s] DEBUG: Session pid=614: Got 1 message(s) from PAM
[+1.90s] DEBUG: Prompt greeter with 1 message(s)
[+10.12s] DEBUG: Continue authentication
[+10.14s] DEBUG: Session pid=614: Authentication complete with return value 0: Success
[+10.14s] DEBUG: Authenticate result for user daniel: Success
[+10.14s] DEBUG: User daniel authorized
[+10.16s] DEBUG: Greeter requests session i3
[+10.16s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+10.16s] DEBUG: Terminating login1 session c1
[+10.17s] DEBUG: Session pid=565: Sending SIGTERM
[+10.19s] DEBUG: Greeter closed communication channel
[+10.19s] DEBUG: Session pid=565: Exited with return value 0
[+10.19s] DEBUG: Seat seat0: Session stopped
[+10.19s] DEBUG: Seat seat0: Greeter stopped, running session
[+10.19s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+10.19s] DEBUG: Session pid=614: Running command /etc/lightdm/Xsession i3
[+10.19s] DEBUG: Creating shared data directory /var/lib/lightdm-data/daniel
[+10.19s] DEBUG: Session pid=614: Logging to .xsession-errors
[+10.29s] DEBUG: Activating VT 7
[+10.29s] DEBUG: Activating login1 session 2
[+10.29s] DEBUG: Seat seat0 changes active session to 
[+10.29s] DEBUG: Seat seat0 changes active session to 2
[+10.29s] DEBUG: Session 2 is already active

journalctl -u lightdm yields

-- Boot e1b79d39ebec449db96dfb479007ff32 --
Jun 23 23:02:04 waterdog systemd[1]: Starting Light Display Manager...
Jun 23 23:02:04 waterdog systemd[1]: Started Light Display Manager.
Jun 23 23:02:04 waterdog systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Jun 23 23:02:04 waterdog systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 1.
Jun 23 23:02:05 waterdog systemd[1]: Stopped Light Display Manager.
Jun 23 23:02:05 waterdog systemd[1]: Starting Light Display Manager...
Jun 23 23:02:05 waterdog systemd[1]: Started Light Display Manager.
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 2.
Jun 23 23:02:05 waterdog systemd[1]: Stopped Light Display Manager.
Jun 23 23:02:05 waterdog systemd[1]: Starting Light Display Manager...
Jun 23 23:02:05 waterdog systemd[1]: Started Light Display Manager.
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jun 23 23:02:05 waterdog systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 3.
Jun 23 23:02:05 waterdog systemd[1]: Stopped Light Display Manager.
Jun 23 23:02:05 waterdog systemd[1]: Starting Light Display Manager...
Jun 23 23:02:05 waterdog systemd[1]: Started Light Display Manager.
Jun 23 23:02:07 waterdog lightdm[565]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=975) by (uid=0)
Jun 23 23:02:15 waterdog lightdm[614]: gkr-pam: unable to locate daemon control file
Jun 23 23:02:15 waterdog lightdm[614]: gkr-pam: stashed password to try later in open session
Jun 23 23:02:15 waterdog lightdm[614]: pam_systemd_home(lightdm:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Jun 23 23:02:16 waterdog lightdm[614]: pam_unix(lightdm:session): session opened for user daniel(uid=1000) by (uid=0)
Jun 23 23:02:16 waterdog lightdm[614]: pam_env(lightdm:session): deprecated reading of user environment enabled
Jun 23 23:02:16 waterdog lightdm[614]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring

Offline

#2 2021-06-24 07:02:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,527

Re: Lightdm service fails multiple times during boot

[+0.00s] DEBUG:   [Seat:*] contains unknown option logind-check-graphical

https://wiki.archlinux.org/title/LightD … TTY_output

Try https://wiki.archlinux.org/title/Kernel … _KMS_start

Offline

#3 2021-06-26 21:30:48

justdanyul
Member
Registered: 2011-09-29
Posts: 137

Re: Lightdm service fails multiple times during boot

Thanks! that did it :-)

Offline

Board footer

Powered by FluxBB