[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1038611: lightdm: Lightdm fails to start X after upgrade to 1.32.0



Hi.

Here are the logs with and without the  "logind-check-graphical=false" option.

With this opinion, a new seat is added and no seat is added when this option is commented.

Regards,

Adilson

Em dom., 1 de out. de 2023 às 11:22, Yves-Alexis Perez <corsac@debian.org> escreveu:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, 2023-08-08 at 01:25 -0500, Steev Klimaszewski wrote:
> I'm running into a very similar issue as the original submitter,
> however, when I'm running into it, I am *not* using the nVidia binary
> driver, but I am using a custom 5.15.44 kernel for a Raspberry Pi.
> What I found after digging for quite a while, was that, yes,
> downgrading to 1.26 would start Xorg, and upgrading to 1.32 would
> cause it to not start Xorg.  After diffing the contents between 1.26
> and 1.32, it seems that the option "logind-check-graphical" has
> changed from the default of false, to a default of true.
>
> Simply adding in
>
> logind-check-graphical=false
>
> under the [LightDM] heading in /etc/lightdm/lightdm.conf shows it as
> starting again.  This happened for me on both Pi3 and Pi4, armhf and
> arm64.  I'm not entirely sure why this is the case, and the kernel
> hasn't changed on these devices since 2022-07-03 when we last built
> the kernel for them.  Perhaps the original submitter could also see if
> changing that option works for them with the nVidia binary driver?

Hi Steev and Adilson,

so it might be linked to https://github.com/canonical/lightdm/issues/263

Looking at a bug linked from above
(https://github.com/canonical/lightdm/issues/165) it looks like the default
was changed in order to fix a race condition or something.

The documentation says:

# logind-check-graphical = True to on start seats that are marked as graphical
by logind

Could you check the lightdm.log and check if you have messages about seats
beeing added and whether it's graphical or not (you can add logs here). With
both value for the logind-check-graphical option.

It looks to me that there's an issue deeper in the stacks (in the NVIDIA stuff
or in the RPi graphical stuff) and maybe the seats arent't marked as graphical
or something. So it's ok to tune the option locally as a workaround, but I'm
not sure about reverting it globally.

Regards,
- --
Yves-Alexis
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8vi34Qgfo83x35gF3rYcyPpXRFsFAmUZgJIACgkQ3rYcyPpX
RFtkzAgAvSJE1yDFRCZrdI/1zGTW/SWH2KUXuxpYw8b+LrwcvkLBVwSzQhkxKkS4
rd8VUjRRXVcaPXTrPJxeKqObAAYN2iUhiFCKdYAYUxdvlIPWxOkQEf8CeLm/AG6f
rCaHMmQNZY5SFkTCQ5AGUzH38IAp3a4Sdn3E+x1xVMsiYGn6h5I/z0eDcx5135mP
omuBRUYZGnoTfsApetBOQCK7pMzUJX1QRxdaiMjLZCUEsKjwoJc/6ZaLSHB4goYQ
AXAYcrc4jOhYfv6KFqbaxEBWxR/gbdG8+YBh2u8a44KEniJgXl+T4FEKfTA1poxc
muyLJuBzqpHqGyfOvZS73TjWPVZcHw==
=Lrpk
-----END PGP SIGNATURE-----


--
Adilson dos Santos Dantas
http://www.adilson.net.br
http://twitter.com/adilsond
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=1740
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
[+0.00s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
[+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
[+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.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: Seat seat0: Plymouth is running on VT 1, but this is less than the configured minimum of 7 so not replacing it
[+0.01s] DEBUG: Quitting Plymouth
[+0.03s] DEBUG: Using VT 7
[+0.04s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.04s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.04s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.04s] DEBUG: XServer 0: Launching X Server
[+0.04s] DEBUG: Launching process 1849: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.04s] DEBUG: XServer 0: 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.04s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.04s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1004 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1005 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1003 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1002 added
[+1.08s] DEBUG: Got signal 10 from process 1849
[+1.08s] DEBUG: XServer 0: Got signal from X server :0
[+1.08s] DEBUG: XServer 0: Connecting to XServer :0
[+1.08s] DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead
[+1.08s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.08s] DEBUG: Session pid=2266: Started with service 'lightdm-greeter', username 'lightdm'
[+1.11s] DEBUG: Session pid=2266: Authentication complete with return value 0: Success
[+1.11s] DEBUG: Seat seat0: Session authenticated, running command
[+1.11s] DEBUG: Session pid=2266: Running command /usr/sbin/lightdm-gtk-greeter
[+1.11s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
[+1.11s] DEBUG: Session pid=2266: Logging to /var/log/lightdm/seat0-greeter.log
[+1.32s] DEBUG: Activating VT 7
[+1.32s] DEBUG: Activating login1 session c1
[+1.33s] DEBUG: Seat seat0 changes active session to c1
[+1.33s] DEBUG: Session c1 is already active
[+1.48s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+1.90s] DEBUG: Greeter start authentication
[+1.90s] DEBUG: Session pid=2461: Started with service 'lightdm', username '(null)'
[+1.90s] DEBUG: Session pid=2461: Got 1 message(s) from PAM
[+1.90s] DEBUG: Prompt greeter with 1 message(s)
[+8.28s] DEBUG: Greeter start authentication for adilsond
[+8.28s] DEBUG: Session pid=2461: Sending SIGTERM
[+8.28s] DEBUG: Session pid=2505: Started with service 'lightdm', username 'adilsond'
[+8.28s] DEBUG: Session pid=2461: Terminated with signal 15
[+8.28s] DEBUG: Session: Failed during authentication
[+8.28s] DEBUG: Seat seat0: Session stopped
[+8.28s] DEBUG: Session pid=2505: Got 1 message(s) from PAM
[+8.28s] DEBUG: Prompt greeter with 1 message(s)
[+12.81s] DEBUG: Continue authentication
[+12.83s] DEBUG: Session pid=2505: Authentication complete with return value 0: Success
[+12.83s] DEBUG: Authenticate result for user adilsond: Success
[+12.83s] DEBUG: User adilsond authorized
[+12.86s] DEBUG: Greeter requests session lightdm-xsession
[+12.86s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+12.86s] DEBUG: Terminating login1 session c1
[+12.86s] DEBUG: Session pid=2266: Sending SIGTERM
[+12.87s] DEBUG: Greeter closed communication channel
[+12.87s] DEBUG: Session pid=2266: Exited with return value 0
[+12.87s] DEBUG: Seat seat0: Session stopped
[+12.87s] DEBUG: Seat seat0: Greeter stopped, running session
[+12.87s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+12.87s] DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead
[+12.87s] DEBUG: Session pid=2505: Running command /etc/X11/Xsession default
[+12.87s] DEBUG: Creating shared data directory /var/lib/lightdm/data/adilsond
[+12.87s] DEBUG: Session pid=2505: Logging to .xsession-errors
[+13.13s] DEBUG: Activating VT 7
[+13.13s] DEBUG: Activating login1 session 2
[+13.13s] DEBUG: Seat seat0 changes active session to 
[+13.13s] DEBUG: Seat seat0 changes active session to 2
[+13.13s] DEBUG: Session 2 is already active
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=1695
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
[+0.00s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
[+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
[+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.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Stopping Plymouth, no displays replace it
[+0.01s] DEBUG: Quitting Plymouth
[+0.03s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.03s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1004 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1005 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1003 added
[+0.14s] DEBUG: User /org/freedesktop/Accounts/User1002 added

Reply to: