Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LightDM won't start until dbus is restarted (elogind issue?)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zvptb8
n00b
n00b


Joined: 23 Nov 2022
Posts: 2

PostPosted: Wed Nov 23, 2022 5:41 pm    Post subject: LightDM won't start until dbus is restarted (elogind issue?) Reply with quote

I am having an issue that started a few months ago where lightdm won't start on boot. I have temporarily removed display-manager from the default runlevel to help with debugging - so I am sure that the issue is not "lightdm gets stuck during boot" but rather "after booting, lightdm does not work unless i restart dbus".

After booting, starting the display-manager service (or just running lightdm directly) causes it to hang indefinitely - the logs are below - it always gets stuck on the "User /org/freedesktop/Accounts/User1000 added" line. The exit after that line is from me pressing Ctrl+C to exit the lightdm process (this one was from a manual "lightdm" run, but the same thing happens when using the display-manager service).

Code:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=3587
[+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
[+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: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.03s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.03s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+211.46s] DEBUG: Got signal 2 from process 0
[+211.46s] DEBUG: Caught Interrupt signal, shutting down
[+211.46s] DEBUG: Stopping display manager
[+211.46s] DEBUG: Display manager stopped
[+211.46s] DEBUG: Stopping daemon
[+211.46s] DEBUG: Exiting with return value 0


The only way to get it to run after booting is to restart dbus and then start the display-manager service (or run lightdm directly). The logs are below:

Code:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=4180
[+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
[+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’
[+25.00s] WARNING: Failed to get list of logind seats: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
[+25.01s] DEBUG: Adding default seat
[+25.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+25.01s] DEBUG: Seat seat0: Starting
[+25.01s] DEBUG: Seat seat0: Creating greeter session
[+25.01s] DEBUG: Seat seat0: Creating display server of type x
[+25.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+25.01s] DEBUG: Using VT 7
[+25.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+25.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+25.02s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+25.02s] DEBUG: XServer 0: Launching X Server
[+25.02s] DEBUG: Launching process 4188: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+25.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+25.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+25.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+25.03s] DEBUG: Loading users from org.freedesktop.Accounts
[+25.03s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+27.30s] DEBUG: Got signal 10 from process 4188
[+27.30s] DEBUG: XServer 0: Got signal from X server :0
[+27.30s] DEBUG: XServer 0: Connecting to XServer :0
[+27.31s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+27.31s] DEBUG: Session pid=4218: Started with service 'lightdm-greeter', username 'root'
[+27.32s] DEBUG: Session pid=4218: Authentication complete with return value 0: Success
[+27.32s] DEBUG: Seat seat0: Session authenticated, running command
[+27.32s] DEBUG: Session pid=4218: Running command /usr/sbin/lightdm-gtk-greeter
[+27.32s] DEBUG: Creating shared data directory /var/lib/lightdm-data/root
[+27.32s] DEBUG: Session pid=4218: Logging to /var/log/lightdm/seat0-greeter.log
[+52.35s] DEBUG: Activating VT 7
[+52.53s] DEBUG: Greeter connected version=1.32.0 api=1 resettable=false
[+52.85s] DEBUG: Greeter start authentication for zvptb
[+52.85s] DEBUG: Session pid=4257: Started with service 'lightdm', username 'zvptb'
[+52.86s] DEBUG: Session pid=4257: Got 1 message(s) from PAM
[+52.86s] DEBUG: Prompt greeter with 1 message(s)
[+292.97s] DEBUG: Continue authentication
[+293.01s] DEBUG: Session pid=4257: Authentication complete with return value 0: Success
[+293.01s] DEBUG: Authenticate result for user zvptb: Success
[+293.01s] DEBUG: User zvptb authorized
[+293.07s] DEBUG: Greeter sets language en_US.utf8
[+293.21s] DEBUG: Greeter requests session i3
[+293.21s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+293.21s] DEBUG: Session pid=4218: Sending SIGTERM
[+293.23s] DEBUG: Greeter closed communication channel
[+293.23s] DEBUG: Session pid=4218: Exited with return value 0
[+293.23s] DEBUG: Seat seat0: Session stopped
[+293.23s] DEBUG: Seat seat0: Greeter stopped, running session
[+293.23s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+293.23s] DEBUG: Session pid=4257: Running command /etc/lightdm/Xsession i3
[+293.23s] DEBUG: Creating shared data directory /var/lib/lightdm-data/zvptb
[+293.23s] DEBUG: Session pid=4257: Logging to .xsession-errors
[+318.26s] DEBUG: Activating VT 7


The thing that stands out to me is that when lightdm does start correctly, the log messages contain an error about being unable to get a list of logind seats. I just checked my other computer which has a similar setup (but always starts correctly) and that contains the same message. So it seems that maybe the issue is with elogind - when lightdm is not able to reach elogind, it starts correctly, but when it gets the list of logind seats, it just hangs indefinitely. Is there some sort of lightdm/elogind configuration I should have somewhere? I checked the lightdm/elogind gentoo wiki pages and did not see anything.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Nov 23, 2022 9:10 pm    Post subject: Reply with quote

Welcome to Gentoo!

Try enabling elogind@boot.And disable dbus.
If not try also enabling dbus@default.
If not remove elogind@boot and enable it together with dbus @default.
_________________
:)
Back to top
View user's profile Send private message
zvptb8
n00b
n00b


Joined: 23 Nov 2022
Posts: 2

PostPosted: Fri Nov 25, 2022 3:39 am    Post subject: Reply with quote

Hi alamahant, thank you for the suggestion. Unfortunately, I tried all 3 options and none had any effect - still the same issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum