won't run - dbus permissions error

Bug #349321 reported by Jim Louvau
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I tried to run checkbox-gtk (0.7) after upgrading from 8.10 to 9.04 beta and it won't launch. Run from the command line gives:

Traceback (most recent call last):
  File "/usr/share/checkbox/run", line 40, in <module>
    main()
  File "/usr/share/checkbox/run", line 35, in main
    application = manager.create_application(sys.argv)
  File "/usr/lib/python2.6/dist-packages/checkbox/application.py", line 153, in create_application
    return self.application_factory(config)
  File "/usr/lib/python2.6/dist-packages/checkbox/application.py", line 70, in __init__
    self.reactor, self.registry)
  File "/usr/lib/python2.6/dist-packages/checkbox/plugin.py", line 41, in __init__
    module.register(self)
  File "/usr/share/checkbox/plugins/backend_manager.py", line 65, in register
    self.dbus_name = dbus.service.BusName(self.DBUS_BUS_NAME, self.bus)
  File "/var/lib/python-support/python2.6/dbus/service.py", line 129, in __new__
    retval = bus.request_name(name, name_flags)
  File "/var/lib/python-support/python2.6/dbus/bus.py", line 306, in request_name
    'su', (name, flags))
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 622, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.204" is not allowed to own the service "com.ubuntu.checkbox" due to security policies in the configuration file

Revision history for this message
j.scott.gwin@gmail.com (j.scott.gwin) wrote :

Thank you for reporting this problem, it helps make ubuntu better. Confirmed.

Changed in checkbox:
status: New → Confirmed
Changed in checkbox (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Lamech (lanavelino+ubuntu) wrote :

I am encountering this problem too. It makes System Testing (System -> Administration) unusable.

Traceback (most recent call last):
  File "/usr/share/checkbox/run", line 40, in <module>
    main()
  File "/usr/share/checkbox/run", line 35, in main
    application = manager.create_application(sys.argv)
  File "/usr/lib/python2.6/dist-packages/checkbox/application.py", line 153, in create_application
    return self.application_factory(config)
  File "/usr/lib/python2.6/dist-packages/checkbox/application.py", line 70, in __init__
    self.reactor, self.registry)
  File "/usr/lib/python2.6/dist-packages/checkbox/plugin.py", line 41, in __init__
    module.register(self)
  File "/usr/share/checkbox/plugins/backend_manager.py", line 65, in register
    self.dbus_name = dbus.service.BusName(self.DBUS_BUS_NAME, self.bus)
  File "/var/lib/python-support/python2.6/dbus/service.py", line 129, in __new__
    retval = bus.request_name(name, name_flags)
  File "/var/lib/python-support/python2.6/dbus/bus.py", line 306, in request_name
    'su', (name, flags))
  File "/var/lib/python-support/python2.6/dbus/connection.py", line 622, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.73" is not allowed to own the service "com.ubuntu.checkbox" due to security policies in the configuration file

Revision history for this message
Leperous (scabin) wrote :

I get the same error too, can't run it from the admin menu or through a terminal.

But, it seems to work fine if you run it with admin priveleges, e.g. "sudo checkbox-gtk".

Revision history for this message
Rob Buurman (rob-buurman) wrote :

checkbox-gtk works fine if it has admin priveleges.
But in Ubuntu 9.04 RC it is started with "/usr/bin/checkbox-gtk" and fails to start.

This is simple to fix by adding gksu to the command string.
Use "gksu /usr/bin/checkbox-gtk" and it will start after you have given the password.
(You can change this with the menu option: System, Preferences, Main Menu)

Revision history for this message
David Murphy (schwuk) wrote :

Please don't "fix" Checkbox by using sudo/gksu. Checkbox is no longer meant to run with root privileges. Instead please apply the fix as detailed in bug 344916, reinstall the package using Synaptic, or wait for 0.7.2 to be released through the SRU process which will address both bug 359440 and bug 344916.

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.