software-center crashed with DatabaseCorruptError in __init__() (when the xapian db is corrupted)

Bug #441847 reported by grimko on 2009-10-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)

Bug Description

Binary package hint: software-center

Fresh install of Ubuntu 9.10 Beta in French.

ProblemType: Crash
Architecture: i386
Date: Sun Oct 4 01:54:47 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/software-center/software-center
InterpreterPath: /usr/bin/python2.6
NonfreeKernelModules: nvidia
Package: software-center 0.4.4
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
 PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with DatabaseCorruptError in __init__()
Uname: Linux 2.6.31-11-generic i686

grimko (grimko) wrote :
tags: removed: need-duplicate-check
Michael Vogt (mvo) on 2009-10-06
Changed in software-center (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
summary: - software-center crashed with DatabaseCorruptError in __init__()
+ software-center crashed with DatabaseCorruptError in __init__() (when
+ the xapian db is corrupted)
Michael Vogt (mvo) wrote :

For lucid it should rebuild the database automatically in this case - that requires adding more dbus to the db backend.

Michael Vogt (mvo) wrote :

We have the dbus xapian service now, so that should be straightforward to add.

visibility: private → public
Changed in software-center (Ubuntu):
assignee: nobody → Zygmunt Krynicki (zkrynicki)
Zygmunt Krynicki (zyga) wrote :

Steps to reproduce:

bzr get lp:software-center
cd software-center
echo -n '' > data/xapian/iamflint

The following bracktrace shows up:

Traceback (most recent call last):
  File "/home/zyga/Source/s-c/software-center/softwarecenter/", line 120, in __init__
  File "/home/zyga/Source/s-c/software-center/softwarecenter/db/", line 59, in open
    self.xapiandb = xapian.Database(self._db_pathname)
  File "/usr/lib/python2.6/dist-packages/", line 2454, in __init__
DatabaseCorruptError: Flint version file ./data/xapian/iamflint should be ((sizeof("IAmFlint""") - 1) + 4) bytes, actually 0

(The backtrace is consistent with the Traceback.txt file attached by apport)

Zygmunt Krynicki (zyga) wrote :

This bug is not so easy.
Software-center has two xapian databases, one for apt and one for internal list of "applications".
According to the backtrace the internal database is causing problems so we cannot use the dbus service.

I'll post a design of possible solution of issue soon.

Omer Akram (om26er) wrote :

Zygmunt, is there any update on this issue? could it by any chance have been fixed automagically in maverick?

Zygmunt Krynicki (zyga) wrote :

Omer, I'm sorry I stopped working on that issue after some turmoil with changing jobs. I did not encounter it in maverick and software-center has undergone many changes since then. I'd recommend closing the bug and reopening it if anyone can reproduce it again.

Omer Akram (om26er) on 2010-12-16
Changed in software-center (Ubuntu):
assignee: Zygmunt Krynicki (zkrynicki) → nobody
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers