canonical / lightdm

Display Manager
GNU General Public License v3.0
823 stars 138 forks source link

lightdm does not load correctly at random: settings-daemon.vala:78: Failed to acquire name org.gnome.SessionManager #220

Closed andyDoucette closed 5 months ago

andyDoucette commented 2 years ago

Question

I have a multiseat setup with 4 seats on Ubuntu 20.04, set up using loginctl (no X11.conf stuff - in fact that file does not exist) and lightdm.
I didn't do anything special with the lightdm config files - I belive they're all defaults.

Every time I boot, each seat's lightdm seems to have a random chance of loading correctly. Sometimes all 4 load, but most of the time just 2 or 3 of the 4 load correctly and the remaining ones have a black screen with a mouse cursor on it (movable).

Here is a representative log from one of the seats that does not load correctly.

/var/log/lightdm/seat0-greeter.log

[+0.00s] DEBUG: unity-greeter.vala:562: Starting unity-greeter 17.04.1 UID=128 LANG=en_PH.UTF-8
[+0.00s] DEBUG: unity-greeter.vala:565: Setting cursor
[+0.00s] DEBUG: unity-greeter.vala:579: Loading command line options
[+0.00s] DEBUG: unity-greeter.vala:607: Setting GTK+ settings
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[+0.06s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0.08s] DEBUG: unity-greeter.vala:630: Creating Unity Greeter
[+0.08s] DEBUG: Connecting to display manager...
[+0.08s] DEBUG: Wrote 26 bytes to daemon
[+0.08s] DEBUG: Read 8 bytes from daemon
[+0.08s] DEBUG: Read 159 bytes from daemon
[+0.08s] DEBUG: Connected api=1 version=1.30.0 hide-users=false has-guest-account=false default-session=ubuntu show-manual-login=false show-remote-login=true
[+0.08s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+0.08s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.08s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+0.09s] DEBUG: unity-greeter.vala:680: Starting main loop
[+0.09s] DEBUG: settings-daemon.vala:78: Failed to acquire name org.gnome.SessionManager
[+0.09s] DEBUG: settings-daemon.vala:105: Failed to acquire name org.gnome.ScreenSaver
[+320.41s] DEBUG: settings-daemon.vala:209: Screensaver activated

It seems to me like the 2nd and 3rd to last messages are the important ones:

[+0.09s] DEBUG: settings-daemon.vala:78: Failed to acquire name org.gnome.SessionManager
[+0.09s] DEBUG: settings-daemon.vala:105: Failed to acquire name org.gnome.ScreenSaver

For contrast, here is the log from a seat that loaded correctly and showed the lightdm login:

[+0.00s] DEBUG: unity-greeter.vala:562: Starting unity-greeter 17.04.1 UID=128 LANG=en_PH.UTF-8
[+0.00s] DEBUG: unity-greeter.vala:565: Setting cursor
[+0.00s] DEBUG: unity-greeter.vala:579: Loading command line options
[+0.00s] DEBUG: unity-greeter.vala:607: Setting GTK+ settings
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
[+0.07s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0.08s] DEBUG: unity-greeter.vala:630: Creating Unity Greeter
[+0.08s] DEBUG: Connecting to display manager...
[+0.08s] DEBUG: Wrote 26 bytes to daemon
[+0.08s] DEBUG: Read 8 bytes from daemon
[+0.08s] DEBUG: Read 159 bytes from daemon
[+0.08s] DEBUG: Connected api=1 version=1.30.0 hide-users=false has-guest-account=false default-session=ubuntu show-manual-login=false show-remote-login=true
[+0.09s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+0.09s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.09s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+0.09s] DEBUG: unity-greeter.vala:680: Starting main loop
[+0.09s] DEBUG: settings-daemon.vala:75: Acquired org.gnome.SessionManager
[+0.09s] DEBUG: settings-daemon.vala:102: Acquired org.gnome.ScreenSaver
[+0.09s] DEBUG: settings-daemon.vala:159: All bus names acquired, starting unity-settings-daemon
[+0.09s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 

** (unity-settings-daemon:4058): WARNING **: 08:55:39.804: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

(unity-settings-daemon:4058): rfkill-plugin-WARNING **: 08:55:39.820: Could not open RFKILL control device, please verify your installation

** (unity-settings-daemon:4058): WARNING **: 08:55:39.822: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
[+0.20s] DEBUG: unity-greeter.vala:123: xsettings is ready
[+0.20s] DEBUG: unity-greeter.vala:497: Creating background surface

** (unity-settings-daemon:4058): WARNING **: 08:55:39.825: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:55:39.825: Unable to register client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such method “RegisterClient”
[+0.20s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.20s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.21s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.21s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.21s] DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created
[+0.21s] DEBUG: menubar.vala:335: LANG=en_PH.UTF-8 LANGUAGE=en_PH:en
[+0.22s] DEBUG: menubar.vala:367: LANG=en_PH.UTF-8 LANGUAGE=en_PH:en
[+0.22s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.22s] DEBUG: User /org/freedesktop/Accounts/User1002 added
[+0.23s] DEBUG: User /org/freedesktop/Accounts/User1001 added
[+0.23s] DEBUG: User /org/freedesktop/Accounts/User1003 added
[+0.23s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.24s] DEBUG: User /org/freedesktop/Accounts/User1004 added
[+0.24s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+0.24s] DEBUG: Loading sessions from org.freedesktop.DisplayManager
[+0.24s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)

** (unity-settings-daemon:4058): WARNING **: 08:55:39.872: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:55:39.872: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
[+0.27s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+0.27s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+0.27s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+0.27s] DEBUG: Loaded session /usr/share/xsessions/ubuntu.desktop (Ubuntu, This session logs you into Ubuntu)
[+0.28s] DEBUG: Loaded session /usr/share/xsessions/plasma.desktop (Plasma, Plasma by KDE)
[+0.28s] DEBUG: Loaded session /usr/share/xsessions/i3-with-shmlog.desktop (i3 (with debug log), improved dynamic tiling window manager)
[+0.28s] DEBUG: Loaded session /usr/share/xsessions/i3.desktop (i3, improved dynamic tiling window manager)
[+0.28s] DEBUG: Loaded session /usr/share/wayland-sessions/ubuntu-wayland.desktop (Ubuntu on Wayland, This session logs you into Ubuntu)
[+0.28s] DEBUG: Starting authentication for user <redactedForPrivacy>...
[+0.28s] DEBUG: Wrote 26 bytes to daemon

** (unity-settings-daemon:4058): WARNING **: 08:55:39.903: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
[+0.29s] DEBUG: main-window.vala:187: Screen is 3840x2160 pixels
[+0.29s] DEBUG: main-window.vala:195: Monitor 0 is 3840x2160 pixels at 0,0
[+0.29s] DEBUG: unity-greeter.vala:636: Showing greeter
[+0.29s] DEBUG: unity-greeter.vala:257: Showing main window
[+0.30s] DEBUG: Read 8 bytes from daemon
[+0.30s] DEBUG: Read 40 bytes from daemon
[+0.30s] DEBUG: Prompt user with 1 message(s)
[+0.32s] DEBUG: Connected to Application Indicator Service.
[+0.35s] DEBUG: background.vala:485: Regenerating backgrounds
[+0.35s] DEBUG: background.vala:68: Making background /usr/share/backgrounds/warty-final-ubuntu.png at 3840x2160
[+0.39s] DEBUG: unity-greeter.vala:534: Failed to acquire name com.canonical.Unity
[+0.43s] DEBUG: menubar.vala:537: Adding indicator object 0x561a3d45d450 at position 0
[+0.44s] DEBUG: menubar.vala:537: Adding indicator object 0x561a3d45d5b0 at position 0
[+0.44s] DEBUG: menubar.vala:537: Adding indicator object 0x561a3d45d710 at position 1
[+0.44s] DEBUG: menubar.vala:537: Adding indicator object 0x561a3d45d9d0 at position 2
[+0.44s] DEBUG: Request current apps
[+0.44s] DEBUG: Building new application entry: :1.39  with icon: nm-device-wired at position 0
[+0.44s] DEBUG: menubar.vala:537: Adding indicator object 0x561a3d8b9320 at position 4
[+0.45s] DEBUG: unity-greeter.vala:240: starting system-ready sound
[+4.07s] DEBUG: background.vala:121: Render of background /usr/share/backgrounds/warty-final-ubuntu.png complete
[+22.37s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+22.37s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+22.38s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+22.39s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+22.39s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+33.63s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+33.88s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+33.88s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+33.89s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+33.90s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+33.90s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+194.82s] DEBUG: main-window.vala:187: Screen is 3840x2160 pixels
[+194.82s] DEBUG: main-window.vala:195: Monitor 0 is 3840x2160 pixels at 0,0
[+194.82s] DEBUG: main-window.vala:187: Screen is 3840x2160 pixels
[+194.82s] DEBUG: main-window.vala:195: Monitor 0 is 3840x2160 pixels at 0,0
[+194.82s] DEBUG: main-window.vala:187: Screen is 3840x2160 pixels
[+194.82s] DEBUG: main-window.vala:195: Monitor 0 is 3840x2160 pixels at 0,0
[+195.85s] DEBUG: main-window.vala:187: Screen is 3840x2160 pixels
[+195.85s] DEBUG: main-window.vala:195: Monitor 0 is 3840x2160 pixels at 0,0

** (unity-settings-daemon:4058): WARNING **: 08:58:55.476: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:58:55.476: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:58:55.476: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory
[+195.95s] DEBUG: main-window.vala:187: Screen is 3840x2160 pixels
[+195.95s] DEBUG: main-window.vala:195: Monitor 0 is 3840x2160 pixels at 0,0

** (unity-settings-daemon:4058): WARNING **: 08:58:55.569: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:58:55.570: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:58:55.571: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 08:58:55.571: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 09:00:31.528: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

** (unity-settings-daemon:4058): WARNING **: 09:00:31.557: Failed to load PNP ids: Failed to open file “/usr/share/hwdata/pnp.ids”: No such file or directory

(unity-settings-daemon:4058): color-plugin-WARNING **: 09:00:31.558: failed to set screen _ICC_PROFILE: Failed to open file “/home/<redactedForPrivacy>/.local/share/icc/edid-dd4cb5d660594cd03f1af7b83e375f1b.icc”: Permission denied
[+292.88s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+293.13s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+293.14s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+293.14s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+293.15s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+293.16s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+299.89s] DEBUG: settings-daemon.vala:209: Screensaver activated

(unity-settings-daemon:4058): power-plugin-WARNING **: 09:00:39.561: failed to turn the kbd backlight off: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
[+699.29s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+699.54s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+699.54s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+699.55s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+699.56s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+699.56s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+17849.24s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+17849.50s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+17849.50s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+17849.51s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+17849.52s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+17849.52s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+17864.87s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+17865.12s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+17865.12s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+17865.12s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+17865.13s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+17865.14s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+18109.33s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+18109.57s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+18109.57s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+18109.58s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+18109.59s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+18109.59s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+18561.87s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+18562.11s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+18562.12s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+18562.12s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+18562.14s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+18562.14s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+19143.50s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+19143.75s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+19143.75s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+19143.76s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+19143.77s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+19143.77s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)
[+19412.38s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Test)
[+19412.39s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Regs)
[+19412.39s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Jahl)
[+19412.41s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Andy)
[+19412.41s] DEBUG: user-list.vala:1030: Adding/updating user <redactedForPrivacy> (Kris)

The random nature of this happening or not happening on any given seat&boot combination makes me think it's some sort of race conditoin. Sometimes all 4 load correctly, sometimes just 3 of the 4, sometimes just 2 of the 4. I don't think I've ever just seen 1/4.

What do you think could be the cause and what can be the solution?

System info:

uname -a

Linux potens 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10 10:20:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
andyDoucette commented 2 years ago

Hello? A little help here please.

daninsky1 commented 1 year ago

I got the same problem in my multiseat config with 2 seats, to sad this issue didn't got any atentition.

Whe I restart my machine works fine, but if I restart lightDM service the seat0 doesn't get the ord.gnome.SessionManager, only seat1.

I don't know if is related, but I got this problem consistant, after install the nvidia proprietary drivers and KMS, however I cannot tell if any of this cause the issue I didn't tested enought with nouveau drivers, and I really tired of jumping drivers anyway kk.

daninsky1 commented 1 year ago

For anyone with the same problem: https://github.com/ArcticaProject/arctica-greeter/issues/36

I fix the problem following this, that line change makes actica work again, but for me showed the screen messed up, however I can login, but I changed the arctica to slick-greeter as the issue author did, I purged the arctica, intalled the slick-greeter, and worked.

andyDoucette commented 5 months ago

I know it's been a while but i still wanted to thank you, Daninsky, for sharing your insight /solution.

On Sun, Sep 3, 2023, 11:35 PM Daninsky @.***> wrote:

For anyone with the same problem: ArcticaProject/arctica-greeter#36 https://github.com/ArcticaProject/arctica-greeter/issues/36

I fix the problem following this, that line change makes actica work again, but for me showed the screen messed up, however I can login, but I changed the arctica to slick-greeter as the issue author did, I purged the arctica, intalled the slick-greeter, and worked.

— Reply to this email directly, view it on GitHub https://github.com/canonical/lightdm/issues/220#issuecomment-1704348468, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVLQ5Q2LMM6CYS2DDI2OSTXYSWTVANCNFSM5J5KLVLA . You are receiving this because you authored the thread.Message ID: @.***>

andyDoucette commented 5 months ago

I believe this can be closed as it was fixed in the arctica project.

andyDoucette commented 5 months ago

Fixed