All operations fail

Bug #774206 reported by Mihai Secasiu
130
This bug affects 26 people
Affects Status Importance Assigned to Milestone
jobservice
Fix Committed
High
Unassigned
jobs-admin (Ubuntu)
Confirmed
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.

Tags: precise
Changed in jobsadmin:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
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?

Revision history for this message
Mihai Secasiu (mihai-patchlog) wrote :

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

Revision history for this message
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
Revision history for this message
Alexander Exner (alexander-exner) wrote :

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....

Revision history for this message
Serhiy (xintx-ua) wrote :

Will the fix be released? :)

Revision history for this message
Serhiy (xintx-ua) wrote :

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

Revision history for this message
postadelmaga (postadelmaga) wrote :

same problem on 12.04 64bit

Revision history for this message
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

Revision history for this message
postadelmaga (postadelmaga) wrote :

Sorry for last comment, the patch worked for me !

Revision history for this message
Colin Law (colin-law) wrote :

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

Revision history for this message
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?

Revision history for this message
octavio bernal quiroz (poisonman-1) wrote :

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

Revision history for this message
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.

Revision history for this message
Marlin Forbes (datashaman) wrote :

I am on Precise 64-bit.

Revision history for this message
marcobra (Marco Braida) (marcobra) wrote :
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...

Revision history for this message
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

Revision history for this message
papukaija (papukaija) wrote :

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

summary: - all operations fail
+ All operations fail
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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)
tags: added: precise
removed: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in jobs-admin (Ubuntu):
status: New → Confirmed
Revision history for this message
agsola (78luphr0rnk2nuqimstywepozxn9kl19tqh0tx66b5dki1xxsh5mkz9gl21a5rlwfnr8jn6ln0m3jxne2k9x1ohg85w3jabxlrqbgszpjpwcmvkbcvq9spp6z3w5j1m33k06tlsfszeuscyt241haso-944w9zxj9-a811i2i3ytqlsztthjth0svbccw8inm65tmkqp9sarr553jq53in4xm1m8wn3o4rlwaer06ogwvqwv9mrqoku2x334n7di44o65qze67n1wneepmidnuwnde1rqcbpgdf70gtqq2x9thj5tlcsac12a) wrote :

I got the same problem.

Yet, no solution.

Fresh Ubuntu 13.04 just installed. No working at all.

Revision history for this message
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?

Revision history for this message
Attila Fülöp (fulopattila122) wrote :

@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.

Revision history for this message
g_k (g-k) wrote :

I am running Kubuntu 17.10 and still have the same Bug:

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 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

Revision history for this message
Colin Law (colin-law) wrote :

@g_k basically it appears that jobs-admin does not work, and has not worked for years, so better just use something else.

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.