From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B754C6DE026E for ; Wed, 18 Apr 2018 03:20:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2n9TnUxYVf5a for ; Wed, 18 Apr 2018 03:20:06 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id ABCA86DE026C for ; Wed, 18 Apr 2018 03:20:06 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1f8kC3-00022p-8T; Wed, 18 Apr 2018 06:20:03 -0400 Received: (nullmailer pid 25636 invoked by uid 1000); Wed, 18 Apr 2018 10:20:02 -0000 From: David Bremner To: Neeum Zawan , notmuch@notmuchmail.org Subject: Re: Notmuch suddenly stopped working In-Reply-To: <87fu3t9uns.fsf@nawaz.org> References: <87fu3t9uns.fsf@nawaz.org> Date: Wed, 18 Apr 2018 07:20:01 -0300 Message-ID: <874lk8q0j2.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Apr 2018 10:20:07 -0000 Neeum Zawan 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