You are not logged in.

#1 2022-03-17 15:08:23

wviana
Member
From: Brazil
Registered: 2021-09-03
Posts: 40

[SOLVED] LightDM not loading.

I've tried once to swap to lightdm. After installing did the follow.

sudo systemctl disable gdm
sysdo systemctl enable lightdm

So far so good.

When I restarted it didn't load lightdm. So I've logged into another tty and swap back to gdm.

Now I'm trying to make it work.
Installed lightdm-gtk-greeter and am trying to test it using lightdm test mode, here is the full command used and output.

lightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /home/wviana/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=1000 PID=6940
[+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: Running in user mode
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremotelightdm --test-mode --debug
[+0.00s] DEBUG: Logging to /home/wviana/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=1000 PID=6940
[+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: Running in user mode
[+0.00s] DEBUG: Using Xephyr for X servers
[+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: _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] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.254" (uid=1000 pid=6940 comm="lightdm --test-mode --debug") interface="org.freedesktop.Accounts" member="ListCachedUsers" error name="(unset)" requested_reply="0" destination="org.freedesktop.Accounts" (uid=0 pid=395 comm="/usr/lib/accounts-daemon")
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.02s] DEBUG: User juusoaares added
[+0.02s] DEBUG: User wviana added
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
[+0.02s] DEBUG: Seat seat0: Starting local X display
[+0.02s] DEBUG: XServer 0: Logging to /home/wviana/.cache/lightdm/log/x-0.log
[+0.02s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.02s] WARNING: Error reading existing Xauthority: Failed to open file ?/run/lightdm/root/:0?: Permission denied
[+0.02s] WARNING: XServer 0: Failed to write authority: Failed to open X authority /run/lightdm/root/:0: Permission denied
[+0.02s] DEBUG: XServer 0: Launching X Server
[+0.02s] DEBUG: Launching process 6946: /usr/bin/Xephyr :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp
[+0.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.02s] WARNING: Could not enumerate user data directory /var/lib/lightdm-data: Error opening directory '/var/lib/lightdm-data': Permission denied
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.04s] DEBUG: Process 6946 exited with return value 1
[+0.04s] DEBUG: XServer 0: X server stopped
[+0.04s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.04s] DEBUG: Seat seat0: Display server stopped
[+0.04s] DEBUG: Seat seat0: Stopping session
[+0.04s] DEBUG: Seat seat0: Session stopped
[+0.04s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.04s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.04s] DEBUG: Seat seat0: Stopping
[+0.04s] DEBUG: Seat seat0: Stopped
[+0.04s] DEBUG: Required seat has stopped
[+0.04s] DEBUG: Stopping display manager
[+0.04s] DEBUG: Display manager stopped
[+0.04s] DEBUG: Stopping daemon
[+0.04s] DEBUG: Exiting with return value 1
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+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] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.254" (uid=1000 pid=6940 comm="lightdm --test-mode --debug") interface="org.freedesktop.Accounts" member="ListCachedUsers" error name="(unset)" requested_reply="0" destination="org.freedesktop.Accounts" (uid=0 pid=395 comm="/usr/lib/accounts-daemon")
[+0.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.02s] DEBUG: User juusoaares added
[+0.02s] DEBUG: User wviana added
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child process ?plymouth? (No such file or directory)
[+0.02s] DEBUG: Seat seat0: Starting local X display
[+0.02s] DEBUG: XServer 0: Logging to /home/wviana/.cache/lightdm/log/x-0.log
[+0.02s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.02s] WARNING: Error reading existing Xauthority: Failed to open file ?/run/lightdm/root/:0?: Permission denied
[+0.02s] WARNING: XServer 0: Failed to write authority: Failed to open X authority /run/lightdm/root/:0: Permission denied
[+0.02s] DEBUG: XServer 0: Launching X Server
[+0.02s] DEBUG: Launching process 6946: /usr/bin/Xephyr :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp
[+0.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.02s] WARNING: Could not enumerate user data directory /var/lib/lightdm-data: Error opening directory '/var/lib/lightdm-data': Permission denied
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.04s] DEBUG: Process 6946 exited with return value 1
[+0.04s] DEBUG: XServer 0: X server stopped
[+0.04s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.04s] DEBUG: Seat seat0: Display server stopped
[+0.04s] DEBUG: Seat seat0: Stopping session
[+0.04s] DEBUG: Seat seat0: Session stopped
[+0.04s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.04s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.04s] DEBUG: Seat seat0: Stopping
[+0.04s] DEBUG: Seat seat0: Stopped
[+0.04s] DEBUG: Required seat has stopped
[+0.04s] DEBUG: Stopping display manager
[+0.04s] DEBUG: Display manager stopped
[+0.04s] DEBUG: Stopping daemon
[+0.04s] DEBUG: Exiting with return value 1

What could be wrong?

Last edited by wviana (2022-03-17 20:23:04)

Offline

#2 2022-03-17 15:18:00

loqs
Member
Registered: 2014-03-06
Posts: 18,970

Re: [SOLVED] LightDM not loading.

If the issue is only on boot and early KMS is not enabled have you tried LightDM#LightDM_does_not_appear_or_monitor_only_displays_TTY_output?

Offline

#3 2022-03-17 17:35:54

wviana
Member
From: Brazil
Registered: 2021-09-03
Posts: 40

Re: [SOLVED] LightDM not loading.

But shouldn't I be able to run LightDM from current session terminal emulator (XFCE)  with the test command. As I read the link you sent, it says it is caused by something not loaded/ready at the time LightDM service loads. But if this is the scenario, i think it should run from terminal emulator inside a xfce4 session, shouldn't it?

Offline

#4 2022-03-17 19:42:17

loqs
Member
Registered: 2014-03-06
Posts: 18,970

Re: [SOLVED] LightDM not loading.

If the lightdm test mode was working as expected.  The failure of the test mode is not related to the initial issue but due to permissions.

Offline

#5 2022-03-17 20:17:49

wviana
Member
From: Brazil
Registered: 2021-09-03
Posts: 40

Re: [SOLVED] LightDM not loading.

Restarted after doing Loqs suggestion and it worked. Will remove the option and restart again to check if it was it that made it work.

Offline

#6 2022-03-17 20:22:31

wviana
Member
From: Brazil
Registered: 2021-09-03
Posts: 40

Re: [SOLVED] LightDM not loading.

Just restarted, think the problem was that I had not installed a greeter ( lightdm-gtk-greeter ) before.
Also, after this reboot I'm able to run test local.

Offline

Board footer

Powered by FluxBB