Re: Compaction failed: A Xapian exception occurred

Subject: Re: Compaction failed: A Xapian exception occurred

Date: Mon, 01 Dec 2025 09:56:23 -0400

To: Peter P., notmuch@notmuchmail.org

Cc:

From: David Bremner


"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?

I guess smartctl (or your OS equivalent) to check for disk hardware
problems is another option.

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

Thread: