FS#72202 - glib2 is not working with GDM or GNOME

Attached to Project: Arch Linux
Opened by Gerardo Gonzalez (gerardogc2378) - Tuesday, 21 September 2021, 21:37 GMT
Last edited by Toolybird (Toolybird) - Friday, 02 June 2023, 21:44 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:

When I did my update today I noticed that these packages were installed

[2021-09-21T14:42:22-0500] [ALPM] upgraded tracker3-miners (3.1.2-2 -> 3.2.0+6+gfffef2772-1)
[2021-09-21T14:42:22-0500] [ALPM] upgraded sdl (1.2.15-14 -> 1.2.15+387+gfbfcca32-1)
[2021-09-21T14:42:22-0500] [ALPM] upgraded harfbuzz-icu (2.9.1-1 -> 3.0.0-1)
[2021-09-21T14:42:22-0500] [ALPM] upgraded gtk3 (1:3.24.30-2 -> 1:3.24.30+62+g8d04980f38-2)
[2021-09-21T14:42:22-0500] [ALPM] upgraded harfbuzz (2.9.1-1 -> 3.0.0-1)
[2021-09-21T14:42:22-0500] [ALPM] upgraded tracker3 (3.1.2-1 -> 3.2.0-1)
[2021-09-21T14:42:16-0500] [ALPM] upgraded gobject-introspection-runtime (1.68.0-1 -> 1.70.0-1)
[2021-09-21T14:42:16-0500] [ALPM] upgraded glib2 (2.68.4-1 -> 2.70.0-1)
[2021-09-21T14:42:16-0500] [ALPM] upgraded cantarell-fonts (1:0.301-1 -> 1:0.303-1)


Steps to reproduce:

As a root I did:

# pacman -Syu

I got a problem when I restarted my machine, GDM was not running again, I started my X window into a terminal using the startx command. The solution for me was restore a previous version of glib2 2.68.4-1 and that is the reason for this ticket. I am using a Lenovo machine. I am curious, my Dell latop was updated but there is no problem in that machine. So anyone has this problem with glib2?

This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 02 June 2023, 21:44 GMT
Reason for closing:  No response
Additional comments about closing:  Plus it's old and stale. If there are still related problems, please report upstream.
Comment by Mike Dillamore (armadillo) - Tuesday, 21 September 2021, 21:50 GMT
I also have this issue, on a Dell XPS 15 9560. The Nvidia graphics on this system is disabled via ACPI. My desktop PC (running Nvidia) is OK with the new version. My workaround was also to downgrade glib2. When failing, these seem to be the critical journal entries: -

Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[717]: dbus-daemon[717]: [session uid=120 pid=717] Activating service name='org.freedesktop.systemd1' requested by ':1.0' (uid=120 pid=707 comm="/usr/lib/gdm-x-session dbus-run-session -- gnome-s")
Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[717]: dbus-daemon[717]: [session uid=120 pid=717] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[722]: dbus-daemon[722]: [session uid=120 pid=722] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=120 pid=727 comm="/usr/lib/gnome-session-check-accelerated ")
Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[722]: dbus-daemon[722]: [session uid=120 pid=722] Successfully activated service 'org.a11y.Bus'
Sep 22 11:42:00 wallcreeper gnome-session[723]: gnome-session-binary[723]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Sep 22 11:42:00 wallcreeper gnome-session[723]: gnome-session-binary[723]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Sep 22 11:42:00 wallcreeper gnome-session[723]: gnome-session-binary[723]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[709]: (II) intel(0): EDID vendor "SHP", prod id 5203
Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[709]: (II) intel(0): Printing DDC gathered Modelines:
Sep 22 11:42:00 wallcreeper /usr/lib/gdm-x-session[709]: (II) intel(0): Modeline "1920x1080"x0.0 138.50 1920 1968 2000 2080 1080 1083 1088 1111 -hsync -vsync (66.6 kHz eP)
Sep 22 11:42:00 wallcreeper org.gnome.Shell.desktop[743]: Failed to connect to session bus: Cannot spawn a message bus when setuid
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 22 11:42:00 wallcreeper gnome-session[723]: gnome-session-binary[723]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 22 11:42:00 wallcreeper org.gnome.Shell.desktop[753]: Failed to connect to session bus: Cannot spawn a message bus when setuid
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 22 11:42:00 wallcreeper gnome-session[723]: gnome-session-binary[723]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Sep 22 11:42:00 wallcreeper gnome-session[723]: gnome-session-binary[723]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: Unrecoverable failure in required component org.gnome.Shell.desktop
Sep 22 11:42:00 wallcreeper gnome-session-binary[723]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Comment by Jan Alexander Steffens (heftig) - Wednesday, 22 September 2021, 13:04 GMT
systemd --user is crashing? Do you have any more logs?
Comment by Mike Dillamore (armadillo) - Wednesday, 22 September 2021, 13:25 GMT
See attached for extended log from the same session.
Comment by Jan Alexander Steffens (heftig) - Wednesday, 22 September 2021, 13:41 GMT
Sep 22 11:41:59 wallcreeper unix_chkpwd[703]: could not obtain user info (gdm)

What's your /etc/nsswitch.conf? What's the gdm line in /etc/passwd? Does pwck report any errors?
Comment by Mike Dillamore (armadillo) - Wednesday, 22 September 2021, 14:02 GMT
Many thanks - the pwck suggestion has resolved this for me! I had numerous missing /etc/shadow entries.
Comment by Antheo LE ROUZIC (angryfrog) - Wednesday, 22 September 2021, 15:18 GMT
Hi,
I have the exact same problem, but typing "sudo pcwk" return nothing and the problem is still here.
One difference is I don't use GDM but an autologin service and launch gnome via .bash_profile.
I would be happy to do anything to help solving this bug, so feel free to ask for any log or other files.
Thanks you!

EDIT : problem is solved by installing GDM, but I would like to go back to my old way of doing if possible.
Comment by Gerardo Gonzalez (gerardogc2378) - Friday, 24 September 2021, 01:24 GMT
I tried to reinstall GDM but no success, in fact in my Dell machine GDM is not working properly, so glib2 was downgraded.
Comment by Gerardo Gonzalez (gerardogc2378) - Friday, 24 September 2021, 01:27 GMT
This popup is missing when you install glib2 2.70.0-1
Comment by Mike Dillamore (armadillo) - Friday, 24 September 2021, 07:24 GMT
For info - that popup is not missing for me
Comment by Peter Kraus (PetoKraus) - Monday, 27 September 2021, 12:51 GMT
I can confirm that something is wrong with glib2. I had issues with my gnome-keyring completely disappearing after this update, and found the "solution" in the post here:
https://www.reddit.com/r/archlinux/comments/pt3qtd/gnomekeyring_daemon_suddenly_broke/
Comment by Jan Alexander Steffens (heftig) - Monday, 27 September 2021, 13:27 GMT
glib2 2.70 stopped reading DBUS_SESSION_BUS_ADDRESS in privileged processes (gnome-keyring-daemon has CAP_IPC_LOCK and gnome-shell has CAP_SYS_NICE) and thus will only connect to the user bus at $XDG_RUNTIME_DIR/bus. Please make sure you do not use "dbus-run-session", "dbus-launch" or similar when starting GNOME.
Comment by Fabian Bornschein (fabis_cafe) - Monday, 27 September 2021, 22:02 GMT
The problem mentioned by Gerardo Gonzalez (gerardogc2378) is that you can not restart/shut down from GDM without logging in: https://gitlab.gnome.org/GNOME/gdm/-/issues/725

If I understand this https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2284 right CAP_SYS_NICE in gnome-shell(gs) to protect the system from being DoS, essentially locked up completely by gs itself. Therefore I'm not a fan of removing it. However fedora dropped it 2 weeks ago with https://bodhi.fedoraproject.org/updates/FEDORA-2021-d0b0be7c4e in fc35, Debian never had it to begin with. As I believe(no proof) Arch+GNOME is mostly used as single-user-system, where you can only DoS yourself, I don't know what would be the real impact by removing the extra capabilities for gs.

Also because it's related for reading purposes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1934
Comment by Gerardo Gonzalez (gerardogc2378) - Tuesday, 28 September 2021, 20:26 GMT
This is CORRECT "The problem mentioned by Gerardo Gonzalez (gerardogc2378) is that you can not restart/shut down from GDM without logging in"
Comment by Gerardo Gonzalez (gerardogc2378) - Tuesday, 19 October 2021, 23:16 GMT
Now glib2 is working well with GDM and GNOME, I am using this version 2.70.0-2
Comment by mattia (nTia89) - Sunday, 20 March 2022, 15:26 GMT
I cannot reproduce the issue. Is it still valid for you?

Loading...