From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id u5OpBVbVumAbGQAAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 03:37:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oPCWAFbVumBtJwAAB5/wlQ (envelope-from ) for ; Sat, 05 Jun 2021 01:37:26 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8587E17A4B for ; Sat, 5 Jun 2021 03:37:24 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 51D4D2B249; Fri, 4 Jun 2021 21:37:19 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3085829906 for ; Fri, 4 Jun 2021 21:37:17 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 0F5C15FD25; Fri, 4 Jun 2021 21:37:17 -0400 (EDT) Received: (nullmailer pid 1476564 invoked by uid 1000); Sat, 05 Jun 2021 01:37:15 -0000 From: David Bremner To: Felipe Contreras , "notmuch@notmuchmail.org" Subject: Re: How to recover from this permanent fatal error? In-Reply-To: References: X-List-To: notmuch Date: Fri, 04 Jun 2021 22:37:15 -0300 Message-ID: <8735txjdmc.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: GC3OFC7KCEATF4L7ZICIIDR5J23RBEGR X-Message-ID-Hash: GC3OFC7KCEATF4L7ZICIIDR5J23RBEGR X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: xapian-discuss@lists.xapian.org X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622857045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8QqaTC0Jux7KQIDMCTKF9sL8BHcOtOAcSrRjRsJ+/kQ=; b=O5FR4Czv96e9L8rmr3zqd74K7cZalY15cN5Er0XyxxvgrJeZmWnfUuOQWZzq7zUfJt8yv0 Ov/QQlIeUW0JQtnh+dbsAFUkdsBDIoES09Jh8fQd2mWHOR42Bu3TT9WghJwu9ynCBDiSqt R3zMS+yag6kGwgKRAJkGPCdst7WWQc0LS/hbsSMo2UEm9PvvtLwQKakfhBI/mSeMg1aXim MJW1Z4a8c9dmLE0+qLgbSqYlLoNSIdhg5CgLb7+YB5tCtbrT5K4aPZ4KgnZ6MntpxVxn5c I4XDWal7zUgDt7crLBTqZ0v9hRST4d5R4TcvGE7Lsoi5rA94LAgWrndCR7iRTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622857045; a=rsa-sha256; cv=none; b=ESxBTk5FVk6LmGUy09c/dJ6G7CLfF37bh5XvLIA49WALqy46c+aybTd6I5xRtDyzBzYCaR FIIsy1gWsXmgxomVxAdymP3zpfkJXjfl1auj9Y6Hxxv+/KrWd6fk8DKhgCwnzPNyFK6LUa 3RvxTD3CWorS+G90TuJYDT4xNWT75amUXfmk719M+l6/sW1IiyBaniZJgOIWWS34k7RG0q F+mcChVDl1ivOyGMY6C24GkOTsUX3dGF2Qt/xOmrbQxv6G65VmEek0iYKeWCerH0BJJldq 2H05d//lD+zSSEtRg8f/ZGOWgK49KkCthxjWeDgEquGtETlY241vFgd0vxwX6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8587E17A4B X-Spam-Score: -1.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: 22kCWpQdjW4v Felipe Contreras writes: > Hello, > > I can't use notmuch anymore, I get this error: > > A Xapian exception occurred opening database: The revision being read > has been discarded - you should call Xapian::Database::reopen() and > retry the operation > > Context. In order to investigate a bug about mbsync I moved away the > folder ~/mail/.notmuch. I have a timer that calls notmuch new after > mbsync, so I paused that timer. > > Initially I used notmuch, only to see everything empty. Then I > recalled what I did, removed all the files, and moved back the .nomuch > directory. > > IIRC I was able to use notmuch without problems once, and then I got the issue. Maybe the Xapian folk will have a more concrete suggestion, but I would start by running xapian-check on the database. In your case I guess that should be "xapian-check ~/mail/.notmuch". You might have to install an extra package to get xapian-check. On Debian it's part of xapian-tools. d