Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ConsoleKit Crashes on Startup
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: 217

PostPosted: Mon Aug 28, 2017 6:07 pm    Post subject: ConsoleKit Crashes on Startup Reply with quote

I'm posting this here because the main use (for me) of ConsoleKit is to facilitate my desktop environment (KDE). I hope I chose the correct forum.

Please help me with Consolekit's failure to start (anytime, including on boot). I can get some error message output but nothing that really helps me diagnose the issue. Other programs interacting with dbus work fine.

I'm running an ~amd64 system so this is sys-auth/consolekit-1.2.0. Every attempt to start up fails with an error:

Code:
# /etc/init.d/consolekit start
consolekit         | * Starting consolekit ...
consolekit         | * start-stop-daemon: /usr/sbin/console-kit-daemon died
consolekit         | * Failed to start consolekit                                                                      [ !! ]
consolekit         | * ERROR: consolekit failed to start
#


My system log contains this:

Code:
Aug 28 13:47:29 my_hostname console-kit-daemon[19622]: WARNING: cannot connect to DBus: Error calling StartServiceByName for org.freedesktop.DBus: The connection is closed
Aug 28 13:47:29 my_hostname console-kit-daemon[19622]: CRITICAL: Could not create CkManager
Aug 28 13:47:29 my_hostname /etc/init.d/consolekit[19620]: start-stop-daemon: /usr/sbin/console-kit-daemon died
Aug 28 13:47:29 my_hostname /etc/init.d/consolekit[19601]: ERROR: consolekit failed to start


An effort to run it stand-alone in debug mode yields:

Code:
# console-kit-daemon --debug --no-daemon
console-kit-daemon[22467]: DEBUG: Debugging enabled
console-kit-daemon[22467]: DEBUG: initializing console-kit-daemon 1.2.0
console-kit-daemon[22467]: DEBUG: bus_acquired org.freedesktop.ConsoleKit

console-kit-daemon[22467]: DEBUG: Creating thread for log writing
console-kit-daemon[22467]: DEBUG: exported on /org/freedesktop/ConsoleKit/Manager
console-kit-daemon[22467]: GLib-GIO-CRITICAL: Error while sending AddMatch() message: The connection is closed
aborting...
Trace/breakpoint trap
#


I've tried re-emerging glib, dbus-glib, and consolekit but it doesn't help.

Output of emerge --info consolekit (gcc-6.4.0 is the active compiler):

Code:
Portage 2.3.8 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r4, 4.12.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.9-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.4.1
KiB Mem:    16372040 total,    643008 free
KiB Swap:    2246652 total,   2246652 free
Timestamp of repository gentoo: Fri, 25 Aug 2017 19:15:01 +0000
Head commit of repository gentoo: 2bbc593fb137a65655f8dc2aec94eb1c530fd453
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc[23065] (dcc_mkdir) ERROR: mkdir '/var/tmp/portage/.distcc//state' failed: No such file or directory [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.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.5.3::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.9.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r1::gentoo
sys-apps/openrc:          0.29::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.27::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r4::gentoo
Repositories:

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

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 pam pm-utils (policykit) udev -cgroups -debug -doc -evdev (-selinux) -test" ABI_X86="(64)"
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6823
Location: Austria

PostPosted: Mon Aug 28, 2017 6:12 pm    Post subject: Reply with quote

dbus is in default runlevel?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 217

PostPosted: Mon Aug 28, 2017 6:16 pm    Post subject: Reply with quote

Thanks for responding so fast. Yes, it is:

Code:
# rc-update
                acpid |      default                           
            alsasound |      default                           
               binfmt | boot                                   
             bootmisc | boot                                   
              cbqinit |      default                           
           consolekit |      default                           
             cpupower |      default                           
                cupsd |      default                           
                 dbus |      default                           
             ddclient |      default                           
                devfs |                                 sysinit
                dmesg |                                 sysinit
              dovecot |      default                           
                 fsck | boot                                   
              hddtemp |      default                           
             hostname | boot                                   
              hwclock | boot                                   
             iptables |      default                           
           irqbalance |      default                           
              keymaps | boot                                   
            killprocs |                        shutdown       
    kmod-static-nodes |                                 sysinit
                local |      default nonetwork                 
           localmount | boot                                   
             loopback | boot                                   
              modules | boot                                   
             mount-ro |                        shutdown       
                 mtab | boot                                   
                mysql |      default                           
             net.eth0 |      default                           
               net.lo | boot                                   
             netmount |      default                           
                 ntpd |      default                           
     opentmpfiles-dev |                                 sysinit
   opentmpfiles-setup | boot                                   
              postfix |      default                           
               procfs | boot                                   
                 root | boot                                   
                samba |      default                           
            savecache |                        shutdown       
                 sshd |      default                           
             sshguard |      default                           
                 swap | boot                                   
               sysctl | boot                                   
                sysfs |                                 sysinit
            syslog-ng |      default                           
         termencoding | boot                                   
                 udev |                                 sysinit
         udev-trigger |                                 sysinit
              unbound |      default                           
              urandom | boot                                   
           vixie-cron |      default


Additionally, it is running:

Code:
# /etc/init.d/dbus status
 * status: started
#
Back to top
View user's profile Send private message
asaparov
n00b
n00b


Joined: 04 Nov 2016
Posts: 4

PostPosted: Tue Dec 25, 2018 6:04 am    Post subject: Reply with quote

Sorry for resurrecting an old post, but I just wanted to post the solution for people who run into the same problem.

The issue is compiling glib with -fipa-pta. To fix it, just compile glib without -fipa-pta.
I'm using gentoolto's package.cflags method to add package-specific flags and exceptions.

This causes dbus, which uses glib, to behave very differently. On my system, it led to consolekit, NetworkManager, kde, etc to be unable to connect to dbus.
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