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

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

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
ProcEnviron:
 PATH=(custom, no user)
 LANG=fr_FR.UTF-8
 LANGUAGE=fr_FR.UTF-8
 SHELL=/bin/bash
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
UserGroups:

Revision history for this message
grimko (grimko) wrote :
tags: removed: need-duplicate-check
Michael Vogt (mvo)
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)
Revision history for this message
Michael Vogt (mvo) wrote :

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

Revision history for this message
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)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Steps to reproduce:

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

The following bracktrace shows up:

Traceback (most recent call last):
  File "/home/zyga/Source/s-c/software-center/softwarecenter/app.py", line 120, in __init__
    self.db.open()
  File "/home/zyga/Source/s-c/software-center/softwarecenter/db/database.py", line 59, in open
    self.xapiandb = xapian.Database(self._db_pathname)
  File "/usr/lib/python2.6/dist-packages/xapian.py", line 2454, in __init__
    _xapian.Database_swiginit(self,_xapian.new_Database(*args))
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)

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

Revision history for this message
Omer Akram (om26er) wrote :

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

Revision history for this message
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)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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