You are not logged in.

#1 2014-04-25 17:15:27

dustball
Member
Registered: 2014-04-25
Posts: 9

'systemctl --user status' returns 'Failed to get D-Bus connection'

Basically I am trying to run a user session of systemd. Up to now, this worked without doing the additional parts from the systemd/User wiki-page. Now it returns 'Failed to get D-Bus connection: No such file or directory' or 'Failed to read server status: Input/output error' (the first one when I try it from the TTY, the second one from within xfce / urxvtc). Even after doing the wiki-page, it still returns the two error messages.

My current 'systemctl status':

● SHODAN
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Fr 2014-04-25 18:33:55 CEST; 6min ago
   CGroup: /
           ├─1 /sbin/init
           ├─system.slice
           │ ├─rtkit-daemon.service
           │ │ └─466 /usr/lib/rtkit/rtkit-daemon
           │ ├─polkit.service
           │ │ └─376 /usr/lib/polkit-1/polkitd --no-debug
           │ ├─lightdm.service
           │ │ ├─279 /usr/bin/lightdm
           │ │ └─283 /usr/sbin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt1 -novtswitch
           │ ├─systemd-logind.service
           │ │ └─276 /usr/lib/systemd/systemd-logind
           │ ├─dbus.service
           │ │ └─274 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
           │ ├─wicd.service
           │ │ ├─273 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py --no-daemon
           │ │ ├─289 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
           │ │ └─365 wpa_supplicant -B -i wlp4s0 -c /var/lib/wicd/configurations/00184db47218 -Dwext
           │ ├─systemd-udevd.service
           │ │ └─143 /usr/lib/systemd/systemd-udevd
           │ └─systemd-journald.service
           │   └─119 /usr/lib/systemd/systemd-journald
           └─user.slice
             └─user-1000.slice
               └─session-c2.scope
                 ├─ 314 lightdm --session-child 13 20
                 ├─ 352 /bin/sh /etc/xdg/xfce4/xinitrc -- /etc/X11/xinit/xserverrc
                 ├─ 359 dbus-launch --sh-syntax --exit-with-session
                 ├─ 362 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
                 ├─ 374 xfce4-session
                 ├─ 384 /usr/lib/xfce4/xfconf/xfconfd
                 ├─ 395 /usr/bin/gpg-agent --sh --daemon --enable-ssh-support --write-env-file /home/dustball/.cache/gpg-agent-info
                 ├─ 411 xfwm4
                 ├─ 419 xfce4-panel
                 ├─ 421 Thunar --daemon
                 ├─ 423 xfdesktop
                 ├─ 425 urxvtd
                 ├─ 448 python2 /usr/bin/quicktile -d
                 ├─ 465 /usr/bin/pulseaudio --start --log-target=syslog
                 ├─ 480 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py --tray
                 ├─ 481 grep -v Unhandled action type _OB_WM
                 ├─ 482 xfsettingsd
                 ├─ 483 xfce4-volumed
                 ├─ 488 mpd
                 ├─ 504 /usr/lib/pulse/gconf-helper
                 ├─ 506 /usr/lib/GConf/gconfd-2
                 ├─ 525 /usr/lib/xfce4/notifyd/xfce4-notifyd
                 ├─ 529 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libsystray.so 6 12583017 systray Benachrichtigungsfl  che Fl  che, in der Symbole f  r Benachrichtigungen erscheinen 
                 ├─ 531 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libactions.so 2 12583018 actions Aktionskn  pfe Abmelden, sperren oder andere Systemaktionen 
                 ├─ 532 /usr/lib/xfce4/panel/wrapper /usr/lib/xfce4/panel/plugins/libmixer.so 16 12583019 mixer Lautst  rkeregler Lautst  rke einstellen 
                 ├─ 548 xfce4-appfinder --collapsed
                 ├─ 555 /usr/bin/python2 /usr/bin/sonata
                 ├─1131 /usr/lib/chromium/chromium --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-print-preview
                 ├─1132 liferea
                 ├─1133 claws-mail
                 ├─1134 kvirc -m
                 ├─1135 /usr/lib32/skype/skype
                 ├─1176 /usr/lib/chromium/chromium --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-print-preview
                 ├─1177 /usr/lib/chromium/chrome-sandbox /usr/lib/chromium/chromium --type=zygote --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206
                 ├─1178 /usr/lib/chromium/chromium --type=zygote --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206
                 ├─1181 tmux new-session
                 ├─1184 tmux new-session
                 ├─1185 -zsh
                 ├─1268 /usr/lib/at-spi2-core/at-spi-bus-launcher
                 ├─1567 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
                 ├─1588 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-session
                 ├─1600 /usr/lib/chromium/nacl_helper
                 ├─1755 /usr/lib/chromium/chromium --type=zygote --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206
                 ├─1824 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.1.59959206
                 ├─1847 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.2.164356213
                 ├─1857 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.3.96609819
                 ├─1871 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.4.134029888
                 ├─1880 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.6.5115895
                 ├─1886 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.7.176936345
                 ├─1891 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.8.160718626
                 ├─1896 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.9.165553601
                 ├─1940 /usr/lib/dconf/dconf-service
                 ├─2013 /usr/lib/chromium/chromium --type=gpu-process --channel=1131.12.1289180957 --supports-dual-gpus=false --gpu-driver-bug-workarounds=0,1,17,28,34 --disable-accelerated-video-decode --gpu-vendor-id=0x10de --gpu-device-id=0x0425 --gpu-driver-vendor=NVIDIA --gpu-driver-version=337.1
                 ├─2025 /usr/lib/chromium/chromium --type=gpu-process --channel=1131.12.1289180957 --supports-dual-gpus=false --gpu-driver-bug-workarounds=0,1,17,28,34 --disable-accelerated-video-decode --gpu-vendor-id=0x10de --gpu-device-id=0x0425 --gpu-driver-vendor=NVIDIA --gpu-driver-version=337.1
                 ├─2105 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --extension-process --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.16.111786888
                 ├─2121 bash /usr/bin/steam
                 ├─2131 bash /home/dustball/.local/share/Steam/steam.sh
                 ├─2132 tee /tmp/dumps/dustball_stdout.txt
                 ├─2226 /home/dustball/.local/share/Steam/ubuntu12_32/steam
                 ├─2415 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.18.32337900
                 ├─2423 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.19.132593708
                 ├─2432 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.20.6353944
                 ├─2452 /usr/lib/chromium/chromium --type=renderer --lang=de --force-fieldtrials=Prerender/PrerenderControl/UMA-New-Install-Uniformity-Trial/Experiment/UMA-Session-Randomized-Uniformity-Trial-5-Percent/group_09/UMA-Uniformity-Trial-1-Percent/group_21/UMA-Uniformity-Trial-10-Percent/group_03/UMA-Uniformity-Trial-100-Percent/group_01/UMA-Uniformity-Trial-20-Percent/group_01/UMA-Uniformity-Trial-5-Percent/group_11/UMA-Uniformity-Trial-50-Percent/default/ --renderer-print-preview --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=13.0.0.206 --enable-deadline-scheduling --disable-accelerated-video-decode --channel=1131.22.126548679
                 ├─2465 /usr/lib/chromium/chromium --type=ppapi --channel=1131.23.955061051 --ppapi-flash-args --lang=de                                      
                 └─2685 systemctl status

Offline

#2 2014-04-25 19:53:46

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 155

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

I'm having the same issue.

Offline

#3 2014-04-25 20:00:37

Stebalien
Member
Registered: 2010-04-27
Posts: 1,231
Website

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#4 2014-04-25 20:09:06

dustball
Member
Registered: 2014-04-25
Posts: 9

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

Yes, however I did a fresh install less than a week ago (for different reasons), so that file is correct. For 2 days, systemd --user worked, after that... it stopped. I can't see any changes which would have made that happen.

Offline

#5 2014-04-26 04:51:08

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 155

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

Also, it works for me again. systemd had some troubles with readahead, it seems; I disabled it and most issues are gone.

Offline

#6 2014-04-26 07:27:47

dustball
Member
Registered: 2014-04-25
Posts: 9

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

Hm, my issue persists. I never turned readahead on (and trying to disable them gave no output, so I assume they never were installed).

Offline

#7 2014-04-26 17:40:45

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

Make sure that XDG_RUNTIME_DIR is set and that $XDG_RUNTIME_DIR/systemd/private exists. If not, then something is wrong.

Offline

#8 2014-04-26 18:00:14

dustball
Member
Registered: 2014-04-25
Posts: 9

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

I did the dbus-setup according to the systemd/User part in the wiki.

$ cd $XDG_RUNTIME_DIR/systemd/ && ls -lah |grep private && pwd
srwxr-xr-x 1 dustball dustball   0 25. Apr 22:13 private
/run/user/1000/systemd

Do I need to enable the dbus somehow else than via

sudo systemctl --global enable dbus.socket

?

Offline

#9 2014-08-05 16:56:38

berot3
Member
From: Vienna
Registered: 2009-12-12
Posts: 21

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

disabling readahead solved it for me too. Isn't that strange? What has the one thing to do with the other?

I also did

dustball wrote:

the dbus-setup according to the systemd/User part in the wiki.

Last edited by berot3 (2014-08-05 16:58:33)

Offline

#10 2015-09-09 14:02:15

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 652
Website

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

Necro info here.
Thank you dustball. Doing the the dbus-setup following to the systemd/User part in the wiki, solved the 'Failed to get D-Bus connection' that I had when doing 'systemctl --user status'.

Looks there's no (more) issue with systemd-readahead activated:

└──╼ systemctl -a|grep readahead
  systemd-readahead-collect.service                                                                          loaded    active   exited    Collect Read-Ahead Data
  systemd-readahead-done.service                                                                             loaded    inactive dead      Stop Read-Ahead Data Collection
  systemd-readahead-replay.service                                                                           loaded    active   exited    Replay Read-Ahead Data
  systemd-readahead-done.timer                                                                               loaded    active   elapsed   Stop Read-Ahead Data Collection 10s After Completed Startup

Seeded this month: Arch 80 gig (and Talking~ 2, ~-anywhere 46, Apricity 16)
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) & 2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#11 2015-09-09 22:40:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 13,816

Re: 'systemctl --user status' returns 'Failed to get D-Bus connection'

And on that, I'll  close this thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
You assume people are rational and influenced by evidence.  You must not work with the public much. -- Trilby
----
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB