Re: Compaction failed: A Xapian exception occurred

Subject: Re: Compaction failed: A Xapian exception occurred

Date: Mon, 1 Dec 2025 22:15:53 +0100

To: notmuch@notmuchmail.org

Cc:

From: Peter P.


* David Bremner <david@tethera.net> [2025-12-01 14:56]:
> "Peter P." <peterparker@fastmail.com> writes:
> 
> > notmuch compact throws
> > Compaction failed: A Xapian exception occurred
> > and I can't find a way to fix it. Just had my database rebuilt by
> > deleting the xapian and xapian.compact folders (to work around a previous
> > error) and running notmuch new and notmuch compact.
> 
> It is surprising that a recreated database has errors.
> 
> Can you try running
> 
>     xapian-check $DATABASE_PATH/xapian
> 
> and see if there are any errors?

Thanks David! Yes, indeed this finds an error. Does the below printout indicate the problem's source? Is there a fix?
The harddrive's SMART overall-health self-assessment and short tests both passed.
best, Peter

$ xapian-check xapian
docdata:
blocksize=8K items=160 firstunused=3 revision=409 levels=0 root=0
B-tree checked okay
docdata table structure checked OK
 
termlist:
blocksize=8K items=312060 firstunused=50679 revision=409 levels=2 root=21330
B-tree checked okay
termlist table structure checked OK
 
postlist:
blocksize=8K items=2681433 firstunused=66633 revision=409 levels=2 root=7639
B-tree checked okay
postlist table structure checked OK
 
position:
blocksize=8K items=23056297 firstunused=144292 revision=409 levels=2 root=53867
B-tree checked okay
Extra junk in key with docid 65734
position table errors found: 1
 
spelling:
Lazily created, and not yet used.
 
synonym:
Lazily created, and not yet used.
 
Total errors found: 1


_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: