[Xapian-discuss] xapian error

Olly Betts olly at survex.com
Sun Jan 14 16:04:45 GMT 2007


On Fri, Jan 12, 2007 at 10:21:25AM -0800, Alexander Lind wrote:
> Just got this error when replacing (updating) a document in the xapian 
> index (using php bindings):
> 
> Fatal error: Uncaught exception 'Exception' with message 'DatabaseError: 
> Error reading block 16908825: got end of file'
> 
> Does anyone know what this means exactly?

It means quartz or flint tried to read a block from one of the Btrees
which doesn't exist (because that Btree doesn't contain that many
blocks).  That shouldn't happen and suggests the database has become
corrupted somehow.

Which Xapian version is this with?  Are you using quartz or flint?

If it's quartz, try running quartzcheck on it (there's no equivalent of
quartzcheck for flint yet).

You could try running copydatabase (from the examples subdirectory of
xapian-core) on the database, which will fix the problem if it's in the
postlist table.  This will be slow for a large database though.

Cheers,
    Olly



More information about the Xapian-discuss mailing list