From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id dxvZBM/FvWDSmgAAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 09:07:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AMJIO87FvWBCNQAAbx9fmQ (envelope-from ) for ; Mon, 07 Jun 2021 07:07:58 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 922D91C3B3 for ; Mon, 7 Jun 2021 09:07:58 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6A2C529C43; Mon, 7 Jun 2021 03:07:51 -0400 (EDT) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by mail.notmuchmail.org (Postfix) with ESMTPS id 3E7C327185 for ; Mon, 7 Jun 2021 03:07:49 -0400 (EDT) Received: by mail-ot1-x32a.google.com with SMTP id 66-20020a9d02c80000b02903615edf7c1aso15735660otl.13 for ; Mon, 07 Jun 2021 00:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-transfer-encoding; bh=2eD+IPM+T8NVLrJ6ucW8Sdy1Jau+WALuftW5nklXYLI=; b=At8FNL7a0gQxTUgodc5d+e/mTvY4tYZpZoOEcvMzTweoNR8iWFidmEUFs5qoqW3SVr fMsPIWTRCpjAbE0W5jja6AaZH58UwmALpsgW0B1eAbC10T1rRRjTjlTS8s5zFrFqpKrp 1YrEFaNWy4JUBtu1Oex7yX8UYkeLLFRd/Or9xxt6iPaq+KSXkVu42/kSHh/M4vfJwwsK 1I5r7KQiRf+FNzC9jwNBLA9iV+21+soQE+8W4HKyNCqh3vjqLdpfgqXsGqsjOfHLLXqx 4rE8+AV5e4meUL3HiXW2Gn5yhQbc2BoErgtsDmAVtJLKE6UhuNxzZF3U3P2DXeywDJqJ c0pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-transfer-encoding; bh=2eD+IPM+T8NVLrJ6ucW8Sdy1Jau+WALuftW5nklXYLI=; b=KVQqFmqp06vwwZdYF+Z/fr5+NctUhFLAKEoM0CTPfup1xxnwBHNHIayBj6xt5bNEQX BnFktewy7hFILi26Se8n9TUKPmvwcpHrP2a2ai2dRV5szVOONJjEj7GI0flXRv4LBaiM NJWO8EY54ZeP+qv9X84EBhGQIChumHZdfvafa15eLx9Q4YIujMrMZk0bBkKKgX0hNd7C /794m4VhGUtNKCqSmbCCeDLxX22XTIMGYw1jvjz3ADJh2QE9Dnwrl0Lwk9kq2IdcNm3r FGqp4FW2ly7/igkHDmZyz9OBsyTvukZYw4oNzdvK3WuRfR3/dXohf1UFEQvB7xni4YXY 9LXg== X-Gm-Message-State: AOAM530x1/Vpy1a3Qd2nN44XTtjfaEoE0m79Zzv8jnSo9BGCOM60HG92 SYncD020l58uIZII9poTW6k= X-Google-Smtp-Source: ABdhPJx8Rns26E2FlPDtS/WSbIN3ciUlSQG0sfWh3a6199fZtYHAqnG02Im/MT3P3kvwPZC8WopeDw== X-Received: by 2002:a05:6830:1ac4:: with SMTP id r4mr11904782otc.36.1623049668378; Mon, 07 Jun 2021 00:07:48 -0700 (PDT) Received: from localhost (fixed-187-188-155-231.totalplay.net. [187.188.155.231]) by smtp.gmail.com with ESMTPSA id l8sm2034469ooo.13.2021.06.07.00.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 00:07:47 -0700 (PDT) Date: Mon, 07 Jun 2021 02:07:46 -0500 From: Felipe Contreras To: Olly Betts , Felipe Contreras Message-ID: <60bdc5c282f09_35cf9208f7@natae.notmuch> In-Reply-To: <20210607034506.GB18586@survex.com> References: <8735txjdmc.fsf@tethera.net> <20210605024316.GC9932@survex.com> <20210606014517.GD9932@survex.com> <20210606100851.GA18586@survex.com> <20210607034506.GB18586@survex.com> Subject: Re: How to recover from this permanent fatal error? Mime-Version: 1.0 Message-ID-Hash: 73FII2RERJ23AP34SKOUUEYLTU5V2YGT X-Message-ID-Hash: 73FII2RERJ23AP34SKOUUEYLTU5V2YGT X-MailFrom: felipe.contreras@gmail.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 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=1623049678; 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:dkim-signature; bh=G3DZRW6A2ON0mEC+MSABv2jjuk2tJKQ/DlahxW/lMjQ=; b=Mq7WQfg9amR2DGeL3Uy4S3GwiaxGKi2Twqj9Czb/dFl18g2UUYmFRb6CilN6Oy1NoC47g4 2hJZM2M/1j00VNF+ZusIEVaCZk6Av1jTCSFWjJo+d5AlbYvdVvqPydZNVVRL1GKG57XJRh HlkXvOL2904S2EUK5jOiCapXKn8+vWmmn230tw4e0Lcy+5Hwjvj+opI5VVX3Ne0dBM7bGO w7mxp9EsG3qqTCrk2O7W86ATVqHKWXpFCfEx3x+D/WaS+ZSXF7+0OYLCnav4lOMlycEDYD xNQu9FL1kMMEe9tdHo0yIn4Nd2xU9Oe90Hde48oKAf01Epmno7M6yNYAIgvBSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623049678; a=rsa-sha256; cv=none; b=SMMDFU/fa3t8eFwU1PT8nKe0zs01b4Pu3r9YZzRa+NqXtSITS8LJiPctlB8bfYMV0loY2V L3rPvENGzVonEbrv6Z38US3pq2fofcNMobfr2SsX/Zyweh7+MifVGNSWJRdcuAtJdfoejK 7ZKPSkWejXaU/m80RRgMYPE2ibAU7E2mCGHZlwSRaF1Q8aik32zdu/cwy8C6WWuUnas8aC xq/8K6lMxzJ8jTQz7WaG+0QH16pM0NNaY5BcZdYjSHw9YcRRJD2DEh4zOKRSFWtkb8M+Zs FRLkGYLFGK8LGz72rD99jIr7SJLMgtUt3lmK28io63eQ0MtkA3URva81qXBteg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=At8FNL7a; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=At8FNL7a; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 922D91C3B3 X-Spam-Score: 2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: zLRDsyqQcXX6 Olly Betts wrote: > 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! Yeap, I was able to rescue some tags... only for 339296 mails ;) I'm back to using notmuch. This is the error I got: termlist: blocksize=8K items=687440 firstunused=152676 revision=2 levels=2 root=749 doclen 168339 > upper bound 168335 termlist table errors found: 1 Total errors found: 1 And I still had to disable GlassTable::set_overwritten on top of your patch. Thanks! -- Felipe Contreras