Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDDM fails to start after world upgrade and elogind errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
NuLL3rr0r
n00b
n00b


Joined: 13 Jul 2009
Posts: 58
Location: The Netherlands

PostPosted: Sat Jun 27, 2020 9:28 pm    Post subject: SDDM fails to start after world upgrade and elogind errors Reply with quote

A few days back I did a world upgrade as usual and after I restarted my laptop it gets stuck at "Starting udev..." at boot time until it times out. Afterward, SDDM fails to start. I see the following logs in dmesg:

Code:

[    3.669414] ZFS: Loaded module v0.8.4-r0-gentoo, ZFS pool version 5000, ZFS filesystem version 5
[    3.669685] modprobe (1946) used greatest stack depth: 13272 bytes left
[    3.671364] udevd[2148]: starting version 3.2.9
[    3.671586] random: udevd: uninitialized urandom read (16 bytes read)
[    3.671602] random: udevd: uninitialized urandom read (16 bytes read)
[    3.671627] random: udevd: uninitialized urandom read (16 bytes read)
[    3.678570] udevd[2149]: starting eudev-3.2.9
[    3.715500] udevd[2949]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/mixer1 ': No such file or directory
[    3.715513] udevd[2950]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/snd/pcmC1D3p ': No such file or directory
[    3.715610] udevd[2947]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/snd/hwC1D0 ': No such file or directory
[    3.715854] udevd[2952]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/snd/pcmC1D8p ': No such file or directory
[    3.715946] udevd[2953]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/snd/pcmC1D7p ': No such file or directory
[    3.716087] udevd[2951]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/snd/controlC1 ': No such file or directory
[    3.723046] udevd[2964]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/dsp ': No such file or directory
[    3.723077] udevd[2966]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/snd/hwC0D0 ': No such file or directory
[    3.723573] udevd[2967]: failed to execute '/lib64/elogind/elogind-uaccess-command' '/lib64/elogind/elogind-uaccess-command /dev/adsp ': No such file or directory
[    3.728084] ahci 0000:00:17.0: port does not support device sleep


I checked the last emerged packages from genlop and they are:

Code:

     Thu Jun 25 09:34:18 2020 >>> dev-util/netsurf-buildsystem-1.9
     Thu Jun 25 09:34:33 2020 >>> dev-util/opencl-headers-2020.06.16
     Thu Jun 25 09:34:45 2020 >>> app-arch/unrar-5.9.3
     Thu Jun 25 09:34:52 2020 >>> sys-boot/gnu-efi-3.0.12
     Thu Jun 25 09:34:59 2020 >>> sys-firmware/intel-microcode-20200616_p20200617
     Thu Jun 25 09:35:05 2020 >>> dev-java/byaccj-1.15-r2
     Thu Jun 25 09:35:12 2020 >>> app-emulation/wine-mono-5.1.0
     Thu Jun 25 09:35:20 2020 >>> media-libs/libnsgif-0.2.1-r2
     Thu Jun 25 09:35:29 2020 >>> dev-libs/ell-0.32
     Thu Jun 25 09:36:26 2020 >>> sys-devel/binutils-config-5.3.2
     Thu Jun 25 09:36:34 2020 >>> sys-devel/gcc-config-2.3.1
     Thu Jun 25 09:36:40 2020 >>> app-arch/zstd-1.4.5
     Thu Jun 25 09:37:34 2020 >>> app-text/qpdf-10.0.1-r1
     Thu Jun 25 09:38:01 2020 >>> app-text/txt2man-1.7.0
     Thu Jun 25 09:38:08 2020 >>> app-shells/zsh-completions-0.32.0
     Thu Jun 25 09:38:22 2020 >>> media-plugins/live-2020.05.15
     Thu Jun 25 09:38:31 2020 >>> dev-db/pgbouncer-1.14.0
     Thu Jun 25 09:40:26 2020 >>> dev-libs/nss-3.53.1
     Thu Jun 25 09:40:32 2020 >>> sys-apps/file-5.39-r1
     Thu Jun 25 09:41:04 2020 >>> dev-ruby/rubygems-3.1.4
     Thu Jun 25 09:41:26 2020 >>> dev-util/ccache-3.7.10
     Thu Jun 25 09:41:37 2020 >>> app-text/docbook-xsl-ns-stylesheets-1.79.1
     Thu Jun 25 09:41:54 2020 >>> dev-libs/check-0.15.0
     Thu Jun 25 09:42:12 2020 >>> net-misc/rclone-1.52.1
     Thu Jun 25 09:43:28 2020 >>> net-libs/libvncserver-0.9.13
     Thu Jun 25 09:43:46 2020 >>> dev-util/glslang-8.13.3743-r1
     Thu Jun 25 09:44:01 2020 >>> media-libs/alsa-lib-1.2.3.1
     Thu Jun 25 09:44:34 2020 >>> dev-cpp/eigen-3.3.7
     Thu Jun 25 09:46:00 2020 >>> media-sound/alsa-utils-1.2.3
     Thu Jun 25 09:47:47 2020 >>> dev-util/spirv-tools-2020.3
     Thu Jun 25 09:48:05 2020 >>> dev-util/valgrind-3.16.1
     Thu Jun 25 09:48:27 2020 >>> dev-libs/spdlog-1.6.1
     Thu Jun 25 09:48:42 2020 >>> dev-libs/libzip-1.7.1
     Thu Jun 25 09:50:04 2020 >>> net-vpn/tor-0.4.4.1_alpha
     Thu Jun 25 10:43:18 2020 >>> dev-lang/rust-1.44.1
     Thu Jun 25 10:43:24 2020 >>> dev-python/certifi-9999
     Thu Jun 25 10:43:40 2020 >>> virtual/rust-1.44.1
     Thu Jun 25 10:43:50 2020 >>> dev-util/meson-0.54.3
     Thu Jun 25 10:43:58 2020 >>> media-libs/shaderc-2020.1
     Thu Jun 25 10:44:20 2020 >>> dev-python/wcwidth-0.2.5
     Thu Jun 25 10:44:27 2020 >>> dev-python/html5lib-1.1
     Thu Jun 25 10:45:26 2020 >>> dev-python/cython-0.29.20-r2
     Thu Jun 25 10:45:33 2020 >>> dev-libs/libinput-1.15.6
     Thu Jun 25 10:46:15 2020 >>> net-misc/youtube-dl-2020.06.16.1
     Thu Jun 25 10:46:31 2020 >>> dev-libs/xmlsec-1.2.30
     Thu Jun 25 10:46:38 2020 >>> net-libs/neon-0.31.2
     Thu Jun 25 10:49:52 2020 >>> dev-python/numpy-1.19.0
     Thu Jun 25 10:50:01 2020 >>> x11-misc/shared-mime-info-2.0-r2
     Thu Jun 25 10:50:21 2020 >>> dev-libs/popt-1.18
     Thu Jun 25 10:51:19 2020 >>> sys-devel/bison-3.6.4
     Thu Jun 25 10:51:40 2020 >>> dev-python/requests-2.24.0
     Thu Jun 25 10:51:49 2020 >>> media-libs/libexif-0.6.22
     Thu Jun 25 10:52:06 2020 >>> net-misc/rsync-3.2.1
     Thu Jun 25 10:52:53 2020 >>> kde-plasma/kwayland-server-5.19.2
     Thu Jun 25 10:53:03 2020 >>> sys-apps/portage-2.3.103
     Thu Jun 25 10:53:23 2020 >>> dev-java/java-config-2.3.1
     Thu Jun 25 10:53:39 2020 >>> media-libs/libplacebo-2.72.0
     Thu Jun 25 10:55:50 2020 >>> sys-apps/man-db-2.9.3
     Thu Jun 25 10:55:57 2020 >>> sys-libs/pam-1.4.0-r2
     Thu Jun 25 10:56:08 2020 >>> sys-auth/passwdqc-1.4.0
     Thu Jun 25 10:56:20 2020 >>> sys-auth/pambase-20200618
     Thu Jun 25 10:57:13 2020 >>> kde-plasma/kdecoration-5.19.2
     Thu Jun 25 10:57:20 2020 >>> kde-frameworks/kitemmodels-5.71.0
     Thu Jun 25 10:57:33 2020 >>> kde-plasma/polkit-kde-agent-5.19.2
     Thu Jun 25 10:58:12 2020 >>> x11-misc/qt5ct-1.0
     Thu Jun 25 10:59:21 2020 >>> app-admin/sudo-1.9.1
     Thu Jun 25 10:59:36 2020 >>> sys-fs/udisks-2.9.0
     Thu Jun 25 11:00:22 2020 >>> net-im/zoom-5.1.412382.0614-r1
     Thu Jun 25 11:00:45 2020 >>> app-editors/neovim-qt-0.2.16.1
     Thu Jun 25 11:02:44 2020 >>> media-gfx/nomacs-3.14.2
     Thu Jun 25 11:04:14 2020 >>> x11-base/xorg-server-1.20.8-r1
     Thu Jun 25 11:04:28 2020 >>> x11-libs/qscintilla-2.11.5
     Thu Jun 25 11:05:09 2020 >>> media-libs/harfbuzz-2.6.8
     Thu Jun 25 11:06:36 2020 >>> x11-misc/sddm-0.18.1-r3
     Thu Jun 25 11:08:25 2020 >>> kde-plasma/kactivitymanagerd-5.19.2
     Thu Jun 25 11:08:46 2020 >>> kde-plasma/breeze-5.19.2
     Thu Jun 25 11:09:24 2020 >>> kde-frameworks/plasma-5.71.0-r1
     Thu Jun 25 11:13:19 2020 >>> media-video/ffmpeg-4.3
     Thu Jun 25 11:13:25 2020 >>> net-print/cups-filters-1.27.4
     Thu Jun 25 11:14:55 2020 >>> app-editors/visual-studio-code-1.46.1
     Thu Jun 25 11:15:06 2020 >>> kde-plasma/kscreenlocker-5.19.2
     Thu Jun 25 11:16:13 2020 >>> app-text/calibre-4.19.0
     Thu Jun 25 11:17:18 2020 >>> media-gfx/graphicsmagick-1.3.35-r1
     Thu Jun 25 11:22:17 2020 >>> media-video/mpv-0.32.0-r1
     Thu Jun 25 11:30:30 2020 >>> media-gfx/imagemagick-7.0.10.19
     Thu Jun 25 11:30:42 2020 >>> net-im/skypeforlinux-8.61.0.95
     Thu Jun 25 11:33:49 2020 >>> media-video/vlc-3.0.11
     Thu Jun 25 11:34:56 2020 >>> net-im/slack-4.4.3
     Thu Jun 25 11:42:19 2020 >>> kde-plasma/kwin-5.19.2
     Thu Jun 25 11:44:28 2020 >>> kde-plasma/libkworkspace-5.19.2
     Thu Jun 25 12:33:35 2020 >>> kde-plasma/kde-cli-tools-5.19.2
     Thu Jun 25 12:35:22 2020 >>> www-client/opera-69.0.3686.36
     Thu Jun 25 12:43:12 2020 >>> www-client/vivaldi-3.1.1929.45_p1
     Thu Jun 25 12:57:00 2020 >>> www-client/firefox-77.0.1
     Thu Jun 25 13:00:25 2020 >>> app-emulation/wine-vanilla-5.11


I cannot downgrade SDDM since x11-misc/sddm-0.18.1-r1 is being masked due to sys-libs/pam-1.4.0 upgrade. I must also note that I had these two news from emerge --sync:

Code:

$ eselect news read 30

2020-06-23-upgrade-to-sys-libs_pam-1_4_0
  Title                     sys-libs/pam-1.4.0 upgrade
  Author                    Mikle Kolyada <zlogene@gentoo.org>
  Posted                    2020-06-23
  Revision                  1

Starting with the 1.4.0 release [1], we don't offer these modules anymore:

* pam_tally and pam_tally2 have been deprecated and replaced
  by the pam_faillock module
* pam_cracklib has been deprecated and replaced
  by the pam_passwdqc module

These changes affected our basic PAM stack configuration.

You only need to take action if:
* you made manual changes to the PAM stack, or
* you use FEATURES="-config-protect-if-modified" option

If this applies to you, please make sure to either run the etc-update or
dispatch-conf command in order to sync your configuration.

Failure to do this may result in your system becoming inaccessible.

[1] - https://github.com/linux-pam/linux-pam/releases/tag/v1.4.0

$ eselect news read 31

2020-06-24-xorg-server-dropping-default-suid
  Title                     xorg-server dropping default suid
  Author                    Piotr Karbowski <slashbeast@gentoo.org>
  Posted                    2020-06-24
  Revision                  3

Starting 2020-07-15, stable keyworded x11-base/xorg-server will default
to using the logind interface instead of suid by default. resulting in
better security by default through running the server as a regular user
instead of root. However, this will require our users to use a logind
provider such as elogind or systemd. The systemd users and those who are
not using systemd but use desktop profiles can stop reading here, as
they already have a logind provider enabled.

Others, who have neither systemd or desktop profiles enabled will be
required to globally enable 'elogind' USE flag and update the system

    # emerge --newuse @world

Afterwards, one will need to re-login, so the PAM can assign a seat. One
can confirm that a seat has been assigned upon login by running:

    $ loginctl user-status

Users who do not wish to use logind interface or have rare hardware that
does not use KMS and because of that, require root privileges to
operate, can manually re-enable 'suid' and disable 'elogind' USE flags
in order to preserve the previous behavior. However, please note that
this is heavily discouraged to run X server as root due to security
reasons. The 'suid' USE flag will remain as optional opt-in for the need
of legacy hardware.


Since I am running a desktop profile and:

Code:

$ emerge --info | grep config-protect-if-modified

FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"

$ emerge --info | grep elogind

USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="joystick keyboard libinput mouse" KERNEL="linux" L10N="en-US en fa-IR fa nl-NL nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LLVM_TARGETS="BPF NVPTX X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres12" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"


According to the news from eselect output, I did not have to do anything. Now, to sum up:

1. How to fix SDDM to start at boot (logging in, in a terminal and startx works)?

2. How to eliminate those udev/elogind errors at boot time and the timeout they cause?
Back to top
View user's profile Send private message
Ralphred
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2013
Posts: 117

PostPosted: Sat Jun 27, 2020 10:08 pm    Post subject: Reply with quote

I had a similar sddm issue, but was being a numpty and didn't add elogind to the default runlevel after switching from consolekit.
Back to top
View user's profile Send private message
NuLL3rr0r
n00b
n00b


Joined: 13 Jul 2009
Posts: 58
Location: The Netherlands

PostPosted: Mon Jun 29, 2020 1:55 pm    Post subject: Reply with quote

I remember I had to add elogind to boot runlevel when I migrated from consolekit some time ago. As you recommended, I did remove it from the boot runlevel and made sure it is not going to start from other runlevels but it's the same still.
Back to top
View user's profile Send private message
NuLL3rr0r
n00b
n00b


Joined: 13 Jul 2009
Posts: 58
Location: The Netherlands

PostPosted: Mon Jun 29, 2020 3:10 pm    Post subject: Reply with quote

I guess I am facing the same issue as this one.
Back to top
View user's profile Send private message
NuLL3rr0r
n00b
n00b


Joined: 13 Jul 2009
Posts: 58
Location: The Netherlands

PostPosted: Mon Jun 29, 2020 6:31 pm    Post subject: Reply with quote

For the time being, downgrading to the vulnerable x11-misc/sddm-0.15.0 works as usual and I don't have to deal with the pam mask/unmask. But, the system is really slow now.

And I solved those /var/log/dmesg errors by modifying the fearedbliss/bliss-initramfs source as suggested by the author:

Code:

# Dependencies
    # 1. sys-apps/busybox
    # 2. sys-apps/kmod
    # 3. app-shells/bash
    # 4. sys-apps/grep
    # 5. sys-apps/kbd
    # 6. udev
    _files = [
        "/lib64/elogind/elogind-uaccess-command",
        "/sbin/modprobe",
        "/usr/sbin/crda",
        "/bin/busybox",
        Tools.GetProgramPath("kmod"),


Despite all this, still the issue persists with the latest x11-mis/sddm (0.18.1-r3).
Back to top
View user's profile Send private message
NuLL3rr0r
n00b
n00b


Joined: 13 Jul 2009
Posts: 58
Location: The Netherlands

PostPosted: Tue Jul 07, 2020 9:29 pm    Post subject: Reply with quote

OK, for anyone coming across this. I partially resolved this mess by exploiting some workarounds.

1. I resolved the SDDM issue by downgrading to SDDM v0.15.0.

2. After investing the Portage git repository and using genlop in order to see what has been updated:

Code:

$ genlop -l
$ git whatchanged --since="15 June 2020" --until="25 June 2020"


It seems for the GUI unresponsiveness and "Starting udev..." timeout at boot, the culprit was an NVIDIA update. So, I did revived the last deleted ebuilds for NVIDIA drivers and masked the nvidia drivers:

Code:

$ git checkout 5b7642553d22fc824f27c755153cfa0b82edd043 -- x11-drivers/nvidia-drivers
$ echo '=x11-drivers/nvidia-drivers-440.100-r1' > '/etc/portage/package.mask/x11-drivers_nvidia-drivers'
$ echo '='x11-drivers/nvidia-drivers-450.51-r1' >> '/etc/portage/package.mask/x11-drivers_nvidia-drivers'


So, to sum up, downgrading to x11-drivers/nvidia-drivers-440.82-r3 solved those issues for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum