Ubuntu

Missing dependency on dbus

Reported by Jürgen Kreileder on 2010-10-23
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
computer-janitor (Ubuntu)
High
Barry Warsaw
Maverick
High
Barry Warsaw
Natty
High
Barry Warsaw

Bug Description

Binary package hint: computer-janitor

computer-janitor (2.0.4-0ubuntu1) seems to depend on dbus although it doesn't specify that. On a minimal maverick installation on a server I got "Cannot contact Computer Janitor dbus service; try again."

# computer-janitor find
Cannot contact Computer Janitor dbus service; try again.
# aptitude install dbus
[...]
# ERROR:dbus.proxies:Introspect error on :1.2:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=9209 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.2" (uid=0 pid=9211 comm="/usr/bin/python))
removable file:/etc/apache2/apache2.conf.dpkg-old
removable file:/etc/apache2/envvars.dpkg-old
[...]

(Not sure if the introspection error justifies another bug report)

SRU justification:

* This bug causes computer-janitor to be unusable in a minimal server install when the dbus package is missing, because the core functionality of c-j is in a dbus service
* Natty version 2.0.4-0ubuntu3 fixes the problem by adding an explicit dependency on dbus
* See attached branch for fix in development and stable versions.
* I'm unsure what could cause regressions, but it could be that servers that do not currently require dbus have some kind of breakage or unintended consequences when dbus is installed.

TEST CASE:
* Do a minimal server install of Maverick (install no extra services)
* apt-get install computer-janitor
$ computer-janitor find
^ This command will fail as shown above

Bharath Ramesh (krosswindz) wrote :

I am getting the same error. I just installed maverick server minimal install. The error I get is as follows

# computer-janitor find
Cannot contact Computer Janitor dbus service; try again.
# aptitude install dbus
<snip>
ERROR:dbus.proxies:Introspect error on :1.2:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.1" (uid=0 pid=1522 comm="/usr/bin/python) interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply=0 destination=":1.2" (uid=0 pid=1524 comm="/usr/bin/python))

Barry Warsaw (barry) wrote :

CJ depends on python-dbus, which depends on libdbus-1-3, but that does not seem to lead to a dependency on dbus specifically. CJ should explicitly depend on dbus.

Changed in computer-janitor (Ubuntu):
status: New → Confirmed
milestone: none → natty-alpha-2
assignee: nobody → Barry Warsaw (barry)
importance: Undecided → High
Changed in computer-janitor (Ubuntu Maverick):
status: New → Confirmed
status: Confirmed → Triaged
Barry Warsaw (barry) on 2011-01-12
Changed in computer-janitor (Ubuntu Maverick):
status: Triaged → Confirmed
assignee: nobody → Barry Warsaw (barry)
milestone: none → maverick-updates
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package computer-janitor - 2.0.4-0ubuntu3

---------------
computer-janitor (2.0.4-0ubuntu3) natty; urgency=low

  * debian/control: Add explicit dependency on dbus since depending on
    python-dbus does not yield an implicit dependency on dbus. (LP: #665740)
  * computerjanitord/authenticator.py: Explicitly convert start-time to a
    UInt64(0). Under Natty, implicit conversion uses a UInt32 which does
    not match the CheckAuthorization signature. (LP: #676488)
 -- Barry Warsaw <email address hidden> Thu, 13 Jan 2011 12:56:20 -0500

Changed in computer-janitor (Ubuntu Natty):
status: Confirmed → Fix Released
Barry Warsaw (barry) wrote :

This does not affect Lucid or earlier, as the dbus-based version was introduced in Maverick.

Barry Warsaw (barry) on 2011-01-19
description: updated
Barry Warsaw (barry) wrote :

Sorry ubuntu-security-sponsors, this was a mis-aimed click, not a security issue.

Barry Warsaw (barry) on 2011-01-20
Changed in computer-janitor (Ubuntu Maverick):
status: Confirmed → Fix Committed

Accepted computer-janitor into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Barry Warsaw (barry) wrote :

Confirmed fixed for maverick-proposed.

Martin Pitt (pitti) on 2011-01-27
tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package computer-janitor - 2.0.4-0ubuntu1.1

---------------
computer-janitor (2.0.4-0ubuntu1.1) maverick-proposed; urgency=low

  * debian/control: Add explicit dependency on dbus since depending on
    python-dbus does not yield an implicit dependency on dbus. (LP: #665740)
 -- Barry Warsaw <email address hidden> Wed, 19 Jan 2011 19:25:57 -0500

Changed in computer-janitor (Ubuntu Maverick):
status: Fix Committed → Fix Released
cybero2912 (cybero2912) wrote :

problem still there in version 2.0.4-0ubuntu1.1

system: Maverick (10.10) - all dependencies resolved and OK

error message: same as in first post

tags: added: testcase
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers