From: David Bremner <david@tethera.net>
To: Neeum Zawan <mailinglists@nawaz.org>, notmuch@notmuchmail.org
Subject: Re: Notmuch suddenly stopped working
Date: Wed, 18 Apr 2018 07:20:01 -0300 [thread overview]
Message-ID: <874lk8q0j2.fsf@tethera.net> (raw)
In-Reply-To: <87fu3t9uns.fsf@nawaz.org>
Neeum Zawan <mailinglists@nawaz.org> writes:
> Hi,
>
> My setup:
>
> Running version 0.24.2
>
> I use maildir. Suddenly, a few days ago, notmuch stopped indexing. When
> I run notmuch new, I get:
>
> Processed 274 total files in almost no time.
> Added 33 new messages to the database.
>
> But it doesn't get added. No error message. A subsequent run gives me
> the same result (or more "new messages" if new mail has arrived). I have
> a post hook Python script, and it runs fine, but sees no new mails. I've
> set up notmuch to tag all new mails with "new", but none of them are
> tagged that way. I disabled the Python script - it made no difference.
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
- check disk space
- run xapian-check on the xapian database
Something like:
% xapian-check ~/Maildir/.notmuch/xapian
- run in gdb and make sure it really runs the call to
notmuch_database_destroy
- apply the following patch to notmuch-new.c and rebuild to get more
information:
diff --git a/notmuch-new.c b/notmuch-new.c
index c4345705..447f9f7d 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -1280,7 +1280,8 @@ notmuch_new_command (notmuch_config_t *config, int argc, char *argv[])
fprintf (stderr, "Note: A fatal error was encountered: %s\n",
notmuch_status_to_string (ret));
- notmuch_database_destroy (notmuch);
+ print_status_database("notmuch new", notmuch,
+ notmuch_database_destroy (notmuch));
if (hooks && !ret && !interrupted)
ret = notmuch_run_hook (db_path, "post-new");
- run notmuch new under strace
next prev parent reply other threads:[~2018-04-18 10:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 1:21 Notmuch suddenly stopped working Neeum Zawan
2018-04-18 10:20 ` David Bremner [this message]
2018-04-18 13:39 ` Neeum Zawaz
2018-04-18 15:58 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874lk8q0j2.fsf@tethera.net \
--to=david@tethera.net \
--cc=mailinglists@nawaz.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).