unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: David Bremner <david@tethera.net>
Cc: "notmuch@notmuchmail.org" <notmuch@notmuchmail.org>,
	xapian-discuss@lists.xapian.org
Subject: Re: How to recover from this permanent fatal error?
Date: Fri, 4 Jun 2021 20:40:56 -0500	[thread overview]
Message-ID: <CAMP44s08yomHx_0OFTPgQEv2CRSNLTt72ANVFC-g=Mu+o0KvNQ@mail.gmail.com> (raw)
In-Reply-To: <8735txjdmc.fsf@tethera.net>

On Fri, Jun 4, 2021 at 8:37 PM David Bremner <david@tethera.net> wrote:
> Felipe Contreras <felipe.contreras@gmail.com> writes:

> > 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".

Actually `xapian-check ~/mai/.notmuch/xapian`, but I already did that:

Database couldn't be opened for reading: DatabaseModifiedError: The
revision being read has been discarded - you should call
Xapian::Database::reopen() and retry the operation
Continuing check anyway
docdata:
xapian-check: DatabaseCorruptError: Db block overwritten - are there
multiple writers?

`xapian-check ~/mail/.notmuch/xapian F` doesn't seem to change anything.

Thanks for the prompt response though.

Cheers.

-- 
Felipe Contreras

  reply	other threads:[~2021-06-05  1:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-05  0:44 How to recover from this permanent fatal error? Felipe Contreras
2021-06-05  1:37 ` David Bremner
2021-06-05  1:40   ` Felipe Contreras [this message]
2021-06-05  2:43     ` Olly Betts
2021-06-05 14:39       ` Felipe Contreras
2021-06-06  1:45         ` Olly Betts
2021-06-06  4:40           ` Felipe Contreras
2021-06-06 10:08             ` Olly Betts
2021-06-06 12:48               ` Felipe Contreras
2021-06-07  3:45                 ` Olly Betts
2021-06-07  7:07                   ` Felipe Contreras

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='CAMP44s08yomHx_0OFTPgQEv2CRSNLTt72ANVFC-g=Mu+o0KvNQ@mail.gmail.com' \
    --to=felipe.contreras@gmail.com \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=xapian-discuss@lists.xapian.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).