[Xapian-discuss] xapian-compact and "Bad line 1 in stub database file"

Olly Betts olly at survex.com
Thu Oct 9 02:21:01 BST 2008


On Wed, Oct 08, 2008 at 08:39:16PM +0200, Adam Sjøgren wrote:
> But when I try to use the new index in place of the non-compact one, it
> doesn't work, the application says:
> 
>   Exception: Bad line 1 in stub database file `index.compact/postlist.baseA' at
>   /usr/lib/perl5/Search/Xapian/Database.pm line 48

Are you perhaps trying to open "index.compact/postlist.baseA" as a
database (rather than "index.compact")?

> If I look at the file-size:
> 
>   -rw-rw-r-- 1 adsj staff 13 2008-10-08 20:01 index.compact/postlist.baseA
> 
> compared to the original; they differ in size¹:
> 
>   -rw-r--r-- 1 adsj staff 12084 2008-10-08 18:02 index/postlist.baseA

That's OK - after compaction, the "A" revision is for an empty table,
the "B" revision is for the table with all the data added.

> I am using Xapian 1.0.5 on an Ubuntu hardy amd64 machine. I briefly
> scanned the NEWS-file, but didn't find anything sounding like this
> problem; I will of course try upgrading to the latest version if it is
> likely to help.

If it's not the database path, please try 1.0.8.

Cheers,
    Olly



More information about the Xapian-discuss mailing list