Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645496 - kde-plasma/plasma-workspace-5.11.5 failure to login
Summary: kde-plasma/plasma-workspace-5.11.5 failure to login
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-23 18:22 UTC by Norman Back
Modified: 2018-01-26 06:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Back 2018-01-23 18:22:11 UTC
After upgrading to kde-plasma/plasma-workspace-5.11.5 I am unable to login.

xorg-session.log contains:
startkde: Starting up...
dbus-update-activation-environment: error: unable to connect to D-Bus: Failed to connect to socket /run/user/1000/bus: No such file or directory
startkde: Could not sync environment to dbus.

Reproducible: Always

Steps to Reproduce:
1. Upgrade to kde-plasma/plasma-workspace-5.11.5
2. Attempt to log in
3. A message box containing "Could not sync environment to dbus." is display. Clicking OK closes the session.



emerge --info
Portage 2.3.19 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r9, 4.14.14-gentoo x86_64)
=================================================================
System uname: Linux-4.14.14-gentoo-x86_64-AMD_FX-tm-9590_Eight-Core_Processor-with-gentoo-2.4.1                                                                                                                                       
KiB Mem:    32853316 total,  29132680 free                                                                                                                                                                                            
KiB Swap:   58720236 total,  58720236 free                                                                                                                                                                                            
Timestamp of repository gentoo: Tue, 23 Jan 2018 02:45:01 +0000                                                                                                                                                                       
Head commit of repository gentoo: 24f7a05a4667082f39f0fb3d4e65cf4c24e887bf                                                                                                                                                            
sh bash 4.4_p12                                                                                                                                                                                                                       
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1                                                                                                                                                                                                   
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]                                                                                                                                                                                          
ccache version 3.2.4 [disabled]                                                                                                                                                                                                       
app-shells/bash:          4.4_p12::gentoo                                                                                                                                                                                             
dev-java/java-config:     2.2.0-r3::gentoo                                                                                                                                                                                            
dev-lang/perl:            5.24.3::gentoo                                                                                                                                                                                              
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo                                                                                                                                                       
dev-util/ccache:          3.2.4::gentoo                                                                                                                                                                                               
dev-util/cmake:           3.9.6::gentoo                                                                                                                                                                                               
dev-util/pkgconfig:       0.29.2::gentoo                                                                                                                                                                                              
sys-apps/baselayout:      2.4.1-r2::gentoo                                                                                                                                                                                            
sys-apps/openrc:          0.34.11::gentoo                                                                                                                                                                                             
sys-apps/sandbox:         2.12::gentoo                                                                                                                                                                                                
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo                                                                                                                                                                               
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo                                                                                                                                                                        
sys-devel/binutils:       2.29.1-r1::gentoo                                                                                                                                                                                           
sys-devel/gcc:            6.4.0-r1::gentoo                                                                                                                                                                                            
sys-devel/gcc-config:     1.8-r1::gentoo                                                                                                                                                                                              
sys-devel/libtool:        2.4.6-r3::gentoo                                                                                                                                                                                            
sys-devel/make:           4.2.1::gentoo                                                                                                                                                                                               
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)                                                                                                                                                                           
sys-libs/glibc:           2.25-r9::gentoo                                                                                                                                                                                             
Repositories:                                                                                                                                                                                                                         
                                                                                                                                                                                                                                      
gentoo                                                                                                                                                                                                                                
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://datastoreone/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ikelos
    location: /var/lib/layman/ikelos
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

Installed sets: @kernels
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -mtune=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -mtune=amdfam10 -O2 -pipe"
DISTDIR="/mnt/portage.autofs/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y -j17 --load-average=20 --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.heanet.ie/pub/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.modulix.net/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j20 --load-average=16"
PKGDIR="/mnt/portage.autofs/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git --exclude=lost+found/"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac accessibility acl acpi activities aes alsa amarok amd64 amr authdaemond avx bash-completion berkdb bluetooth bluray branding bzip2 cairo caps cdda cdr cli crypt cups cxx dbus declarative dri dts dv dvd dvdr dvdread emboss encode exif fam firefox flac fma3 fma4 fortran gdbm gif glamor gpm gtk iconv ieee1394 ipv6 jpeg kde kipi kwallet lcms ldap libnotify lm_sensors lock mad mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses network nls nptl ofx ogg opengl openmp oss pam pango pcre pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt3 qt3support qt5 readline samba sasl sdl seccomp semantic-desktop session spell sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification svg systemd tcpd thunar tiff truetype udev udisks uk_bleb uk_rt unicode upower usb v4l v4l2 vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xop xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid slotmem_shm unixd access_compat authz_core socache_shmcb authn_core" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-32 efi-64 pc multiboot mount" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby22 ruby23" SANE_BACKENDS="hp5590 hp net abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp3500 hp3900 hp4200 hp5400 hpljm1005 hpsj5s hs2p ibm kodak kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec niash p5 pie pixma plustek plustek_pp pnm qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Sturmlechner gentoo-dev 2018-01-23 18:23:40 UTC
Please paste the exact content of your ~/.xinitrc.

startkde alone is not enough.

https://wiki.gentoo.org/wiki/KDE#No_display_manager
Comment 2 Norman Back 2018-01-23 19:44:30 UTC
cat ~/.xinitrc
cat: /home/norman/.xinitrc: No such file or directory
Comment 3 Andreas Sturmlechner gentoo-dev 2018-01-23 19:45:31 UTC
Does that mean you tyke startkde all the time? You've never had a proper user session.
Comment 4 Norman Back 2018-01-23 19:52:44 UTC
No this was a working system before the upgrade. (If reverted to a backup which I'm now using).
I login using sddm-greeter.
Regarding ~/.xinitrc, the wiki says "The following solution is limited to ConsoleKit"
I'm using systemd.
Comment 5 Norman Back 2018-01-23 19:55:02 UTC
The working backup systems xorg-session.log contains:

startkde: Starting up...
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/disable_kmix.upd' for new updates
2018-01-23T17:58:52 disable_kmix.upd: Found new update 'PlasmaVolume_DisableKMixAutostart'
2018-01-23T17:58:52 disable_kmix.upd: Skipping update 'PlasmaVolume_DisableKMixAutostart'
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/fonts_akregator.upd' for new updates
2018-01-23T17:58:52 fonts_akregator.upd: Found new update 'Plasma_Fonts_Akregator'
2018-01-23T17:58:52 fonts_akregator.upd: Skipping update 'Plasma_Fonts_Akregator'
2018-01-23T17:58:52 fonts_akregator.upd: File 'akregatorrc' does not exist or empty, skipping
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/fonts_global.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/fonts_kate.upd' for new updates
2018-01-23T17:58:52 fonts_kate.upd: Found new update 'Plasma_Fonts_Kate'
2018-01-23T17:58:52 fonts_kate.upd: Skipping update 'Plasma_Fonts_Kate'
2018-01-23T17:58:52 fonts_kate.upd: File 'kateschemarc' does not exist or empty, skipping
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/gtkbreeze5.5.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/katomic-levelset.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/kcalcrc.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/kde4breeze.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/kgthemeprovider-migration.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/klickety.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/knavalbattle.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/krdb_libpathwipe.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/krunnerplugins.upd' for new updates
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/kscreenlocker.upd' for new updates
2018-01-23T17:58:52 kscreenlocker.upd: Found new update '0.1-autolock'
2018-01-23T17:58:52 kscreenlocker.upd: Skipping update '0.1-autolock'
2018-01-23T17:58:52 Checking update-file '/usr/share/kconf_update/okular.upd' for new updates
2018/01/23 17:58:53 socat[2873] E connect(5, AF=1 "/run/user/1000/kwallet5.socket", 32): No such file or directory
Comment 6 Norman Back 2018-01-24 20:28:37 UTC
OK.
I've restored from backup to a time before the latest stabilization of  kde-plasma/plasma-workspace-5.11.5 and associated kde packages.

Added some entries to /etc/portage/package.mask

>=kde-plasma/plasma-workspace-wallpapers-5.11
>=kde-plasma/kwallet-pam-5.11
>=kde-plasma/libkscreen-5.11
>=kde-plasma/breeze-gtk-5.11
>=kde-plasma/kwayland-integration-5.11
>=kde-plasma/kdecoration-5.11
>=kde-plasma/polkit-kde-agent-5.11
>=kde-plasma/kgamma-5.11
>=kde-plasma/ksshaskpass-5.11
>=kde-plasma/kwrited-5.11
>=kde-plasma/kactivitymanagerd-5.11
>=kde-plasma/user-manager-5.11
>=kde-plasma/plasma-pa-5.11
>=kde-plasma/milou-5.11
>=kde-plasma/kde-cli-tools-5.11
>=kde-plasma/plasma-sdk-5.11
>=kde-plasma/kinfocenter-5.11
>=kde-plasma/kscreen-5.11
>=kde-plasma/kde-gtk-config-5.11
>=kde-plasma/oxygen-5.11
>=kde-plasma/kscreenlocker-5.11
>=kde-plasma/sddm-kcm-5.11
>=kde-plasma/breeze-5.11
>=kde-plasma/bluedevil-5.11
>=kde-plasma/systemsettings-5.11
>=kde-plasma/plasma-integration-5.11
>=kde-plasma/kwin-5.11
>=kde-plasma/libksysguard-5.11                                                                                                                                                                                                        
>=kde-plasma/ksysguard-5.11                                                                                                                                                                                                           
>=kde-plasma/plasma-workspace-5.11                                                                                                                                                                                                    
>=kde-plasma/khotkeys-5.11                                                                                                                                                                                                            
>=kde-plasma/powerdevil-5.11                                                                                                                                                                                                          
>=kde-plasma/plasma-desktop-5.11                                                                                                                                                                                                      
>=kde-plasma/kdeplasma-addons-5.11                                                                                                                                                                                                    
>=kde-plasma/kmenuedit-5.11                                                                                                                                                                                                           
>=kde-plasma/plasma-meta-5.11                                                                                                                                                                                                         
=kde-frameworks/networkmanager-qt-5.40.0-r1                                                                                                                                                                                           
=net-libs/signon-ui-0.15-r1          

to prevent then being emerged again.

Then eix-sync, emerge -DuNavt world , reboot and logged in OK.

I would be happy to help pinpoint the specific kde package but need some guidance on the correct approach.
Comment 7 Norman Back 2018-01-25 11:32:29 UTC
kde-plasma/plasma-workspace-5.11.5 has RDEPEND
systemd? ( sys-apps/dbus[user-session] )

but if I enable USE user-session for sys-apps/dbus, emerge -1 sys-apps/dbus
in preparation for kde-plasma/plasma-workspace-5.11.5
and reboot (without emerging kde-plasma/plasma-workspace-5.11.5), login fails with  
"Could not sync environment to dbus"
Comment 8 Michael Palimaka (kensington) gentoo-dev 2018-01-25 11:34:05 UTC
Which USE flags are enabled on sys-auth/pambase?
Comment 9 Norman Back 2018-01-25 14:31:31 UTC
(In reply to Michael Palimaka (kensington) from comment #8)
> Which USE flags are enabled on sys-auth/pambase?

cracklib nullok sha512 systemd -consolekit -debug -elogind -gnome-keyring -minimal -mktemp -pam_krb5 -pam_ssh -passwdqc -securetty -selinux
Comment 10 Norman Back 2018-01-25 14:32:46 UTC
See also Bug 645680
Comment 11 Norman Back 2018-01-25 21:56:39 UTC
This issue is now resolved.
I had sys-auth/consolekit in the world file.
After many searches I eventually found https://forums.gentoo.org/viewtopic-t-1041644-start-0.html

After emerge --deselect sys-auth/consolekit
emerge --depclean -av removed sys-auth/consolekit

I was then able to disable the masks I had set and emerge kde-plasma/plasma-workspace-5.11.5

Maybe enabling the use flag user-session should block sys-auth/consolekit when the systemd use flag is enabled.
Comment 12 Andreas Sturmlechner gentoo-dev 2018-01-25 22:05:19 UTC
Thanks for the follow-up. USE=consolekit is masked in systemd profiles, that should be enough to protect users from themselves. Masking consolekit makes not much sense as having it installed does not do any harm by itself - unless it is activated at runtime.

Not using the systemd profile will always make you more self-reliant.
Comment 13 Norman Back 2018-01-26 06:42:25 UTC
(In reply to Andreas Sturmlechner from comment #12)
> Thanks for the follow-up. USE=consolekit is masked in systemd profiles, that
> should be enough to protect users from themselves. Masking consolekit makes
> not much sense as having it installed does not do any harm by itself -
> unless it is activated at runtime.
> 
> Not using the systemd profile will always make you more self-reliant.

I am using the systemd profile, as shown in my emerge --info above.

I did not have USE=consolekit anywhere. 

Consolekit was in my world file (probably a hangover when I migrated from openrc to systemd), so although nothing required it, emerge --depclean did not remove it.