NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.32k stars 14.29k forks source link

GNOME Session Crashes with Auto-Login #103746

Open kevincox opened 4 years ago

kevincox commented 4 years ago

Describe the bug When booting up with autologin enabled the desktop becomes briefly visible before GNOME crashes.

I rebooted and got the same behaviour but logging in manually worked.

To Reproduce

  1. Boot system.
  2. Provide disk encryption passowrd.

Expected behavior

The system boots to desktop.

Notify maintainers

@hedning @jtojnar @worldofpeace @dasj19

Log

Nov 13 17:04:20 kevinidea systemd[1045]: Reached target GNOME Session.
Nov 13 17:04:20 kevinidea systemd[1045]: Reached target GNOME Wayland Session (session: gnome).
Nov 13 17:04:20 kevinidea systemd[1045]: Reached target Current graphical user session.
Nov 13 17:04:20 kevinidea systemd[1045]: Condition check resulted in GNOME Initial Setup being skipped.
Nov 13 17:04:20 kevinidea systemd[1045]: Condition check resulted in GNOME Welcome Tour being skipped.
Nov 13 17:04:20 kevinidea systemd[1045]: Starting GPaste daemon...
Nov 13 17:04:20 kevinidea dbus-daemon[1052]: [session uid=1000 pid=1052] Activating service name='org.gnome.Shell.Screencast' requested by ':1.50' (uid=1000 pid=1434 comm="/nix/store/5fpcfnc687s44fq9qhcm6nz6gqn10msz-gnome-" label="kernel")
Nov 13 17:04:20 kevinidea dbus-daemon[905]: [system] Successfully activated service 'org.freedesktop.locale1'
Nov 13 17:04:20 kevinidea systemd[1]: Started Locale Service.
Nov 13 17:04:20 kevinidea dbus-daemon[1052]: [session uid=1000 pid=1052] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.64' (uid=1000 pid=1714 comm="/nix/store/wysp2dm0k8rximd7fhfwfa28rq8xvgd5-m>
Nov 13 17:04:20 kevinidea systemd[1045]: Starting Virtual filesystem metadata service...
Nov 13 17:04:20 kevinidea .gsd-media-keys[1434]: Failed to grab accelerator for keybinding settings:playback-random
Nov 13 17:04:20 kevinidea .gsd-media-keys[1434]: Failed to grab accelerator for keybinding settings:rfkill
Nov 13 17:04:20 kevinidea .gsd-media-keys[1434]: Failed to grab accelerator for keybinding settings:hibernate
Nov 13 17:04:20 kevinidea .gsd-media-keys[1434]: Failed to grab accelerator for keybinding settings:playback-repeat
Nov 13 17:04:20 kevinidea .colord-wrapped[1617]: failed to get session [pid 1430]: No data available
Nov 13 17:04:20 kevinidea dbus-daemon[1052]: [session uid=1000 pid=1052] Successfully activated service 'org.gtk.vfs.Metadata'
Nov 13 17:04:20 kevinidea systemd[1045]: Started Virtual filesystem metadata service.
Nov 13 17:04:20 kevinidea .colord-wrapped[1617]: failed to get session [pid 1430]: No data available
Nov 13 17:04:20 kevinidea .colord-wrapped[1617]: failed to get session [pid 1430]: No data available
Nov 13 17:04:20 kevinidea .geoclue-wrappe[1259]: Failed to query location: Forbidden
Nov 13 17:04:20 kevinidea .gnome-shell-wr[1106]: Failed to launch ibus-daemon: Failed to execute child process “ibus-daemon” (No such file or directory)
Nov 13 17:04:20 kevinidea systemd[1045]: Reached target GNOME session X11 services.
Nov 13 17:04:20 kevinidea systemd[1045]: Starting GNOME XSettings service...
Nov 13 17:04:20 kevinidea gnome-shell[1733]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Nov 13 17:04:20 kevinidea gnome-shell[1733]: > Warning:          Unsupported maximum keycode 569, clipping.
Nov 13 17:04:20 kevinidea gnome-shell[1733]: >                   X11 cannot support keycodes above 255.
Nov 13 17:04:20 kevinidea gnome-shell[1733]: > Warning:          Unsupported high keycode 372 for name <I372> ignored
Nov 13 17:04:20 kevinidea gnome-shell[1733]: >                   X11 cannot support keycodes above 255.
Nov 13 17:04:20 kevinidea gnome-shell[1733]: >                   This warning only shows for the first high keycode.
Nov 13 17:04:20 kevinidea gnome-shell[1733]: Errors from xkbcomp are not fatal to the X server
Nov 13 17:04:20 kevinidea systemd[1045]: Started GNOME XSettings service.
Nov 13 17:04:20 kevinidea systemd[1045]: Reached target GNOME session X11 services.
Nov 13 17:04:20 kevinidea .gpaste-daemon-[1668]: Failed to load module "colorreload-gtk-module"
Nov 13 17:04:20 kevinidea gnome-shell[1227]: WARNING: Kernel has no file descriptor comparison support: Function not implemented
Nov 13 17:04:20 kevinidea dbus-daemon[1052]: [session uid=1000 pid=1052] Successfully activated service 'org.gnome.Shell.Screencast'
Nov 13 17:04:20 kevinidea .gnome-shell-wr[1106]: GNOME Shell started at Fri Nov 13 2020 17:04:19 GMT-0500 (EST)
Nov 13 17:04:20 kevinidea .gnome-shell-wr[1106]: Registering session with GDM
Nov 13 17:04:20 kevinidea dbus-daemon[1052]: [session uid=1000 pid=1052] Successfully activated service 'org.gnome.GPaste'
Nov 13 17:04:20 kevinidea systemd[1045]: Started GPaste daemon.
Nov 13 17:04:21 kevinidea avahi-daemon[867]: Registering new address record for 2002:95f8:b674:1:4c76:1547:ffbf:a55e on enp0s20u1u3.*.
Nov 13 17:04:21 kevinidea gnome-keyring-daemon[1055]: asked to register item /org/freedesktop/secrets/collection/login/64, but it's already registered
Nov 13 17:04:21 kevinidea gdm-autologin][1040]: pam_unix(gdm-autologin:session): session closed for user kevincox
Nov 13 17:04:21 kevinidea systemd[1045]: Stopped target GNOME Wayland Session (session: gnome).
Nov 13 17:04:21 kevinidea systemd[1045]: Stopped target GNOME Session.

It isn't very clear what the source is but the following line is not present in the successful session and sounds related to autologin.

Nov 13 17:04:21 kevinidea gnome-keyring-daemon[1055]: asked to register item /org/freedesktop/secrets/collection/login/64, but it's already registered

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

module: services.xserver.desktopManager.gnome3
Avanatiker commented 3 days ago

I had the same issue but for Plasma 6

# Login SDDM
  services.displayManager = {
    sddm.enable = true;
    autoLogin.enable = true;
    autoLogin.user = "myname";
  };

wasnt logging me into the session. It seems so that your hack with:

systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;

seems to work for Plasma 6 setups aswell.

Avanatiker commented 3 days ago

I had the same issue but for Plasma 6

# Login SDDM
  services.displayManager = {
    sddm.enable = true;
    autoLogin.enable = true;
    autoLogin.user = "myname";
  };

wasnt logging me into the session. It seems so that your hack with:

systemd.services."getty@tty1".enable = false;
systemd.services."autovt@tty1".enable = false;

seems to work for Plasma 6 setups aswell.

@jtojnar maybe update the title and tags because this is out of scope of GNOME