Python Traceback on every action

Bug #917738 reported by Olivier Blondel
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
jobs-admin
New
Undecided
Unassigned

Bug Description

I am running Ubuntu 11.10 upgraded from previous versions.
I Installed the application via "aptitude install jobs-admin"

It starts nicely exept for the missing pkit module.

Very few services are displayed, I have to enable the
"show protected jobs" to see most of the sysV services.

But NONE of the upstart services seems to be listed ???

==> No error messages output to the console until here.

But now, if I click on a service I can get this kind of traceback (not always)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 168, in show_job_info
    self.show_settings()
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 246, in show_settings
    tbl = SettingsTable(self.active_job, self.active_index, self.infomanager)
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/settings.py", line 33, in __init__
    gtk.Table.__init__(self, len(self.settings) + 1, 2)
TypeError: object of type 'NoneType' has no len()

And EVERY time I try to change the settings, I get:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 589, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 199, in error
    raise e
dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Error parsing unix-process subject: Value for key `start-time' found but is of type i and type t was expected

Am I the only one to experience those troubles ?

Revision history for this message
Mélodie (meets) wrote :
Download full text (9.4 KiB)

Hi,
I am running a spin of Ubuntu 12.04 which I have been building for several months now and which is pretty stable and works well according to feedback and to my own experience. It is fully up to date and I have been trying to get jobs-admin to work several times in Ubuntu Precise (in this version and also other ones such as Lubuntu and Xubuntu which I happen to boot once a while).

Here is another testimonial related to this issue:
http://beta.linuxvillage.net/index.php/topic,297.msg2196.html#msg2196

I can't get jobs-admin to change anything in the services started, be it as simple user or by starting it from console with gksu.

Here is what I get when starting it from a console:
**************
$ jobs-admin
No module named pkit
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 232, in error
    raise e
dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Error parsing unix-process subject: Value for key `start-time' found but is of type i and type t was expected
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 607, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/python2.7/dist-packages/JobsAdmin/__init__.py", line 232, in error
    raise e
dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Failed: Error getting subject: Error parsing unix-process subject: Value for key `start-time' found but is of type i and type t was expected

**************

I think something is wrong with jobs-admin... not sure exactly what?

Here are the services listed in /etc/init:

**************
melodie@vbox:/etc/init$ ls
acpid.conf network-interface-container.conf
alsa-restore.conf network-interface-security.conf
alsa-store.conf network-manager.conf
anacron.conf passwd.conf
apport.conf plymouth.conf
atd.conf plymouth-log.conf
binfmt-support.conf plymouth-splash.conf
console.conf plymouth-stop.conf
console-setup.conf plymouth-upstart-bridge.conf
container-detect.conf procps.conf
control-alt-delete.conf rc.conf
cron.conf rcS.conf
cryptdisks-enable.conf rc-sysinit.conf
cryptdisks-udev.conf resolvconf.conf
dbus.conf rfkill-restore.conf
dmesg.conf rfkill-store.conf
failsafe.conf rsyslog.conf
flush-early-job-log.conf setvtrgb.conf
friendly-recovery.conf shutdown.conf
hostname.conf tty1.conf
hwclock.conf tty2.conf
hwclock-save.conf tty3.conf
hybrid-gfx.conf tty4.conf
irqbalance.conf tty5.conf
module-init-tools.conf tty6.conf
mountall.conf udev.conf
mountall-net.conf udev-fallback-graphics.conf
mountall-reboot.conf udev-finish.conf
mountall-shell.conf udevmonitor.conf
mounted-debugfs.conf udevtrigger.conf
mounted-dev.conf ufw.conf
mounted-proc.conf upstart-socket-bridge.conf
mounted-...

Read more...

Revision history for this message
Mélodie (meets) wrote :

PS:
****************************
$ apt-cache show jobservice
Package: jobservice
Priority: optional
Section: universe/admin
Installed-Size: 231
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Jacob Peddicord <email address hidden>
Architecture: all
Version: 0.8.0-0ubuntu3
Depends: python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), dbus
Suggests: jobs-admin
Filename: pool/universe/j/jobservice/jobservice_0.8.0-0ubuntu3_all.deb
Size: 28056
MD5sum: 9d71847d68af309888ff34f3b5416f82
SHA1: 3b3bd140b5f537bb15fdde52fd6d0c910d433197
SHA256: 2ef60f80bba3258dca9346dbd384a8f65c1987d6c25d8939853225fec34f52a9
Description-en: system job management daemon
 jobservice is a system daemon that is accessible over DBus, providing
 methods for controlling jobs (services) on a system using Upstart 0.6
 or a plain System V boot.
 .
 It is likely used in conjunction with jobs-admin, the GTK+ interface used
 to manage the jobs.
Homepage: https://launchpad.net/jobservice
Description-md5: 8472297a214f16e2e4c023943a79c2de
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

****************************

https://bugs.launchpad.net/jobsadmin/+bug/705158/comments/12

wasn't this 0.8.1 supposed to hit the current repositories a while ago?

Revision history for this message
Nathan Laville (nathan-laville) wrote :

Hi, just to mention
that the bug is still there in 2015 in my ubuntu 14.04 (upgraded from 10.10)
Is the project dead ?
I have tested with success Bum which does the same thing http://doc.ubuntu-fr.org/bum
Chears

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.