You are not logged in.

#1 2012-10-04 18:51:08

tladuke
Member
Registered: 2009-07-23
Posts: 176

systemd/systemctl not working quite completely... [solved]

I wouldn't even really notice except for it's working so well on a different machine...

If I try to run systemctl as a non-root user it hangs for about 10 seconds and comes back with

% systemctl --failed
Failed to issue method call: Connection was disconnected before a reply was received

systemd-analyze won't run either

 % sudo systemd-analyze blame
Traceback (most recent call last):
  File "/usr/bin/systemd-analyze", line 309, in <module>
    verb.get(args[0], unknown_verb)()
  File "/usr/bin/systemd-analyze", line 108, in blame
    data = acquire_time_data()
  File "/usr/bin/systemd-analyze", line 11, in acquire_time_data
    manager = dbus.Interface(bus.get_object('org.freedesktop.systemd1', '/org/freedesktop/systemd1'), 'org.freedesktop.systemd1.Manager')
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Disconnected: Connection was disconnected before a reply was received

I do have the opt-depends installed. (python2-cairo:and python2-dbus)

Not sure what to look for next.

Last edited by tladuke (2012-10-05 06:42:13)

Offline

#2 2012-10-04 19:47:02

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: systemd/systemctl not working quite completely... [solved]

Is dbus running?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2012-10-04 19:58:24

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: systemd/systemctl not working quite completely... [solved]

yeah

dbus.service              loaded active     running         D-Bus System Message Bus
dbus.socket               loaded active     running         D-Bus System Message Bus Socket

Offline

#4 2012-10-04 22:55:00

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: systemd/systemctl not working quite completely... [solved]

 # gdbus introspect --system --dest org.freedesktop.systemd1 --object-path /org/freedesktop/systemd1
Error connecting: Could not connect: No such file or directory

Offline

#5 2012-10-04 23:09:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: systemd/systemctl not working quite completely... [solved]

Look at the optdeps for systemd and install them.

Offline

#6 2012-10-04 23:29:22

Morrad
Member
Registered: 2012-01-18
Posts: 54

Re: systemd/systemctl not working quite completely... [solved]

@tladuke:

You've rebooted your machine since installing systemd (and are actually using it rather than sysvinit currently), correct?  systemctl won't work unless systemd has been started.

Offline

#7 2012-10-05 03:29:54

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: systemd/systemctl not working quite completely... [solved]

rebooted many times

% ps -p 1 -o comm=
systemd

systemctl works as root

systemd-analyze does not work at all

I already have the optdeps

I see this in journactl too:

Oct 04 21:44:38 ltv systemd[1]: Failed to start Login Service.

and it takes like 10 seconds to log in

but status looks fine
edit: or it's restarting over and over again about every 30 seconds?

 sudo systemctl status systemd-logind
systemd-logind.service - Login Service
          Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
          Active: activating (start) since Thu, 04 Oct 2012 21:47:59 -0700; 3s ago
            Docs: man:systemd-logind.service(8)
                  man:logind.conf(5)
                  http://www.freedesktop.org/wiki/Software/systemd/multiseat
        Main PID: 3993 (systemd-logind)
          CGroup: name=systemd:/system/systemd-logind.service
                  └ 3993 /usr/lib/systemd/systemd-logind

Last edited by tladuke (2012-10-05 05:17:19)

Offline

#8 2012-10-05 06:41:25

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: systemd/systemctl not working quite completely... [solved]

umm

somehow I had never deleted/symlinked /var/run and /var/lock

argh

http://www.archlinux.org/news/filesyste … equired-1/

Offline

Board footer

Powered by FluxBB