[Xapian-discuss] DatabaseCorruptError
Olly Betts
olly at survex.com
Mon Jan 17 12:53:24 GMT 2011
On Mon, Jan 17, 2011 at 11:27:29AM +0000, Andrew Betts wrote:
> DatabaseCorruptError: Expected block 107 to be level 1, not 0
>
> Here's the line that invokes it:
>
> $database = new XapianDatabase(PROJROOT.'/data/xapian/posts');
>
> And my version is xapian-core 1.2.3 with matchspy. Any ideas? Is it
> likely to be because the index is being updated by the indexer at the
> same time? Is there a way to avoid getting the above error? To be
> clear, it does work most of the time, but very occasionally throws the
> above.
Well, the message is saying the database is corrupt, but I'm surprised
that it would only happen erratically on opening - I would expect it to
be repeatable.
If you run xapian-check on the database what does it say? Best to
disable updates while you run it.
Cheers,
Olly
More information about the Xapian-discuss
mailing list