You are not logged in.
Ever since yesterday, I have been unable to log into GNOME. I do not remember changing anything that would have caused gnome's session manager to hang forever.
After some looking into the journal and around the forums, I have not been able to find any error messages related to gnome session manager failing like this.
This happens with both GNOME and GNOME Classic on both X11 and Wayland. Starting other window managers with GDM also works as expected.
$ journalctl -b --user --unit=gnome-session-manager@gnome.service
Sep 02 10:21:30 framework systemd[1287]: Starting GNOME Session Manager (session: gnome)...
Sep 02 10:23:00 framework systemd[1287]: gnome-session-manager@gnome.service: start operation timed out. Terminating.
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: State 'stop-sigterm' timed out. Killing.
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Killing process 1349 (gnome-session-b) with signal SIGKILL.
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Killing process 1352 (gdbus) with signal SIGKILL.
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Killing process 1354 (dconf worker) with signal SIGKILL.
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Main process exited, code=killed, status=9/KILL
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Failed with result 'timeout'.
Sep 02 10:24:30 framework systemd[1287]: Stopped GNOME Session Manager (session: gnome).
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Triggering OnFailure= dependencies.
Sep 02 10:24:30 framework systemd[1287]: gnome-session-manager@gnome.service: Consumed 2min 41.952s CPU time.Session never reaches State: active
$ loginctl session-status 6
6 - nameless (1000)
Since: Fri 2022-09-02 10:25:55 CDT; 33s ago
Leader: 2087 (gdm-session-wor)
Seat: seat0; vc2
TTY: tty2
Service: gdm-password; type wayland; class user
State: online
Unit: session-6.scope
├─2087 "gdm-session-worker [pam/gdm-password]"
├─2109 /usr/lib/gdm-wayland-session "env GNOME_SHELL_SESSION_MODE=classic gnome-session"
└─2112 /usr/lib/gnome-session-binary
Sep 02 10:25:55 framework systemd[1]: Started Session 6 of User nameless.Journal of login: https://pastebin.com/1DpiqJvm
Last edited by truemedian (2022-09-03 23:04:44)
Offline
Turns out that gnome-session trips over large directories in $XDG_DATA_HOME/applications. I had accidentally symlinked a very large directory instead of the desktop file I meant to and didn't realize it before rebooting.
Modifying /usr/lib/systemd/user/gnome-session-manager@.service to pass --failsafe worked in the short term, and removing the symlink fixed the problem altogether.
Offline