initctl failing with unhandled dbus error

Bug #990636 reported by Jeremy Yoder
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

Upgrading from 10.04 to 12.04 I noticed a lot of package install failures. All of them share this error:

--------------
initctl: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

initctl:dbus_error.c:69: Unhandled error from nih_dbus_error_raise: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Aborted
--------------

I can reproduce this error just by trying to run an upstart-converted start script:
$ /etc/init.d/ssh start

The error appears to trace to here in /lib/init/upstart-job:

--------------
+ initctl show-config+ -e ssh
grep -q ^ start on
initctl: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

initctl:dbus_error.c:69: Unhandled error from nih_dbus_error_raise: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Aborted
--------------

I can run initctl show-config by hand and I get the error too:
--------------
$ initctl show-config
mountall-net
initctl: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

initctl:dbus_error.c:69: Unhandled error from nih_dbus_error_raise: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

Aborted
--------------

So far I can't tell if this is affecting anything negatively since I haven't rebooted yet.

Revision history for this message
Jeremy Yoder (jyoder) wrote :

The answer is yes, it completely messed up a whole bunch of things. I manually managed to get to a working state but I most likely need to do a fresh install at this point.

Because one of the packages that failed was initramfs-tools, and because I apparently had casper installed (courtesy of remastersys, which I used to create a backup before I upgraded) it's possible this bug is related to bug #984276

Revision history for this message
James Hunt (jamesodhunt) wrote :

@Jeremy - thank you for reporting this issue and helping to make Ubuntu better.

The problem you have seen with 'initctl' should not cause the upgrade to fail, however it will stop services that were running prior to the upgrade to be automatically started *as part of the upgrade*. In other words, a reboot will result in your system running the latest version of Upstart and the problem will be resolved.

To restart ssh in your example, simply use the native Upstart method rather than the SystemV "helper":

  restart ssh

It does indeed sound like the problems on your system are primarily caused by having casper installed.

Revision history for this message
Emgee (eking-x) wrote :

I just had the exact same error...

My Fix:
- edit init config file
- find "console log" and change to "console output"

Start job, works

Hope it helps

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.