Re: Notmuch suddenly stopped working

Subject: Re: Notmuch suddenly stopped working

Date: Wed, 18 Apr 2018 12:58:30 -0300

To: Neeum Zawaz, notmuch@notmuchmail.org

Cc:

From: David Bremner


Neeum Zawaz <mailinglists@nawaz.org> writes:

> David Bremner <david@tethera.net> writes:
>
>> The only things that happen after that message is closing the notmuch
>> database and running the post-new hook. IIUC, you said you disabled the
>> post-new hook so that leaves closing the database. Not sure what could
>> go wrong there, but some things to try
>
> Would the post-new hook run if the database did not close? In my case
> the post-new script was running. 
>

Currently that code does not abort if the database fails to close, so
yes, if could run the hook in either case.

>>
>> - check disk space
>> - run xapian-check on the xapian database
>
> Disk space is fine.
>
> xapian-check gives:
>
> postlist:
> baseA blocksize=8K items=2413415 lastblock=53350 revision=73183 levels=2 root=35
> Failed to check B-tree: DatabaseError: Stored total free space value wrong
> position:
> baseB blocksize=8K items=22315184 lastblock=75964 revision=73183 levels=2 root=75964
> B-tree checked okay
> position table structure checked OK

That looks a bit worrying. Maybe someone on the xapian-discuss [1] list
can advise you how serious the problem is. From a notmuch point of view
I would suggest backing up your database with 'notmuch dump',
reindexing, and restoring with 'notmuch restore'.


[1]: xapian-discuss@lists.xapian.org
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: