You are not logged in.

#1 2021-07-01 14:06:31

chemicalMoss
Member
Registered: 2021-07-01
Posts: 6

[SOLVED] Light Display Manager failed to start at boot

Hello everbody,

I have troubles installing lightdm. I did a clean install of arch closely following the official installation guide. However, it appears that I am running into what appears to be permission related issue.

When I boot nearly always get a message [FAILED] Failed to start Light Display Manager. I instead login via tty. Checking systemctl status lightdm outputs this:

× lightdm.service - Light Display Manager
     Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Thu 2021-07-01 13:27:20 UTC; 3min 33s ago
       Docs: man:lightdm(1)
    Process: 415 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
   Main PID: 415 (code=exited, status=1/FAILURE)
        CPU: 34ms

Jul 01 13:27:20 arch systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jul 01 13:27:20 arch systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Jul 01 13:27:20 arch systemd[1]: Stopped Light Display Manager.
Jul 01 13:27:20 arch systemd[1]: lightdm.service: Start request repeated too quickly.
Jul 01 13:27:20 arch systemd[1]: lightdm.service: Failed with result 'exit-code'.
Jul 01 13:27:20 arch systemd[1]: Failed to start Light Display Manager.

When I run lightdm --test-mode --debug the output contains suspicious permission denied messages (Xauthority, ).
https://pastebin.com/gMySPWQr

Interestingly, I can get lightdm working by manually running systemctl start lightdm. However, on reboot it it extremely likely that I am back at the beginning. The laptop has a Ryzen CPU, with amdgpu video drivers, mesa, ... installed.

Here are the log files that I found to be relevant from other threads:
https://pastebin.com/38pqMqh9
https://pastebin.com/SLfq8qXf
https://pastebin.com/JgVdJ6Bx
https://pastebin.com/rAjAgaaG

Last edited by chemicalMoss (2021-07-02 11:26:02)

Offline

#3 2021-07-01 14:23:50

chemicalMoss
Member
Registered: 2021-07-01
Posts: 6

Re: [SOLVED] Light Display Manager failed to start at boot

Hey seth,

I made the assumption it wouldn't be a race condition, but I was wrong. The first link seems to have fix the issue. What part of the logs made you suspicious or was it based on instinct?
Thanks for the help!

Last edited by chemicalMoss (2021-07-01 14:24:47)

Offline

#4 2021-07-01 14:26:33

seth
Member
Registered: 2012-09-03
Posts: 51,056

Re: [SOLVED] Light Display Manager failed to start at boot

When I boot nearly always get a message

Nondeterministic behavior is most likely a race condition and in this case most likely the linked one.
Using early KMS will get you a (slightly) faster system start and be more robust if you switch the DM (or use xinit)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#5 2021-07-02 02:01:13

bigo
Member
Registered: 2021-06-30
Posts: 8

Re: [SOLVED] Light Display Manager failed to start at boot

Edit the display-manager.service config file.

change restart to always, restartsec to 0.5s.

vim /etc/systemd/system/display-manager.service
[Unit]                                                                                                                                     
  1 Description=Light Display Manager
  2 Documentation=man:lightdm(1)
  3 Conflicts=getty@tty1.service
  4 After=getty@tty1.service systemd-user-sessions.service plymouth-quit.service acpid.service
  5 
  6 [Service]
  7 ExecStart=/usr/bin/lightdm
  8 Restart=always
  9 RestartSec=0.5
 10 StartLimitInterval=0
 11 IgnoreSIGPIPE=no
 12 BusName=org.freedesktop.DisplayManager
 13 
 14 [Install]
 15 Alias=display-manager.service

Last edited by bigo (2021-07-02 08:28:29)

Offline

Board footer

Powered by FluxBB