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

Bug #849037 reported by Max Green
214
This bug affects 32 people
Affects Status Importance Assigned to Milestone
oneconf (Ubuntu)
Fix Released
High
Didier Roche-Tolomelli

Bug Description

,,

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: oneconf 0.2.6.1
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
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
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

Revision history for this message
Max Green (very-crazy) wrote :
affects: ubuntu → oneconf (Ubuntu)
tags: removed: need-duplicate-check
Revision history for this message
Didier Roche-Tolomelli (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

Changed in oneconf (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in oneconf (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Unmarking as private.

visibility: private → public
Revision history for this message
Ian Nicholson (imnichol) wrote :

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

Changed in oneconf (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Ian Nicholson (imnichol) wrote :

Here is the requested file

Changed in oneconf (Ubuntu):
importance: Undecided → High
assignee: nobody → Didier Roche (didrocks)
Revision history for this message
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.

https://translations.launchpad.net/ubuntu/precise/+source/oneconf/+pots/oneconf/zh/+translate

https://translations.launchpad.net/ubuntu/precise/+source/oneconf/+pots/oneconf/zh_TW/+translate

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

Revision history for this message
Jonas Eberle (jonas-eberle) wrote :

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

Revision history for this message
Stig Endresen (stig-ragnar-endresen) wrote :

This bug also affect

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu precise (development branch)"

Revision history for this message
Didier Roche-Tolomelli (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] https://launchpad.net/bugs/948691
   ubot2 | Launchpad bug 849037 in oneconf "oneconf-service crashed with ValueError in raw_decode(): No JSON object could be decoded" [High,Confirmed] https://launchpad.net/bugs/849037
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

Changed in oneconf (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
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

Revision history for this message
Didier Roche-Tolomelli (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?).

Revision history for this message
JG (jdogzz-g5) wrote :

Happened to me after a system resume.

Changed in oneconf (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.