oneconf-service crashed with ValueError in raw_decode(): No JSON object could be decoded

Bug #849037 reported by Max Green on 2011-09-13
This bug affects 32 people
Affects Status Importance Assigned to Milestone
oneconf (Ubuntu)
Didier Roche

Bug Description


ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: oneconf
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
Uname: Linux 3.0.0-10-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.22.1-0ubuntu2
Architecture: i386
Date: Tue Sep 13 20:26:52 2011
EcryptfsInUse: Yes
ExecutablePath: /usr/share/oneconf/oneconf-service
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/share/oneconf/oneconf-service
 PATH=(custom, no user)
PythonArgs: ['/usr/share/oneconf/oneconf-service']
SourcePackage: oneconf
Title: oneconf-service crashed with ValueError in raw_decode(): No JSON object could be decoded
UpgradeStatus: Upgraded to oneiric on 2011-09-03 (9 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Max Green (very-crazy) wrote :
affects: ubuntu → oneconf (Ubuntu)
tags: removed: need-duplicate-check
Didier Roche (didrocks) wrote :

Thanks for reporting this bug and help to make ubuntu better.
It seems you have some corrupted files in your home directory, can you please open ~/.cache/oneconf/<a_long_id>/host and attach this file here?
Thanks a lot

Didier Roche (didrocks) on 2011-09-21
Changed in oneconf (Ubuntu):
status: New → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for oneconf (Ubuntu) because there has been no activity for 60 days.]

Changed in oneconf (Ubuntu):
status: Incomplete → Expired
Jeremy Bicha (jbicha) wrote :

Unmarking as private.

visibility: private → public
Ian Nicholson (imnichol) wrote :

Occurs when running update manager on most up-to-date 12.04alpha.

Changed in oneconf (Ubuntu):
status: Expired → Confirmed
Ian Nicholson (imnichol) wrote :

Here is the requested file

Didier Roche (didrocks) on 2012-01-16
Changed in oneconf (Ubuntu):
importance: Undecided → High
assignee: nobody → Didier Roche (didrocks)
HaruSiga77 (tolkien-world) wrote :

I thought it may have something to do with interference between synaptic and software-center. Does anyone else have synaptic installed? Or could it be that I have the Chinese language pack installed?

Here's the translate pages for oneconf, though I doubt everyone here has multiple language packs.

Hope this helps Roche 先生! (Mr。Roche)d(^_^)b

Jonas Eberle (jonas-eberle) wrote :

apt-get update produces the bug on 12.04 when started the first time

This bug also affect

DISTRIB_DESCRIPTION="Ubuntu precise (development branch)"

Didier Roche (didrocks) wrote :

From an irc discussion, will look at that soon:

didrocks | tjaalton: about bug #948691, (you commented on a dup) you tell that you got that quite regularly
   ubot2 | Launchpad bug 948691 in oneconf "oneconf-service crashed with ValueError in raw_decode(): No JSON object could be decoded (dup-of: 849037)" [High,Confirmed]
   ubot2 | Launchpad bug 849037 in oneconf "oneconf-service crashed with ValueError in raw_decode(): No JSON object could be decoded" [High,Confirmed]
didrocks | tjaalton: I would need your ~/.cache/oneconf content please :)
tjaalton | didrocks: yes, every time I resume from suspend
tjaalton | well, not every time, but almost
didrocks | tjaalton: it's when you got an upgrade or you install/remove a new package
didrocks | one of your file should be corrupted
didrocks | I would be interested to understand how and check it's the case :)
tjaalton | didrocks: so it's the package_list_$foo then?
didrocks | tjaalton: one of the files (can be the host one as well) is corrupted and not jsonified
didrocks | tjaalton: if you can pack that to me, I would interested :)
tjaalton | uhm no, 'host' looks weird
tjaalton | sure
didrocks | tjaalton: they all should be json
tjaalton | looks messed up to me
tjaalton | compared to my desktop
tjaalton | package_list is binary
didrocks | if not, someting bad happened (maybe I don't for this file write somewhere else and mv it…)didrocks | tjaalton: shouldn't be as well
didrocks | tjaalton: so yeah, it seems that when it was saving, something happened :)
tjaalton | didrocks: looks like it was over a month ago
tjaalton | judging from the timestamps
didrocks | tjaalton: it's when you start getting the crash I guess :)
tjaalton | yes, likely
didrocks | tjaalton: ok, so you confirm you have a corrupted files, if you can send them to me, I can put that in the testsuite ;)
  seb128 | pitti, ok, you dropped the patch
didrocks | I need two things: 1. try to ensure I don't get some corruption by mv 2. maybe remove the data if I get some and recreating them

Didier Roche (didrocks) on 2012-03-29
Changed in oneconf (Ubuntu):
status: Confirmed → In Progress
Anthony Lenton (elachuni) wrote :

Bit me too recently, but in my case I had manually removed ~/.cache entirely -- it's just a cache, we can do that, right? :D

Didier Roche (didrocks) wrote :

@Anthony: right, it's a cache, the only think you can loose eventually is the information that you share you current "sharing state" (do you share that computer or not?).

JG (jdogzz-g5) wrote :

Happened to me after a system resume.

Didier Roche (didrocks) on 2012-04-10
Changed in oneconf (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oneconf - 0.2.8

oneconf (0.2.8) precise; urgency=low

  [ Michael Vogt ]
  * Fix software-center crashed with KeyError in get_hostid_pending_change()
    (LP: #941193)

  [ Didier Roche ]
  * Move saving facility to an utils module to reuse safe saving accross
    the whole application. Removed a deprecated call as well
    (LP: #944738, #842198)
  * Recover gracefully if any of the json file is broken (LP: #849037)
  * Fix turning off oneconf is USC doesn't work (LP: #964659)
  * oneconf-service crashed with KeyError in check_if_refresh_needed():
    'packages_checksum' (LP: #940710)
  * Added/Enhanced tests for all the above
  * debian/control:
    - Bump Standards-Version: to latest
 -- Didier Roche <email address hidden> Tue, 10 Apr 2012 15:11:17 +0200

Changed in oneconf (Ubuntu):
status: Fix Committed → Fix Released
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers