From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SCDrJFCWvWAZOwAAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 05:45:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MCIzIFCWvWCOOgAAB5/wlQ (envelope-from ) for ; Mon, 07 Jun 2021 03:45:20 +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 BC509191C7 for ; Mon, 7 Jun 2021 05:45:19 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id BBFCB2903E; Sun, 6 Jun 2021 23:45:12 -0400 (EDT) Received: from thyestes.tartarus.org (thyestes.tartarus.org [5.196.91.86]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9FE2027185 for ; Sun, 6 Jun 2021 23:45:09 -0400 (EDT) Received: from olly by thyestes.tartarus.org with local (Exim 4.92) (envelope-from ) id 1lq6CI-000407-7b; Mon, 07 Jun 2021 04:45:06 +0100 Date: Mon, 7 Jun 2021 04:45:06 +0100 From: Olly Betts To: Felipe Contreras Subject: Re: How to recover from this permanent fatal error? Message-ID: <20210607034506.GB18586@survex.com> Mail-Followup-To: Felipe Contreras , Xapian Discussion , David Bremner , "notmuch@notmuchmail.org" References: <8735txjdmc.fsf@tethera.net> <20210605024316.GC9932@survex.com> <20210606014517.GD9932@survex.com> <20210606100851.GA18586@survex.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Message-ID-Hash: G5GSG6ISRAZBLFOPDZXXZZAYBPRXPMC5 X-Message-ID-Hash: G5GSG6ISRAZBLFOPDZXXZZAYBPRXPMC5 X-MailFrom: olly@survex.com 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 Discussion , "notmuch@notmuchmail.org" X-Mailman-Version: 3.2.1 Precedence: list Reply-To: Xapian Discussion 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=1623037520; h=from:from:reply-to: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=m4rVT3u9uxTvdhXgVx6DBMC4XfZXupJtbJ3LiahKKzE=; b=KRpRg4jRKNhyDS/JhYT7MKbvyui3bdv+UN/P8JZm+plvkNNJW+XALJK0pvN2TSV98KoP0a DF0FeRJ+9f2JbV++fwfwahvqSKU5PFc5OFxGFWqLgp/5IdMi7Q6JqtFIJGMnxV6sli8qL8 61alo+IpXHPloGsx9Tp3oY/rNHl+huQbxF+4nz1PyPf32ZTlk/7dCU4134b8vW7Q/CeK4I jS2CRRABFqgCBfAvDmo6Z6jzWBmWgek2po61vXrnDda8/OlwbSx2NLQP+bYvMr2iMoCEDD ro5GOjFXfavC/yzpRI8Fp/YYYAg4dpDZqAYX0bBKQHNFl9KDLjdn6PLtz+QU2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623037520; a=rsa-sha256; cv=none; b=FwcjHINAVpdBAQacpbkK9OlMH31HsK3hIIzQjs54r8hj+n5d8oIcsLLNmOWSg5lVPAaTq5 7e3MzxWdOaIZYVQRxxvwfjS30Tk2U6diqONgJjvRkr63MhUoAdxmXosKvgxvTB3YuEhZKR nta4fao1u3c5dWxR8I1wtiRg++gY82WTV+rqfpSvZFyCTEJoQlFNA59Bs6AGjYEAC30Gfs 7LOUhig8MJEdr2TK4HV6chyfSf6cSiTzxxNokqQWRZVHBZuh0e/+x9mB6iyQP3kyVukSGJ UhQ8GbluVfwqmudmjyzygLsk0iZez+GfMayM8seSm1t07H2zgiEiHYRstJP8Zw== 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.02 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: BC509191C7 X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: uGi2IKQwGVSB On Sun, Jun 06, 2021 at 07:48:39AM -0500, Felipe Contreras wrote: > On Sun, Jun 6, 2021 at 5:08 AM Olly Betts wrote: > > > You could try commenting out the body of GlassTable::set_overwritten() > > in xapian-core/backends/glass/glass_table.cc so it keeps going instead > > of throwing this exception, which might allow it to usefully recover > > some or all tags. If you (or anyone) try that and it works let me know > > and I can patch the branch to emit a warning message and continue there. > > Now I get this: > > termlist: > blocksize=8K items=687440 firstunused=152676 revision=2 levels=2 root=749 > /home/felipec/contrib/xapian/xapian-core/bin/.libs/lt-xapian-check: > DatabaseError: Block 152676: used more than once in the Btree I've pushed a change to skip the low level table consistency checking on the branch since that's where this report is from. The whole point of this branch is to rescue tags from a broken database, so the user presumably already ran the real xapian-check and it's not useful to be repeating those checks here. Hopefully that'll get us to actually rescuing some tags! Cheers, Olly