DatabaseError

Bug #757512 reported by Alberto Aldegheri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Extensions
New
Undecided
Unassigned

Bug Description

While using Synapse I get this error, and I think it's ZG-only related :)

Remote Exception invoking org.gnome.zeitgeist.Index.Search() on /org/gnome/zeitgeist/index/activity at name org.gnome.zeitgeist.Engine: org.freedesktop.DBus.Python.xapian.DatabaseError: Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 123, in Search
    offset, count, result_type)
  File "/usr/share/zeitgeist/_zeitgeist/engine/extensions/fts.py", line 255, in search
    hits = self._enquire.get_mset (offset, raw_maxhits)
DatabaseError: Error reading block 4279174522: got end of file

Markus Korn (thekorn)
affects: zeitgeist → zeitgeist-extensions
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Apparently the Xapian index of the Zeitgeist FTS extension got corrupted. Do you have any contextual information as to how that could have happended. Fx. a flaky disk, power loss to the computer, or is your system in any way non-conventional? Pretty much any piece of information you can come up with would be helpful (also if you believe you computer to be in perfect working order).

tags: added: zeitgeist-fts
Revision history for this message
Alberto Aldegheri (albyrock87) wrote :

I'm a Synapse developer, I was only testing Synapse..
I compiled my working Synapse branch (as usually) and while searching, ZG returns that error.

I can upload some files if you need them.

I can say that my disk is safe, no power loss, and I use a standard linux Mint 10.

I assume that deleting the fts index I can fix this, but well, it's a workaround not a fix..

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote : Re: [Bug 757512] Re: DatabaseError

If you kill Zeitgeist, delete the fts.index folder and restart
Zeitgeist everything should be rebuild fine and dandy. But as you say,
that's just a workaround.

I'm honestly really puzzled how this can happen as Xapian indexes
should be very robust. I'll try and look into writing some stress
tester for the FTS extension and see if I can shake out a race
condition or something...

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.