[SOLVED] systemd --user: "Failed to open private bus connection:"

EDIT: The solution was to set DBUS_SESSION_BUS_ADDRESS, as suggested by gtmanfred in irc.  By putting the following before executing systemd --user, the error vanished:
export DBUS_SESSION_BUS_ADDRESS=/run/user/$(id -u)/dbus/user_bus_socket
===================
Original problem:
Everything on my box appears to be working ok, but I'm getting this error consistently in tty1 and at the top of journalctl (as user) whenever I start systemd --user:
systemd[3975]: Failed to open private bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
I roughly have my system setup per this wiki section https://wiki.archlinux.org/index.php/Sy … ur_Session.  I start systemd --user via a small script in my .bash_profile. Here are my relevant dbus{.service,socket} files, from the package user-session-units mentioned in the wiki:  (Edit: xorg is started through xorg-launch-helper, also from that wiki page)  Edit2: I'm not using autologin.  I noticed that under the autologin section of that page, DBUS_SESSION_BUS_ADDRESS is set to some path.  In my setup that isn't set anywhere, so I may try to copy that later but I don't have time to play with it right now.  Will post back later.
=====/usr/lib/systemd/user/dbus.service=====
[Unit]
Description=D-Bus System Message Bus
Requires=dbus.socket
[Service]
ExecStart=/usr/bin/dbus-daemon --session --address=systemd: --nofork --systemd-activation
ExecReload=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
=====/usr/lib/systemd/user/dbus.socket=====
[Unit]
Description=D-Bus System Message Bus Socket
[Socket]
ListenStream=%t/dbus/user_bus_socket
And the output of sudo systemctl status dbus:
dbus.service - D-Bus System Message Bus
Loaded: loaded (/usr/lib/systemd/system/dbus.service; static)
Active: active (running) since Tue 2013-02-05 14:50:30 EST; 22min ago
Main PID: 369 (dbus-daemon)
CGroup: name=systemd:/system/dbus.service
└─369 /usr/bin/dbus-daemon --system --address=systemd: --no...
Feb 05 14:50:30 sellers-laptop systemd[1]: Starting D-Bus System Message Bus...
Feb 05 14:50:30 sellers-laptop systemd[1]: Started D-Bus System Message Bus.
Feb 05 14:51:18 sellers-laptop dbus-daemon[369]: dbus[369]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Feb 05 14:51:18 sellers-laptop dbus[369]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Feb 05 14:51:18 sellers-laptop dbus[369]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.Avahi.service' for details.
Feb 05 14:51:18 sellers-laptop dbus-daemon[369]: dbus[369]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.freedesktop.Avahi.service' for details.
I'm not sure what the error even means or how to go about debugging it.  Any suggestions would be appreciated.
Last edited by Feynman (2013-02-05 22:07:23)

NVM...didn't notice it was already solved.
Last edited by the sad clown (2013-02-05 22:33:10)

Similar Messages

  • [SOLVED] systemd: Failed to open private dbus connection

    Below is a snapshot from journalctl -b:
    systemd[1]: Starting user-1000.slice.
    systemd[1]: Created slice user-1000.slice.
    systemd[1]: Starting User Manager for 1000...
    systemd[1]: Starting Session 1 of user me.
    systemd[1]: Started Session 1 of user me.
    systemd-logind[195]: New session 1 of user me.
    systemd[261]: pam_unix(systemd-user:session): session opened for user me by (uid=0)
    systemd[261]: Failed to open private dbus connection: Failed to connect to socet /run/usr/1000/dbususer_bus_socket: No such file or directory
    systemd[261]: Mounted /sys/kernel/config.
    systemd[261]: Stopped target Bluetooth.
    systemd[261]: Stopped target Sound Card.
    systemd[261] Starting Default.
    systemd[261]: Reached target Default.
    systemd[261]: Startup finished in 135ms.
    systemd[1]: Started User Manager for 1000.
    login[199]: LOGIN ON tty1 BY me
    It's a fresh Arch Linux install and I didn't even had a time yet to tinker with systemd so it's unlikely that I've messed things up. I suspect that it might be the cause of the following problem:
    $ systemctl status --user
    Failed to issue method call: Process /bin/false exited with status 1
    For reference, systemd version:
    $ systemctl --version
    systemd 207
    +PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ
    Any ideas how can I solve the private dbus connection problem?
    Last edited by vox23 (2013-09-25 17:02:22)

    65kid wrote:do you actually experience any problems?
    I thought that it might be related to:
    $ systemctl status --user
    Failed to issue method call: Process /bin/false exited with status 1
    however when I followed wiki and created:
    $cat /etc/systemd/system/[email protected]/environment.conf
    [Service]
    Environment=DISPLAY=:0
    Environment=XDG_RUNTIME_DIR=/run/user/%I
    Environment=SHELL=%s
    then /bin/false error went away. I still have some problems with systemd managing my user session but unrelated to the above. Marking as solved.

  • [SOLVED] systemd/user interface not working

    I cannot use user service files, because systemctl gives me this error:
    $ systemctl --user status
    Failed to get D-Bus connection: No such file or directory
    It's been a while since I used a user service file, so I don't know when it started exactly.
    How can I further diagnose this? I've done everything in the wiki related pages, so I'm clueless right now...
    Thanks in advance
    Last edited by hermes (2014-04-20 17:24:31)

    t3kk3n wrote:I would verify dbus is running by 'ps aux | grep dbus' and, if so, check your logs in journalctl. You can grep journalctl using the '--no-pager' option if you desire, otherwise just use less/more. I'd look at the boot logs and see if it spit any errors out about creating the session, etc.
    Thanks for your reply!
    DBus is running. The following processes are active:
    /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    dbus-launch --sh-syntax --exit-with-session
    /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
    Here's the output of journalctl --this-boot --no-pager | grep -i dbus:
    apr 16 21:03:29 archlinux dbus[546]: [system] Activating systemd to hand-off: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
    apr 16 21:03:29 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.systemd1'
    apr 16 21:03:29 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
    apr 16 21:03:29 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.ColorManager'
    apr 16 21:03:29 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
    apr 16 21:03:30 archlinux dbus[546]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service'
    apr 16 21:03:30 archlinux dbus[546]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    apr 16 21:03:30 archlinux dbus[546]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
    apr 16 21:03:30 archlinux dbus[546]: [system] Successfully activated service 'org.bluez'
    apr 16 21:03:30 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
    apr 16 21:03:30 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.hostname1'
    apr 16 21:03:38 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service'
    apr 16 21:03:38 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.UPower'
    apr 16 21:03:38 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
    apr 16 21:03:38 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.UDisks2'
    apr 16 21:03:41 archlinux org.kde.kuiserver[2061]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 16 21:03:41 archlinux org.kde.kuiserver[2061]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 16 21:03:46 archlinux dbus[546]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service'
    apr 16 21:03:46 archlinux dbus[546]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
    apr 16 23:50:46 archlinux org.a11y.atspi.Registry[13309]: ** (at-spi2-registryd:13312): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    apr 17 12:05:00 archlinux dbus[546]: [system] Rejected send message, 2 matched rules; type="method_return", sender=":1.19" (uid=0 pid=2237 comm="/usr/lib/udisks2/udisksd --no-debug ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.20" (uid=1000 pid=2262 comm="kdeinit4: plasma-desktop [kdeinit] ")
    apr 17 16:50:15 archlinux dbus[546]: [system] Reloaded configuration
    apr 17 16:50:15 archlinux dbus[546]: [system] Reloaded configuration
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="error", sender=":1.24" (uid=1000 pid=2332 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="(unset)" member="(unset)" error name="org.bluez.MediaEndpoint1.Error.NotImplemented" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Rejected send message, 3 matched rules; type="method_return", sender=":1.37" (uid=1000 pid=2720 comm="/usr/lib/bluetooth/obexd ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.11" (uid=0 pid=1771 comm="/usr/lib/bluetooth/bluetoothd ")
    apr 17 16:52:06 archlinux dbus[546]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
    apr 17 16:52:07 archlinux dbus[546]: [system] Successfully activated service 'org.bluez'
    apr 18 12:26:24 archlinux org.gtk.vfs.Daemon[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.gtk.Private.GPhoto2VolumeMonitor[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.a11y.Bus[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.gtk.vfs.Daemon[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux org.gtk.Private.UDisks2VolumeMonitor[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux ca.desrt.dconf[2061]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.58': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-network: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.sleep-wake: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wifi: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wwan: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:24 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.33': no such name
    apr 18 12:26:33 archlinux org.kde.kuiserver[31022]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 18 12:26:33 archlinux org.kde.kuiserver[31022]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 18 12:26:38 archlinux org.a11y.atspi.Registry[31238]: ** (at-spi2-registryd:31241): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    apr 18 12:26:42 archlinux polkitd[1292]: Error converting subject to JS object: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.sleep-wake: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wifi: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wwan: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 18 12:26:42 archlinux NetworkManager[1247]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (3) GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get UID of name ':1.141': no such name
    apr 19 03:28:20 archlinux org.gtk.vfs.Daemon[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:28:20 archlinux org.a11y.Bus[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:28:20 archlinux org.gtk.Private.GPhoto2VolumeMonitor[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:28:20 archlinux org.gtk.Private.UDisks2VolumeMonitor[31022]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
    apr 19 03:30:18 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:18 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:24 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:24 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:40 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:41 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:41 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:42 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:51 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:51 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:51 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:54 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:55 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:30:55 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:37 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:31:39 archlinux dbus[546]: [system] Reloaded configuration
    apr 19 03:33:20 archlinux org.kde.kuiserver[23937]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    apr 19 03:33:20 archlinux org.kde.kuiserver[23937]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    I can't tell if these errors are significant regarding my issue though, they don't mean a lot to me.

  • '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

    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

  • [Solved] Systemd user service and timer dbus error

    I have installed arch recently and added a few of my own services, for example the acpi_call commands and such. Now I want to create a systemd service that runs every 5 minutes and execute a script.
    I searched a lot and I found that I must use timers. I got the thing with the timers working, but because my script has to do with a specific user, I want it to run only every 5 minutes when i am logged in as that user.
    I tried to put the files in /etc/systemd/users, .config/local/users and all the possibilities but everytime i want to enable it, it says dbus connection refused.
    Can somebody please provide me a way to execute a systemd service every 5 minutes while I am logged in as a specific user?
    I did follow the wiki and created a dbus service and all. Everything works on that side but i can't enable my user service.
    thanks!
    Last edited by nopemopes (2015-03-25 11:10:06)

    jasonwryan wrote:
    What errors are you getting? https://bbs.archlinux.org/viewtopic.php?id=57855
    Not a Sysadmin issue, moving to NC...
    sorry, didn't mean to be incomplete.
    The error says "Failed to get D-Bus connection: Connection refused".
    I did what the wiki said: Create the dbus files, enable them and such.
    No i put my service files + timer in the places mentioned by the wiki but everytime i try to enable them, that error shows up.
    systemctl status dbus gives me all good
    dbus.service - D-Bus System Message Bus
    Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: disabled)
    Active: active (running) since ma 2015-03-23 19:39:24 CET; 1h 18min ago
    Docs: man:dbus-daemon(1)
    Main PID: 246 (dbus-daemon)
    CGroup: /system.slice/dbus.service
    └─246 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='...ervice'
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1....ectory.
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='...ervice'
    mrt 23 19:39:34 Jordy-Laptop dbus[246]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1....ectory.
    mrt 23 19:39:39 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
    mrt 23 19:39:39 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    mrt 23 19:47:01 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
    mrt 23 19:47:01 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    mrt 23 20:51:38 Jordy-Laptop dbus[246]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='...ervice'
    mrt 23 20:51:38 Jordy-Laptop dbus[246]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
    that's the log for dbus and these are my files:
    drive_sync.service
    [Unit]
    Description=Drive sync
    [Service]
    Type=simple
    ExecStart=drive_script.sh
    drive_sync.timer
    [Unit]
    Description=Drive sync
    [Service]
    Type=simple
    ExecStart=drive_script.sh
    these files are located in ~/.config/systemd/user
    Last edited by nopemopes (2015-03-23 20:00:55)

  • Systemd-cgroups-agent[625]: Failed to get D-Bus connection

    On shutdown, or reboot this error appears:
    systemd-cgroups-agent[625]: Failed to get D-Bus connection: Failed to connect to socket /org/freedesktop/systemd1/private: Connection refused
    system is:
    Linux desktop 3.9.2-1-ARCH #1 SMP PREEMPT Sat May 11 21:11:14 CEST 2013 i686 GNU/Linux
    XFCE4 with SLIM

    https://bbs.archlinux.org/viewtopic.php?pid=1273875

  • Systemctl error: Failed to get D-Bus connection

    Problem migrating server to pure systemd. Unable to start stop or restart any of my enabled services.  Every command to systemctl except enable/disable results in:
    "Failed to get D-Bus connection: No connection to service manager."
    I dunno why enable/disable would work but not status, etc...
    Quick note on my environment:
    Arch installed on my remote server hosted by linode.com
    So, my only access is remote ssh.  This is purely a webserver/mailserver type box.
    Here's what I did so far:
    1) installed systemd and depys according to this guide https://wiki.archlinux.org/index.php/Systemd
    2) enabled all services from my rc.conf DAEMONS according to this guide: https://wiki.archlinux.org/index.php/Daemons_List
    systemctl enable {foo}.service
    3) removed initscripts with
    pacman -R initscripts
    and installed systemd-sysvcompat w/
    pacman -S systemd-sysvcompat
    4) rebooted
    5) I can confirm that "cat /proc/1/comm" does in fact output "systemd"
    Command " sudo ps aux | grep dbus " gives me:
    dbus 1781 0.0 0.2 3076 1352 ? Ss 12:33 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
    Command "netstat antp |grep dbus" give me:
    unix 3 [ ] STREAM CONNECTED 4414 /run/dbus/system_bus_socket
    unix 3 [ ] STREAM CONNECTED 4403 /run/dbus/system_bus_socket
    unix 3 [ ] STREAM CONNECTED 4401 /run/dbus/system_bus_socket
    unix 3 [ ] STREAM CONNECTED 4370 /run/dbus/system_bus_socket
    unix 3 [ ] STREAM CONNECTED 4369 /run/dbus/system_bus_socket
    I feel I'm almost there and must be missing something stupid...
    Please help
    Here's a list of services from /etc/systemd/system/multi-user.target.wants
    NetworkManager.service
    clamd.service
    dcron.service
    dovecot.service
    fail2ban.service
    freshclamd.service
    iptables.service
    nginx.service
    ntpd.service
    postfix.service
    postgrey.service
    remote-fs.target
    spamassassin.service
    spawn-fcgi-php.service
    sshd.service
    syslog-ng.service
    DAEMONS is the only variable in my rc.conf.  Here it is:
    DAEMONS=(syslog-ng iptables network netfs crond sshd ntpd fail2ban mysqld spamd postgrey dovecot postfix nginx spawn-fcgi-php clamav)
    systemd man page that: "systemd uses control groups to effectively keep track of processes. Control group information is maintained in the kernel, and is accessible via the file system hierarchy (beneath /sys/fs/cgroup/systemd/)"  I ran the command "findmnt | grep /sys/fs/cgroup" but it returns an empty result...
    Last edited by bx (2012-11-29 22:58:06)

    Solved! Had to update kernel. Solution was in /var/log/kernel.log all along:
    Nov 27 14:43:56 xxxx kernel: systemd[1]: CONFIG_CGROUPS was not set when your kernel was compiled. Systems without control groups are not supported. We will now sleep for 10s, and then continue boot-up. Expect breakage and please do not file bugs. Instead fix your kernel and enable CONFIG_CGROUPS. Consult http://0pointer.de/blog/projects/cgroups-vs-cgroups.html for more information.
    systemd man page that: "systemd uses control groups to effectively keep track of processes. Control group information is maintained in the kernel, and is accessible via the file system hierarchy (beneath /sys/fs/cgroup/systemd/)"  I ran the command
    findmnt | grep /sys/fs/cgroup
    but it returns an empty result...
    I did not see kernel version as a requirement anywhere in docs...
    To check your kernal version use command:
    uname -r
    From the main page https://wiki.archlinux.org/index.php/Systemd
    systemd is a system and service manager for Linux that ... uses socket and D-Bus activation for starting services ... keeps track of processes using Linux control groups ...
    From wikipedia http://en.wikipedia.org/wiki/Cgroups
    cgroups (control groups) is a Linux kernel feature to that was started in 2007 ... and merged to kernel version 2.6.24 ...
    I had problems w/ kernel 2.6.39 which turned out to be a deprecated kernal on my linode. My box had like 300+ days of uptime and never had a need to reboot before the change to systemd. Lucky for me, linode made it stupid easy to update the kernel and i was back on track. systemd is cool. worth the journey. thanks!
    Last edited by bx (2012-11-29 23:14:02)

  • Failed to get d-bus connection

    i just did a fresh install, following the installation guide. after reboot, i get to the grub menu, then start linux.
    after that i get the error message
    systemd-cgroups-agent(154): failed to get d-bus connection: faile (sic!)
    this message appears several times, then
    welcome to emergency mode (...)
    after login nothing works, i cannot even reboot, only get d-bus errors. have to hard reset the computer. fallback is the same. anyone know whats wrong?

    @ubunchu, if the system is unusable after login, how is the OP supposed to issue your suggested command?
    The part of ubunchu's response that makes the most sense to me is the chroot part, as it involves booting from live media to inspect.  I don't think you actually have to chroot to do this, but see about inspecting the journal from the live media.  Mount the rootfs (and var if applicable), then use journalctl's --directory= argument to point it to your mounted system's journal.  Otherwise, you could chroot into the system and use journalctl there.  But I am not sure if journalctl requires a running dbus.  If it does, you don't be able to see the journal.  (Okay, I just tested this, and it seems you can run journalctl from a chroot)

  • Failed to open a socket connection to the Authentication Manager

    Hello,
    When I use utcapture command, I get the error *�Failed to open a socket connection to the Authentication Manager�*.
    SO: Solaris 10 8/07
    SRSS: Sun Ray Server Software 4.0
    LAN Configuration
    Thanks.

    Since the question was also posted to the sunray-users alias, see http://www.filibeto.org/pipermail/sunray-users/2007-December/008281.html for the answer. (Which currently seems to be that the Sun Ray auth daemon was not running.)

  • [Solved] systemd-user-session: Best way to pass global ENV vars?

    Hey guys,
    So when using the [email protected] from the user-session-units what's the best / cleanest way to set global environment variables for that systemd --user instance (and thus, all programs spawned from it)?
    What I'm talking about is /etc/profile and $HOME/.profile.
    For example, I usally configure my XDG_CONFIG_HOME and XDG_CACHE_HOME in my ~/.profile. But since systemd --user is being started by systemd --session none of these environment variables are loaded.
    The solution I've come up is to change the ExecStart in the [email protected] file to something like this:
    ExecStart=/usr/bin/sh -c "source /etc/profile; source $HOME/.config/bash/environment; exec /usr/lib/systemd/systemd --user"
    I know I could use the `EnvironmentFile` option to load the environment variables from a file, but it's not as flexable as a bash script.
    Am I thinking about this problem wrong? Is there a more "systemd --user"-y way of solving the problem?
    Last edited by EvanPurkhiser (2013-08-12 03:02:48)

    I've more or less solved this using my own user-session units. I still don't know if my method would really be considered the proper way or not though.
    Last edited by EvanPurkhiser (2013-08-12 03:02:19)

  • [SOLVED] systemd/User, starting a Dependent service

    I am missing something simple here.  I have two services.  Once is dependent on the other.
    I got the first service to start with:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing - Open Source Continuous File Synchronization for %I
    Documentation=https://github.com/syncthing/syncthing/wiki
    After=network.target
    [Service]
    #User=%i
    Environment=STNORESTART=yes
    ExecStart=/usr/bin/syncthing -no-browser -logflags=0
    Restart=on-failure
    SuccessExitStatus=2 3 4
    RestartForceExitStatus=3 4
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    This autostarts upon logging in with i3 and gnome.  No problem (now).
    The problem I have is with the notifier/watcher:
    $ cat ~/.config/systemd/user/[email protected]
    [Unit]
    Description=Syncthing Inotify File Watcher for %I
    Documentation=https://github.com/syncthing/syncthing-inotify/blob/master/README.md
    After=network.target [email protected]
    [email protected]
    [Service]
    #User=%i
    ExecStart=/usr/bin/syncthing-inotify -logflags=0
    SuccessExitStatus=2
    Restart=on-failure
    ProtectSystem=full
    ProtectHome=read-only
    [Install]
    #WantedBy=multi-user.target
    WantedBy=default.target
    Installed it into my namespace, like I did with the parent service:
    $ systemctl --user enable [email protected]
    On system startup/login, the service is "Dead (inactive)."
    But, I can start it manually:
    $ systemctl --user start [email protected]
    And the status of the service shows it logging and working, picking up changes, etc.
    I must be missing a configuration parameter in the service file.
    Last edited by eduncan911 (2015-05-25 14:39:38)

    mauritiusdadd wrote:
    Just a shot in the dark, but try to change the After= and Requires= lines in [email protected] to
    After=network.target syncthing@%i.service
    Requires=syncthing@%i.service
    You know how you stay up late and everything you do right seems to be wrong?
    When I ran:
    systemctl status [email protected]
    ...it showed inactive (dead) and is the reason I made this thread. 
    Changed it to this:
    systemctl --user status [email protected]
    Allowed me to see it started.  *head smack*
    And btw, I tried "syncthing@%i.service" and it worked too!  I reverted back to "[email protected]" to verify %i fixed it, but it started as well as before.  So "%i" seems agnostic and would work as well.

  • [SOLVED] systemd boot fails - Removable on fstab

    Just converted to the dark (systemd) side.
    Very straight forward, simple and easy enough.
    I have one problem with boot process.
    I have three usb devices that i use frequently, below is my fstab
    # Removable Media
    UUID=6e4bc1aa-3414-48b9-9598-5eedfaadbe2b /media/FreeAgent1 ext4 defaults,user 0 0
    UUID=14219291-0703-45b6-95db-976c5b7c3b7b /media/FreeAgent2 ext4 defaults,user 0 0
    UUID=0590bbe0-d098-4f81-a9c7-c72654aa54a5 /media/Sandisk ext4 defaults,user 0 0
    USB devices at the moment arent on the pc.
    With init process, everything was fine.
    Boot process gave me prompt.
    With systemd, my archlinux box doesnt boot (at all)
    http://ebalaskas.gr/img/systemd_removeable.png
    Reading https://bbs.archlinux.org/viewtopic.php?id=146982 & http://lists.freedesktop.org/archives/s … 06292.html
    i get the feeling that perhaps is a bug.
    But i am not sure.
    The emergency mode (^D) doesnt work either - keyboard seemed dead.
    Used old transitional init=/bin/sh to comment out the removable devices from my fstab
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by ebal (2012-08-24 06:43:52)

    ebal wrote:
    Nothing is needed to be done to fstab file !
    it shouldnt
    it mustnt
    with the heck i must edit my fstab cause systemd doesnt have a proper function to timeout when there are devices that are not present at boot time !!!
    That dont even make sense.
    Thank you all for your answers but PLZ ... try to focus on the actual problem that systemd is failing to boot and not to fstab !
    btw from my first post i 've already mentioned that i commented out these entries just to boot with systemd.
    what is the problem with using nofail or noauto,x-systemd.automount? systemd does the right thing here, it tries to mount the device on boot and waits for it - it's just that the timeout is very long (afaik 90 seconds).
    the only reason this worked with initscripts is that afaik initscripts just tries to mount the device and won't wait for it if it isn't there, but instead just fails immediately. While this worked, it was still the wrong approach. You should have added noauto or nofail in the first place.

  • [Solved] Openbox-Message: Failed to open the display from the ....

    ArchLinuxForums_Suck wrote:
    Hey, I'm new to Arch and I've been working on setting it up on my Laptop and so far I haven't had very many problems save one.  I can't get any of the available Window Managers.  Whenever I try running them I get a message like:
    "wmii: fatal: Can't open display," or "Error: Couldn't connect to XServer" (Fluxbox), or "twm: unable to open display" or "dwm: cannot open display" or "Openbox-Message: Failed to open display from the DISPLAY environment variable,".  What am I supposed to do?  I've checked to see if it was a problem with my installation of Openbox by reinstalling that and installing several other window managers, and I've checked to see if it was a problem with me not having the right kernel modules loaded, but after I ran "hwdetect --load-modules," which is supposed to load all detectable modules, but even after that I still get the same messages.  Any ideas, I've tried just about everything that I know\have thought about, so yeah... any ideas? 
    ngoonee wrote:You'd need to provide us with details on your system. For example, what GPU are you using? hwdetect can be hit-and-miss sometimes.
    karol wrote:How exactly are you trying to run them? Are you trying to run them as root? Are you using .xinitrc? If so, post it.
    Boxes wrote:Uh... I try running them by typing: "openbox" or "twm" or "wmii" or "xinit openbox-session", and when I run "xinit" by itself, I get this:  ". . . (EE) Failed to load module 'glx' (module does not exist, 0), (EE) Failed to load module 'intel' (module dose not exist, 0), (EE) Failed to load module 'vesa' (module does not exist, 0), (EE) Failed to load module 'fbdev' (module does not exist, 0), (EE) No drives available."  Oh, and nGone I'm running an Intel Mobile 4 Chipset.  I don't have a GPU.  I just have an Intel Graphics Controller.
    Boxes wrote:Okay, well I got "xinit openbox" to work by searching for the "intel," "vesa," "fbdev," and "glx" packages via pacman and installing them.  I still can't run openbox without xinit, and I tried running "xinit wmii," but it didn't seem to work, although it did run, but I couldn't do anything.  It looked exactly the same was as "xinit openbox" did right after I installed "vesa," which was the first package I downloaded and installed via pacman.
    tomk wrote:
    You need to read a bit more about how X works - you can't run any window manager unless there's a X session for it to run on. That's why xinit works. Set up your ~/.xinitrc correctly and use startx.
    xinit wmii ran a wmii session, but I guess you didn't configure it at all - that's why you couldn't do anything. Again, more reading required.

    Oh, I see.  So an X-session is something that's required.  Oh, okay.

  • [SOLVED] systemd user unit for lsyncd

    After following the the systemd/User - Basic setup wiki article I have successfully setup user services for systemd.  I've also setup a systemd user "unit" to run lsyncd.  The user unit appears to start successfully based on the unit status shown below.  Only problem is lsyncd isn't running and I'm not seeing any relevant errors or info with journalctl.  If I run the script defined in ExecStart on the command line lsyncd starts as expected.  Any ideas or pointers?
    OUTPUT from "systemctl --user lsyncd.service":
    lsyncd.service - lsyncd
    Loaded: loaded (/home/maseone/.config/systemd/user/lsyncd.service; enabled)
    Active: inactive (dead) since Thu 2014-08-28 18:14:50 PDT; 21min ago
    Process: 630 ExecStart=/home/maseone/.lsyncd/start_lsyncd_simple.sh (code=exited, status=0/SUCCESS)
    Main PID: 630 (code=exited, status=0/SUCCESS)
    Aug 28 18:14:50 archie230x systemd[610]: Starting lsyncd...
    Aug 28 18:14:50 archie230x systemd[610]: Started lsyncd.
    UNIT for lsyncd:
    [Unit]
    Description=lsyncd
    [Service]
    ExecStart=/home/maseone/.lsyncd/start_lsyncd_simple.sh
    [Install]
    WantedBy=default.target
    SCRIPT defined in ExecStart:
    #! /bin/sh
    /bin/lsyncd -log all /home/maseone/.lsyncd/lsyncd.lua
    Last edited by maseone (2014-08-29 04:07:58)

    firecat53 wrote:
    Try changing the service type to forking instead of simple. Or look for an lsycd option that keeps it running in the foreground.
    Scott
    Thanks for the pointer, it worked!  After reading in detail the different types available "forking" does seem the most appropriate type for a daemon written as lsyncd.  I believe using an lsyncd option named "detach" would have worked with the "simple" type but forking seemd more appropriate in my case.
    Also as an update to my original post I have completely removed the use of the shell script and am now calling lsyncd directly in my defined systemd unit.  Also using the %h variable for the home directory now.
    REVISED unit file:
    [Unit]
    Description=lsyncd
    [Service]
    Type=forking
    ExecStart=/bin/lsyncd -log scarce %h/.lsyncd/lsyncd.lua
    [Install]
    WantedBy=default.target

  • [Solved] systemd/user : how to exit window manager & stop X?

    Solution: Jump to https://bbs.archlinux.org/viewtopic.php … 6#p1262166
    I have set up my system to user systemd units to start my environment (roughly following the wiki).
    My problem is that I cannot exit my window manager (using “io (exitWith ExitSuccess)” in Xmonad): the service file starting the WM (xmonad) stops/exits with success, but the xorg.service keeps
    running. I need to switch to TTY2, systemctl --user stop xorg.service by hand, then switch to TTY1, execute Ctrl-C, and then I finally get my login
    prompt back.
    This is a bit annoying, and I don't know how to fix it.
    Here are the relevant (I think) unit files:
    # xmonad.target
    [Unit]
    Description=XMonad
    Wants=xorg.target
    Wants=xinit.target
    Requires=dbus.socket
    AllowIsolate=true
    [Install]
    Alias=default.target
    # xmonad.service
    [Unit]
    Description=Starts Xmonad
    Before=xinitrc.target
    After=xorg.target
    Requires=xorg.target
    [Service]
    ExecStart=/usr/bin/xmonad
    Environment=DISPLAY=:0
    Restart=no
    [Install]
    WantedBy=xmonad.target
    RequiredBy=xorg.service
    As you can see, I have added the RequiredBy=xorg.service line at the bottom, hoping that if xmonad.service exits, so should xorg.service - but to
    no avail.
    What do I have to do in order to completely stop X and get my login prompt on TTY1 back?
    EDIT: I am of course using the user-session-units.
    Last edited by Stalafin (2013-04-22 13:54:45)

    I know it's an old thread (not really old) but I have the same problem. The question is your solution doesnt work with me. It just give me an error like this:
    Failed to issue method call: The name org.freedesktop.login1 was not provided by any .service files
    Failed to issue method call: Process /bin/false exited with status 1

Maybe you are looking for

  • LONG and stream is closed exception

    If I create 2 result sets from 2 different statements under the same connection, I get a stream already closed exception when I go to retrieve the results from the 2nd RS if the RS has a LONG column in it. That is, I fetch the results from RS1 OK and

  • Can I filter which emails are received?

    I'm only interested in getting email from a small group of people on my iPhone. IS there a best way of doing that? When I'm at home I'm fine checking all the other email I get daily. But on the smaller screen a lot of email can be harder to navigate

  • Mark TODOs in ABAP code

    Hi, often I need to hardcode something in the code, so to test it fast and knowing that I will have to replace this after it is generally working. In Java I used @TODO comments, so Eclipse would show them. Does such thing exist in ABAP? My other idea

  • I'm struggling to move video clips from my macbook pro to my ipad. a few play but most won't go over in the sync. What format do I need to clips to be in?

    Greetings. I'm attempting to sync video clips from my macbook pro to my ipad 2 without much success.  A few videos go over and the rest can't. What format do they need to be in?  Thanks for any help you can give.  JWA

  • Chart history explanation?

    Greetings, Perhaps I am thinking too much on this, or perhaps too little, but I am trying to figure out what chart history length is actually doing. For example.  I'm developing an app right now where I am monitoring 32 channels on a system at 10 Hz.