[Assist] systemctl --user status Failed to get D-Bus connection: Connection refused

Jorge Araya Navarro elcorreo at deshackra.com
Tue Apr 29 04:29:21 GMT 2014


El vie, 04-04-2014 a las 09:39 -0400, Luke Shumaker escribió:

> At Fri, 04 Apr 2014 01:26:35 -0600,
> Jorge Araya Navarro wrote:
> > Here:
> >         <(jorge at abril)---(vie abr 04 01:24:02)>
> >         [~][3] $ LC_ALL=C stat /run/user/1000/systemd/
> >         ...
> >         
> >         <(jorge at abril)---(vie abr 04 01:24:09)>
> >         [~][4] $ LC_ALL=C stat /run/user/1000/systemd/private
> >         ...
> > 
> > So far, so good... and so confuse! What could be going wrong here?
> 
> Did you also check that `systemctl --user status` was still giving you
> the D-Bus error message?  Also, if you had run `systemctl --user
> exit`, and haven't logged out since, it is still dissabled.
> 
> To clarify, when I say "log out", I mean log out of all user sessions.
> Verify that this was the case when you log back in by running
> `loginctl list-sessions`, and verifying that there is only one current
> session for your user.  It is possible that a background process is
> keeping an old session alive.  For example, I discovered that if I
> started X, then lxpanel would start menu-cached in the background,
> which would keep running and cause that session to persist even after
> I logged out.
> 
> > El jue, 03-04-2014 a las 23:27 -0400, Luke T.Shumaker escribió:
> > > At Thu, 03 Apr 2014 15:22:48 -0600,
> > > Jorge Araya Navarro wrote:
> > > > I followed the
> > > > instructions from Arch Linux wiki ( as read here
> > > > https://wiki.archlinux.org/index.php/Systemd/User ),
> > > 
> > > I'm not saying not to read that, there's some good stuff there, but on
> > > a scale of "garbage" to "quality documentation", that page is closer
> > > to the former.
> > 
> > Haha, very mean!
> 
> To be fair, it's because it's all changing so quickly.  There's
> "Setup" [for < 206], and "Setup since systemd 206"; BOTH of which
> contain information that is not true in systemd 212.  It's just hard
> to keep up, and update the entire page.
> 
> Basically, everything it says about setting up D-Bus is false.
> dbus.service/dbus.socket are now obsolete; this happens by default
> now.  The DBUS_SESSION_BUS_ADDRESS is now
> $XDG_RUNTIME_DIR/systemd/private instead of $XDG_RUNTIME_DIR/bus or
> $XDG_RUNTIME_DIR/dbus/user_bus_socket (both of which are mentioned in
> the "since 206" section).
> 
> That said, the DBUS_SESSION_BUS_ADDRESS environment variable should
> probably not be set.  With no value, everything should just find the
> correct address.  The systemd people are working to make this all
> simpler and not require these extra things, but sometimes that means
> yesterday's kludges break.
> 
> The variable is is set by /etc/X11/xinit/xinitrc.d/30-dbus, but that
> doesn't seem to mess anything up on my box.  If you are using a
> graphical login, the XDM or DE's session manager may be messing with
> D-Bus and actually mangaging to mess it up.  Try logging into a TTY
> when debugging this.
> 
> Happy hacking,
> ~ Luke Shumaker
> _______________________________________________
> Assist mailing list
> Assist at lists.parabolagnulinux.org
> https://lists.parabolagnulinux.org/mailman/listinfo/assist


Something that I cannot get working is the activation of the services
after I login into my session. I did `systemctl --user enable emacs`,
the next morning I turn on my computer and then login into my session
but emacs do not start!


        <(jorge at abril)---(lun abr 28 22:27:00)>
        [~][4] $ systemctl --user status
        ● abril
            State: running
             Jobs: 0 queued
           Failed: 0 units
            Since: lun 2014-04-28 09:33:26 CST; 12h ago
           CGroup: /user.slice/user-1000.slice/user at 1000.service
                   ├─1769 /usr/lib/systemd/systemd --user
                   └─1781 (sd-pam)  
        
        <(jorge at abril)---(lun abr 28 22:27:11)>
        [~][6] $ systemctl --user status emacs
        ● emacs.service - Emacs: the extensible, self-documenting text editor
           Loaded: loaded (/home/jorge/.config/systemd/user/emacs.service; enabled)
           Active: inactive (dead)
        
        <(jorge at abril)---(lun abr 28 22:27:30)>
        [~][7] $ 



What am I doing wrong?
-- 
Pax et bonum.
Jorge Araya Navarro.
Diseñador publicitario, programador Python/C++ y colaborador en Parabola
GNU/Linux-libre.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.parabolagnulinux.org/pipermail/assist/attachments/20140428/b0d38e4f/attachment.html>


More information about the Assist mailing list