unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: mueen@nawaz.org
To: notmuch@notmuchmail.org
Subject: Notmuch DB Problems
Date: Tue, 04 Sep 2018 18:00:12 -0700	[thread overview]
Message-ID: <47409d4ed692a336458371102bcbcbd86ab4a067@webmail.nawaz.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]


Hi,

A few days ago I noticed notmuch new was no longer working (I have it
as a cron job so it took a while to figure it out).

It just freezes. I do have a Python hook, and it was freezing on the
line that opens the database.

I tried a notmuch dump. Same problem - freezes

Based on some earlier threads, I tried a notmuch compact. Same problem
- freezes.

All these freezes seem to use no memory/CPU. 

Interestingly, queries work fine - from both the command line and the
Emacs interface. So I can read old stuff just fine. But all the
commands above cause a freeze. 

Currently using notmuch-0.24.2. I tried notmuch-0.27 - same problem.

Results of a xapian check:

docdata:
blocksize=8K items=6 firstunused=3 revision=6442 levels=0 root=0
B-tree checked okay
docdata table structure checked OK

termlist:
blocksize=8K items=178562 firstunused=53441 revision=6442 levels=2
root=46086
/usr/bin/xapian-check: DatabaseError: 1 unused block(s) missing from
the free list, first is 0

What are my options? Unfortunately the last dump I have is many months
old, so I'm a bit wary of deleting the database and rebuilding. Given
that the show and search commands work, I was wondering if I can write
a script to get all the message/thread ID's for all the tags and store
them, and then rebuild the database and use that stored information to
retag all my messages (all without using the dump command)?

Thanks!

Mueen


[-- Attachment #2: Type: text/html, Size: 1822 bytes --]

             reply	other threads:[~2018-09-05 13:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-05  1:00 mueen [this message]
2018-09-05 18:05 ` Notmuch DB Problems Jani Nikula
2018-09-07 15:32   ` Mueen Nawaz
2018-09-10 11:01     ` David Bremner
2018-09-10 14:21       ` Mueen Nawaz
2018-09-10 15:08         ` David Bremner
2018-09-10 15:19           ` Mueen Nawaz
2018-09-10 21:24       ` Olly Betts
2018-09-10 23:45         ` David Bremner
2018-09-12  2:41         ` Mueen Nawaz

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=47409d4ed692a336458371102bcbcbd86ab4a067@webmail.nawaz.org \
    --to=mueen@nawaz.org \
    --cc=notmuch@notmuchmail.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).