Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ConsoleKit won't start
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
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 200

PostPosted: Fri Nov 17, 2017 7:06 pm    Post subject: ConsoleKit won't start Reply with quote

Hello,

For quite some time now I simply can't get sys-auth/consolekit to start. The package builds and installs flawlessly but gives errors when started as "/etc/init.d/consolekit start". This used to be a minor annoyance but now I can't even start up KDE anymore (apparently lots of things try to invoke consolekit and it hangs for 25s each time rendering it impractical). Here is the output from trying to start it in a shell:

Code:
# /etc/init.d/consolekit start
 * Caching service dependencies ...                                                                                     [ ok ]
 * Starting consolekit ...
 * start-stop-daemon: did not create a valid pid in `/run/ConsoleKit/pid'
 * Failed to start consolekit                                                                                           [ !! ]
 * ERROR: consolekit failed to start


This appears (verbatim) in /var/log/messages:

Code:
Nov 17 13:55:52 causality /etc/init.d/consolekit[24758]: start-stop-daemon: did not create a valid pid in `/run/ConsoleKit/pid'
Nov 17 13:55:52 causality /etc/init.d/consolekit[24382]: ERROR: consolekit failed to start


That's it. No useful errors I can act on. So I tried manually running the command like this:

Code:
# /usr/sbin/console-kit-daemon --debug --no-daemon
console-kit-daemon[5405]: DEBUG: Debugging enabled
console-kit-daemon[5405]: DEBUG: initializing console-kit-daemon 1.2.0
console-kit-daemon[5405]: DEBUG: name_lost

console-kit-daemon[5405]: DEBUG: Disconnected from D-Bus


I've never seen such useless error output before (except on Windows systems). I have no idea why consolekit is failing, how to get more information, or where to even begin. Please help. For now I switched to LXDE but I would really like to return to KDE Plasma.

emerge --info sys-auth/consolekit:

Code:
Portage 2.3.14 (python 3.5.4-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.4.0, glibc-2.26-r3, 4.13.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.10-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.4.1
KiB Mem:    16371740 total,    750600 free
KiB Swap:    2246652 total,   2246652 free
Timestamp of repository gentoo: Fri, 17 Nov 2017 03:45:01 +0000
Head commit of repository gentoo: 4bf1a62e845340a27027e4ee9cafddd7099ff17f
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.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/ccache:          3.3.4-r1::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.8::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:            5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.ca.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -finline-functions -ftracer -fgcse-sm -fgcse-las -fipa-pta -fsched-pressure -ffat-lto-objects -fuse-linker-plugin -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -finline-functions -ftracer -fgcse-sm -fgcse-las -fipa-pta -fsched-pressure -ffat-lto-objects -fuse-linker-plugin -ftree-loop-distribution -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync multilib-strict news 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://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--strip-debug -Wl,-flto=4"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/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"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X \ a52 aac aalib acl acpi activities alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg jpeg2k kde kipi kwallet lcms ldap libnotify lzma mad mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses nptl offensive ogg opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds python qml qt3support qt4 qt5 readline sdl seccomp session socks5 spell ssl startup-notification svg symlink tcpd tiff truetype udev udisks unicode upower usb videos vorbis widgets win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" 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="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 avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en-US" 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_5" RUBY_TARGETS="ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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

=================================================================
                        Package Settings
=================================================================

sys-auth/consolekit-1.2.0::gentoo was built with the following:
USE="acl cgroups debug pam pm-utils (policykit) udev -doc -evdev (-selinux) -test" ABI_X86="(64)"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--strip-debug -march=native -O2 -pipe"
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 200

PostPosted: Mon Nov 20, 2017 4:12 pm    Post subject: Reply with quote

It appears my Dbus is all screwed up. This is the output of running "qdbus" as root:

Code:
causality ~ # qdbus
:1.4
org.freedesktop.DBus
causality ~ #


And the output of this:

Code:
causality ~ # dbus-send --system --print-reply --reply-timeout=2000    --type=method_call --dest=org.freedesktop.DBus    /org/freedesktop/DBus    org.freedesktop.DBus.ListNames
method return time=1511194299.345474 sender=org.freedesktop.DBus -> destination=:1.71 serial=3 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string ":1.71"
      string ":1.4"
      string ":1.0"
      string ":1.64"
      string ":1.20"
      string "org.freedesktop.Avahi"
      string ":1.43"
      string ":1.6"
      string ":1.59"
      string ":1.2"
      string ":1.44"
   ]
causality ~ #


On other examples I googled there were human-readable service *names* instead of things like ":1.43". This output doesn't look anything like what I see on those.

This may explain why ConsoleKit just complains about "name_lost" and exits.
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