All operations fail

Reported by Mihai Secasiu on 2011-04-30
130
This bug affects 25 people
Affects Status Importance Assigned to Milestone
jobservice
High
Unassigned
jobs-admin (Ubuntu)
Undecided
Unassigned

Bug Description

Nothing works whatever I try to do: stop/start service or apply changes after I enable or disable in some runlevels .
When I start jobs-admin from console I get this error:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/dbus/connection.py", line 589, in msg_reply_handler
    *message.get_args_list()))
  File "/usr/lib/pymodules/python2.7/JobsAdmin/__init__.py", line 290, 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'm running ubuntu 11.04 ( classic gnome, no unity )
jobs-admin 0.8, jobservice 0.8 . Also tried with jobservice 0.8.1 but I get the same error.

Changed in jobsadmin:
status: New → Confirmed
importance: Undecided → High
Colin Law (colin-law) wrote :

It is a bit of a nuisance this to say the least. It just does not work for me at all. Any suggestions on a workaround or is more information needed to diagnose the problem?

Mihai Secasiu (mihai-patchlog) wrote :

Here's a patch for JobService/policy.py that fixes this problem.

Jacob Peddicord (jpeddicord) wrote :

Thanks! Applied to git master.

I apologize for my silence again on these issues; life has been taking over. I'll try to get some stuff done with jobservice/jobs-admin soon. Currently I'm trying to migrate the projects to GitHub; including issue tracking. In the meantime, if you know of anyone interested in development, send 'em my way. ;)

affects: jobsadmin → jobservice
Changed in jobservice:
status: Confirmed → Fix Committed

i waited for Ubuntu 11.10 (i assumed that it will be fixed there).
this is the recent output:

> jobs-admin
No module named pkit
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

it does not seem to be fixed....

Serhiy Zahoriya (xintx-ua) wrote :

Will the fix be released? :)

Serhiy Zahoriya (xintx-ua) wrote :

Also, patch didn't fix the issue for me.
I have the same output as Alexander.

postadelmaga (postadelmaga) wrote :

same problem on 12.04 64bit

postadelmaga (postadelmaga) wrote :

I have applied the patch on 12.04 but still get the same error message:

Error parsing unix-process subject: Value for key `start-time' found but is of type i and type t was expected

postadelmaga (postadelmaga) wrote :

Sorry for last comment, the patch worked for me !

Colin Law (colin-law) wrote :

Is there a liklyhood of this being release? The fix was committed 10 months ago.

Bernd Kreuss (prof7bit) wrote :

When will this bug be fixed, why is it so complicated? After all its the the *only* bug of this package and without fixing it you could just as well remove it from ubuntu entirely.

Is there any workaround, any alternative? Maybe a ppa with a fixed version?

I have the same issue in Ubuntu 12.04, will try to apply the fix, I will let you know guys

Marlin Forbes (datashaman) wrote :

Solution is as follows IMO:

1. Apply the above patch to the source file in your system. On mine, it's at /usr/share/pyshared/JobService/policy.py. If you are doing the patch manually, notice that it's 2 lines that need changing, an import and the use of the import.

2. Reinstall jobs-admin with: sudo aptitude reinstall jobs-admin. This is to ensure that any compiled Python files notice the new code. Not terribly sure if this is necessary.

3. D-BUS needs to be restarted to use the new code, which is not a great idea in a session, so restart your computer instead and the changes should now be active.

Marlin Forbes (datashaman) wrote :

I am on Precise 64-bit.

Download full text (5.5 KiB)

Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04
Codename: raring

jobs-admin:
  Installato: 0.8.0-0ubuntu4
  Candidato: 0.8.0-0ubuntu4
  Tabella versione:
 *** 0.8.0-0ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ raring/universe i386 Packages
        100 /var/lib/dpkg/status

form terminal, if i run with

gksudo jobs-admin

it doesn't start and get me no command errors

I run it with gksudo -k jobs-admin it run but seems it doesn't change any services start value (the checkboxes are working)
and on close i get:

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 290, 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 290, 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 290, 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 290, 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 290, 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 199, in error
    raise e
dbus.exceptions.DBusException: org.freedesktop.PolicyKit1.Error.Fail...

Read more...

Andreas Glaeser (aglaeser1) wrote :

I filed a duplicate of this here:
https://bugs.launchpad.net/bugs/1100204
As a workaround you can always use the package 'sysv-rc-conf' this worked on XUbuntu 12.04.1

papukaija (papukaija) wrote :

I opened the Ubuntu task to avoid duplicate bug reports being created.

summary: - all operations fail
+ All operations fail

The attachment "set the correct type ( UInt64 ) for start-time" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
papukaija (papukaija) on 2013-06-15
tags: added: precise
removed: patch
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in jobs-admin (Ubuntu):
status: New → Confirmed
Bernd Kreuss (prof7bit) wrote :

since it looks like this is unmaintained (otherwise the maintainer would have noticed already during the last few years that this program does not work at all) Ubuntu could just as well remove the entire jobs-admin package from its repository because whats the point in having a 100% broken program in the repositories? </rant>

Does anybody know any alternative (should work with old-fashioned rc scripts *and* the new init jobs)? Or is there a ppa somewhere that contains a working version of this program?

@Bernd: as Andreas pointed out in comment #16 the sysv-rc-conf package might be a good substitute even if it's not 100% the same technically and it runs in the console.

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

Other bug subscribers