Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645680 - sys-apps/dbus[user-session] prevents login with message "Could not sync environment to dbus."
Summary: sys-apps/dbus[user-session] prevents login with message "Could not sync envir...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-25 11:44 UTC by Norman Back
Modified: 2021-11-14 01:07 UTC (History)
4 users (show)

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


Attachments
Suggested patch (block-consolekit-if-user-session.patch,326 bytes, patch)
2018-01-26 13:36 UTC, Norman Back
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Back 2018-01-25 11:44:28 UTC
sys-apps/dbus[user-session] is required by kde-plasma/plasma-workspace-5.11.5
but enabling user-session prevent login with error message "Could not sync environment to dbus."

Reproducible: Always

Steps to Reproduce:
1. Enable user-session for sys-apps/dbus
2. emerge -1 sys-apps/dbus
3. reboot
Actual Results:  
Error message on login "Could not sync environment to dbus."

Expected Results:  
Login completes OK.

See also bug 645496

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.15-gentoo x86_64)
=================================================================
System uname: Linux-4.14.15-gentoo-x86_64-AMD_FX-tm-9590_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    32853280 total,  29931448 free
KiB Swap:   58720236 total,  58720236 free
Timestamp of repository gentoo: Thu, 25 Jan 2018 02:15:01 +0000
Head commit of repository gentoo: aa01111921a913485ee84f1496c9d8293ef0bdba
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 Norman Back 2018-01-25 21:58:13 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 could then reboot and login with user-session enabled.

Maybe enabling the use flag user-session should block sys-auth/consolekit when the systemd use flag is enabled.
Comment 2 Norman Back 2018-01-26 13:36:27 UTC
Created attachment 516786 [details, diff]
Suggested patch

Block on consolekit if user-session enabled
Comment 3 Michael Palimaka (kensington) gentoo-dev 2018-01-27 01:03:18 UTC
I wonder if there's ever any reason to have both systemd and consolekit installed at the same time.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-27 08:21:33 UTC
I wonder if there's ever any reason to have consolekit at all, given the existence of elogind now.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-01-29 08:02:16 UTC
legacy. Just forgot to remove the flag once the switch was over I guess.
Note that consolekit is still being developed afaik so there might be a reason as to easily switch from one to another. I'm not sure that pam_systemd does anything useful when not booting with systemd.
Comment 6 EFI 2018-02-20 21:32:01 UTC
I've suffer same issue. My fresh install was 4-5 years ago, and upgrading it frequently after two-three weeks. Initially I started with init.d and kde4 and changed to systemd and kde5 when they came stable. In none upgrade -> clean deps, consolekit was  been removed. 
Enabling/disabling consolekit USE make no change in the system, but consolekit package still remain in @world. It need to be uninstalled manually.

I think the should be blocked by plasma-workspace ebuild, like attached patch suggest.
Comment 7 Norman Back 2018-02-21 07:03:35 UTC
(In reply to EFI from comment #6)
> I've suffer same issue. My fresh install was 4-5 years ago, and upgrading it
> frequently after two-three weeks. Initially I started with init.d and kde4
> and changed to systemd and kde5 when they came stable. In none upgrade ->
> clean deps, consolekit was  been removed. 
> Enabling/disabling consolekit USE make no change in the system, but
> consolekit package still remain in @world. It need to be uninstalled
> manually.
> 
> I think the should be blocked by plasma-workspace ebuild, like attached
> patch suggest.

Thank you. You have succinctly described my experience. The difference is that my first install was in 2004 and my last fresh install was in 2008. My current install was upgraded from a fresh install made between 2004 and 2008. Since the fresh install, I have upgraded kde3 from via kde4 to plasma; migrated from 32 to 64bit and applied upgrades on a regular basis ( between 4 weekly and daily). None of these removed console kit from world, even though I used depclean ( once it had been released) after each upgrade.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2018-02-22 08:57:13 UTC
CCing consolekit maintainer in case of any opinion about whether consolekit should block systemd or not.
Comment 9 Mike Gilbert gentoo-dev 2021-11-14 01:07:16 UTC
consolekit is gone.