unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Internal error: Message without type term
@ 2023-07-03  7:47 Peter P.
  2023-07-03 10:34 ` David Bremner
  0 siblings, 1 reply; 7+ messages in thread
From: Peter P. @ 2023-07-03  7:47 UTC (permalink / raw)
  To: notmuch


Hi list,
I am not subscribed to this list, please add me as CC in your replies,
thanks!

I am getting 
	Internal error: Message without type term (lib/message.cc:402).
with notmuch 0.37-1+b1 on Debian stable. What can I do next?

Thanks!
Peter

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Internal error: Message without type term
  2023-07-03  7:47 Internal error: Message without type term Peter P.
@ 2023-07-03 10:34 ` David Bremner
  2023-07-03 10:47   ` Peter P.
  0 siblings, 1 reply; 7+ messages in thread
From: David Bremner @ 2023-07-03 10:34 UTC (permalink / raw)
  To: Peter P., notmuch

"Peter P." <peterparker@fastmail.com> writes:

> Hi list,
> I am not subscribed to this list, please add me as CC in your replies,
> thanks!
>
> I am getting 
> 	Internal error: Message without type term (lib/message.cc:402).
> with notmuch 0.37-1+b1 on Debian stable. What can I do next?
>

The first thing to try is to make a backup of your database with

notmuch dump > notmuch-db.txt

(or whatever you want to call the file).

If this succeeds then follow the steps below. If not, then _maybe_ there
is a way to recover your tags etc., but it will require recompiling some
parts of xapian, so write again.

1) install xapian-tools and run

$ xapian-check ~/.local/share/notmuch/default/xapian

This is mainly for (my) curiousity, but it may highlight some database
corruption or if xapian reports no errors that leans more towards a
notmuch bug.

2)  Move the database out of the way, re-run notmuch new,
and restore your state using "notmuch restore < notmuch-db.txt"

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Internal error: Message without type term
  2023-07-03 10:34 ` David Bremner
@ 2023-07-03 10:47   ` Peter P.
  2023-07-03 12:26     ` David Bremner
  0 siblings, 1 reply; 7+ messages in thread
From: Peter P. @ 2023-07-03 10:47 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

Dear David,

* David Bremner <david@tethera.net> [2023-07-03 12:34]:
[...]
> The first thing to try is to make a backup of your database with
> 
> notmuch dump > notmuch-db.txt
Thanks! notmuch dump throws the same error, prefixed with
	+inbox +signed -- id:201805
though I am not sure if this id really belongs to the email causing it.
 
> (or whatever you want to call the file).
> 
> If this succeeds then follow the steps below. If not, then _maybe_ there
> is a way to recover your tags etc., but it will require recompiling some
> parts of xapian, so write again.

> 1) install xapian-tools and run
> 
> $ xapian-check ~/.local/share/notmuch/default/xapian
> 
> This is mainly for (my) curiousity, but it may highlight some database
> corruption or if xapian reports no errors that leans more towards a
> notmuch bug.
I ran xapian-check on ~/.notmuch/xapian and include its messages below at the
end of this mail. Everyone please forgive me for pasting 1121 there. :)

> 2)  Move the database out of the way, re-run notmuch new,
> and restore your state using "notmuch restore < notmuch-db.txt"
 
I'd be fine regenerating the entire database without a backup dump even,
I don't think there is anything in there that can't be regernerated, no?

How could I move the existing database out of the way? I have the
following files in notmuch's directory:

~/.notmuch/xapian$ ls -1
	docdata.glass
	flintlock
	iamglass
	position.glass
	postlist.glass
	termlist.glass

Thanks again David!
P

------>

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

termlist:
blocksize=8K items=267730 firstunused=23171 revision=1 levels=2 root=746
B-tree checked okay
Size of wdf out of range in termlist
termlist_size != # of entries in termlist
doclen != sum(wdf)
termlist table errors found: 3

postlist:
blocksize=8K items=2437844 firstunused=22023 revision=1 levels=2 root=567
B-tree checked okay
document id 63805: length 325 doesn't match 0 in the termlist table
document id 89028: length 404416 doesn't match 359353 in the termlist table
collfreq 29 != sum wdf 25
termfreq 5 != # of entries 1
docid 3536 > last docid 3534
docid 3538 > last docid 3534
collfreq 15055 != sum wdf 15059
First did in this chunk is <= last in prev chunk
termfreq 8544 != # of entries 8555
collfreq 331831 != sum wdf 334753
termfreq 11793 != # of entries 11800
collfreq 24971 != sum wdf 24993
docid 10538 > last docid 10534
collfreq 217566 != sum wdf 217570
termfreq 5 != # of entries 1
collfreq 109 != sum wdf 113
docid 21012 > last docid 20915
docid 21019 > last docid 20915
docid 21117 > last docid 20915
docid 21229 > last docid 20915
docid 21340 > last docid 20915
docid 21342 > last docid 20915
docid 21392 > last docid 20915
docid 21394 > last docid 20915
docid 21408 > last docid 20915
docid 21499 > last docid 20915
docid 21597 > last docid 20915
docid 21641 > last docid 20915
docid 21643 > last docid 20915
docid 21693 > last docid 20915
docid 21695 > last docid 20915
docid 21714 > last docid 20915
docid 21805 > last docid 20915
docid 21903 > last docid 20915
docid 21906 > last docid 20915
docid 283841 > last docid 20915
docid 319527 > last docid 20915
docid 355212 > last docid 20915
docid 355309 > last docid 20915
docid 355326 > last docid 20915
docid 355424 > last docid 20915
docid 355535 > last docid 20915
docid 355633 > last docid 20915
docid 355751 > last docid 20915
docid 355867 > last docid 20915
docid 355980 > last docid 20915
docid 356097 > last docid 20915
docid 356205 > last docid 20915
docid 356209 > last docid 20915
docid 356259 > last docid 20915
docid 356263 > last docid 20915
docid 356280 > last docid 20915
docid 356371 > last docid 20915
docid 356469 > last docid 20915
docid 356590 > last docid 20915
docid 356647 > last docid 20915
docid 356649 > last docid 20915
docid 377564 > last docid 20915
docid 377565 > last docid 20915
docid 377662 > last docid 20915
docid 377672 > last docid 20915
docid 377770 > last docid 20915
docid 377881 > last docid 20915
docid 377996 > last docid 20915
docid 378094 > last docid 20915
docid 378096 > last docid 20915
docid 662365 > last docid 20915
docid 662366 > last docid 20915
docid 662463 > last docid 20915
docid 662472 > last docid 20915
docid 662570 > last docid 20915
docid 662681 > last docid 20915
docid 662779 > last docid 20915
docid 662894 > last docid 20915
docid 662900 > last docid 20915
docid 662950 > last docid 20915
docid 662956 > last docid 20915
docid 662975 > last docid 20915
docid 663066 > last docid 20915
docid 663164 > last docid 20915
docid 663283 > last docid 20915
docid 663339 > last docid 20915
docid 663447 > last docid 20915
docid 663449 > last docid 20915
docid 925384 > last docid 20915
docid 925385 > last docid 20915
docid 925482 > last docid 20915
docid 925490 > last docid 20915
docid 925588 > last docid 20915
docid 925699 > last docid 20915
docid 925797 > last docid 20915
docid 925799 > last docid 20915
docid 1213087 > last docid 20915
docid 1213088 > last docid 20915
docid 1213185 > last docid 20915
docid 1213203 > last docid 20915
docid 1213301 > last docid 20915
docid 1213412 > last docid 20915
docid 1213525 > last docid 20915
docid 1213627 > last docid 20915
docid 1213735 > last docid 20915
docid 1213841 > last docid 20915
docid 1213946 > last docid 20915
docid 1214052 > last docid 20915
docid 1214054 > last docid 20915
docid 1250559 > last docid 20915
docid 1250560 > last docid 20915
docid 1250657 > last docid 20915
docid 1250672 > last docid 20915
docid 1250770 > last docid 20915
docid 1250881 > last docid 20915
docid 1250994 > last docid 20915
docid 1251092 > last docid 20915
docid 1251194 > last docid 20915
docid 1251300 > last docid 20915
docid 1251408 > last docid 20915
docid 1251415 > last docid 20915
docid 1251465 > last docid 20915
docid 1251470 > last docid 20915
docid 1251473 > last docid 20915
docid 1251489 > last docid 20915
docid 1251580 > last docid 20915
docid 1251678 > last docid 20915
docid 1251792 > last docid 20915
docid 1251907 > last docid 20915
docid 1251909 > last docid 20915
docid 1251959 > last docid 20915
docid 1251961 > last docid 20915
docid 1251997 > last docid 20915
docid 1252088 > last docid 20915
docid 1252186 > last docid 20915
docid 1252299 > last docid 20915
docid 1252409 > last docid 20915
docid 1252525 > last docid 20915
docid 1252636 > last docid 20915
docid 1252738 > last docid 20915
docid 1252855 > last docid 20915
docid 1252953 > last docid 20915
docid 1253069 > last docid 20915
docid 1253182 > last docid 20915
docid 1253304 > last docid 20915
docid 1253414 > last docid 20915
docid 1253524 > last docid 20915
docid 1253528 > last docid 20915
docid 1253578 > last docid 20915
docid 1253582 > last docid 20915
docid 1253598 > last docid 20915
docid 1253689 > last docid 20915
docid 1253787 > last docid 20915
docid 1253900 > last docid 20915
docid 1253955 > last docid 20915
docid 1253957 > last docid 20915
docid 1254007 > last docid 20915
docid 1254009 > last docid 20915
docid 1254026 > last docid 20915
docid 1254117 > last docid 20915
docid 1254215 > last docid 20915
docid 1254326 > last docid 20915
docid 1254427 > last docid 20915
docid 1254429 > last docid 20915
docid 1516364 > last docid 20915
docid 1516365 > last docid 20915
docid 1516462 > last docid 20915
docid 1516472 > last docid 20915
docid 1516570 > last docid 20915
docid 1516681 > last docid 20915
docid 1516788 > last docid 20915
docid 1516841 > last docid 20915
docid 1516843 > last docid 20915
docid 1537758 > last docid 20915
docid 1537759 > last docid 20915
docid 1537856 > last docid 20915
docid 1537866 > last docid 20915
docid 1537964 > last docid 20915
docid 1538075 > last docid 20915
docid 1538187 > last docid 20915
docid 1538303 > last docid 20915
docid 1538306 > last docid 20915
docid 1815527 > last docid 20915
docid 1836649 > last docid 20915
docid 1857770 > last docid 20915
docid 1857867 > last docid 20915
docid 1857873 > last docid 20915
docid 1857971 > last docid 20915
docid 1858082 > last docid 20915
docid 1858084 > last docid 20915
docid 2120019 > last docid 20915
docid 2120020 > last docid 20915
docid 2120117 > last docid 20915
docid 2120125 > last docid 20915
docid 2120223 > last docid 20915
docid 2120334 > last docid 20915
docid 2120440 > last docid 20915
docid 2120442 > last docid 20915
docid 2397960 > last docid 20915
docid 2397961 > last docid 20915
docid 2398058 > last docid 20915
docid 2398090 > last docid 20915
docid 2398188 > last docid 20915
docid 2398299 > last docid 20915
docid 2398398 > last docid 20915
docid 2398454 > last docid 20915
docid 2398562 > last docid 20915
docid 2398614 > last docid 20915
docid 2398731 > last docid 20915
docid 2398847 > last docid 20915
docid 2398947 > last docid 20915
docid 2399045 > last docid 20915
docid 2399155 > last docid 20915
docid 2399264 > last docid 20915
docid 2399372 > last docid 20915
docid 2399475 > last docid 20915
docid 2399575 > last docid 20915
docid 2399578 > last docid 20915
docid 2404751 > last docid 20915
docid 2657999 > last docid 20915
docid 2911246 > last docid 20915
docid 2911343 > last docid 20915
docid 2911356 > last docid 20915
docid 2911454 > last docid 20915
docid 2911565 > last docid 20915
docid 2911680 > last docid 20915
docid 2911787 > last docid 20915
docid 2911889 > last docid 20915
docid 2911990 > last docid 20915
docid 2911993 > last docid 20915
docid 2912043 > last docid 20915
docid 2912046 > last docid 20915
docid 2912064 > last docid 20915
docid 2912155 > last docid 20915
docid 2912253 > last docid 20915
docid 2912357 > last docid 20915
docid 2912480 > last docid 20915
docid 2912594 > last docid 20915
docid 2912596 > last docid 20915
docid 2912646 > last docid 20915
docid 2912648 > last docid 20915
docid 2912666 > last docid 20915
docid 2912757 > last docid 20915
docid 2912855 > last docid 20915
docid 2912959 > last docid 20915
docid 2913064 > last docid 20915
docid 2913168 > last docid 20915
docid 2913174 > last docid 20915
docid 2913224 > last docid 20915
docid 2913230 > last docid 20915
docid 2913245 > last docid 20915
docid 2913336 > last docid 20915
docid 2913434 > last docid 20915
docid 2913535 > last docid 20915
docid 2913537 > last docid 20915
docid 2965680 > last docid 20915
docid 2965681 > last docid 20915
docid 2965778 > last docid 20915
docid 2965784 > last docid 20915
docid 2965882 > last docid 20915
docid 2965993 > last docid 20915
docid 2965996 > last docid 20915
docid 2986911 > last docid 20915
docid 3115429 > last docid 20915
docid 3243946 > last docid 20915
docid 3244043 > last docid 20915
docid 3244052 > last docid 20915
docid 3244150 > last docid 20915
docid 3244261 > last docid 20915
docid 3244367 > last docid 20915
docid 3244468 > last docid 20915
docid 3244470 > last docid 20915
docid 3244520 > last docid 20915
docid 3244522 > last docid 20915
docid 3244572 > last docid 20915
docid 3244663 > last docid 20915
docid 3244761 > last docid 20915
docid 3244860 > last docid 20915
docid 3244983 > last docid 20915
docid 3245081 > last docid 20915
docid 3245203 > last docid 20915
docid 3245320 > last docid 20915
docid 3245433 > last docid 20915
docid 3245548 > last docid 20915
docid 3245665 > last docid 20915
docid 3245779 > last docid 20915
docid 3245877 > last docid 20915
docid 3245973 > last docid 20915
docid 3246096 > last docid 20915
docid 3246205 > last docid 20915
docid 3246259 > last docid 20915
docid 3246311 > last docid 20915
docid 3246360 > last docid 20915
docid 3246461 > last docid 20915
docid 3246576 > last docid 20915
docid 3246634 > last docid 20915
docid 3246639 > last docid 20915
docid 3246689 > last docid 20915
docid 3246694 > last docid 20915
docid 3246708 > last docid 20915
docid 3246799 > last docid 20915
docid 3246897 > last docid 20915
docid 3246995 > last docid 20915
docid 3246997 > last docid 20915
docid 3247047 > last docid 20915
docid 3247049 > last docid 20915
docid 3247064 > last docid 20915
docid 3247155 > last docid 20915
docid 3247253 > last docid 20915
docid 3247308 > last docid 20915
docid 3247310 > last docid 20915
docid 3302356 > last docid 20915
docid 3302357 > last docid 20915
docid 3302454 > last docid 20915
docid 3302460 > last docid 20915
docid 3302558 > last docid 20915
docid 3302669 > last docid 20915
docid 3302671 > last docid 20915
docid 3564606 > last docid 20915
docid 3564607 > last docid 20915
docid 3564704 > last docid 20915
docid 3564736 > last docid 20915
docid 3564834 > last docid 20915
docid 3564945 > last docid 20915
docid 3564998 > last docid 20915
docid 3565106 > last docid 20915
docid 3565223 > last docid 20915
docid 3565329 > last docid 20915
docid 3565449 > last docid 20915
docid 3565562 > last docid 20915
docid 3565613 > last docid 20915
docid 3565714 > last docid 20915
docid 3565817 > last docid 20915
docid 3565868 > last docid 20915
docid 3565974 > last docid 20915
docid 3566076 > last docid 20915
docid 3566195 > last docid 20915
docid 3566197 > last docid 20915
docid 3826816 > last docid 20915
docid 3826817 > last docid 20915
docid 3826914 > last docid 20915
docid 3826932 > last docid 20915
docid 3827030 > last docid 20915
docid 3827141 > last docid 20915
docid 3827192 > last docid 20915
docid 3827245 > last docid 20915
docid 3827361 > last docid 20915
docid 3827484 > last docid 20915
docid 3827596 > last docid 20915
docid 3827648 > last docid 20915
docid 3827650 > last docid 20915
docid 4110790 > last docid 20915
docid 4110791 > last docid 20915
docid 4110888 > last docid 20915
docid 4110898 > last docid 20915
docid 4110996 > last docid 20915
docid 4111107 > last docid 20915
docid 4111213 > last docid 20915
docid 4111263 > last docid 20915
docid 4111266 > last docid 20915
docid 4116589 > last docid 20915
docid 4391928 > last docid 20915
docid 4667266 > last docid 20915
docid 4667363 > last docid 20915
docid 4667376 > last docid 20915
docid 4667474 > last docid 20915
docid 4667585 > last docid 20915
docid 4667637 > last docid 20915
docid 4667746 > last docid 20915
docid 4667854 > last docid 20915
docid 4667954 > last docid 20915
docid 4667958 > last docid 20915
docid 4668008 > last docid 20915
docid 4668012 > last docid 20915
docid 4668033 > last docid 20915
docid 4668124 > last docid 20915
docid 4668222 > last docid 20915
docid 4668262 > last docid 20915
docid 4668265 > last docid 20915
docid 4821205 > last docid 20915
docid 4939148 > last docid 20915
docid 5057090 > last docid 20915
docid 5057188 > last docid 20915
docid 5057193 > last docid 20915
docid 5057291 > last docid 20915
docid 5057402 > last docid 20915
docid 5057814 > last docid 20915
docid 5057864 > last docid 20915
docid 5057869 > last docid 20915
docid 5057886 > last docid 20915
docid 5057890 > last docid 20915
docid 5057900 > last docid 20915
docid 5057904 > last docid 20915
docid 5057910 > last docid 20915
docid 5057916 > last docid 20915
docid 5057919 > last docid 20915
docid 5057923 > last docid 20915
docid 5057925 > last docid 20915
docid 5057928 > last docid 20915
docid 5057931 > last docid 20915
docid 5057933 > last docid 20915
docid 5057935 > last docid 20915
docid 5057938 > last docid 20915
docid 5057943 > last docid 20915
docid 5057946 > last docid 20915
docid 5057948 > last docid 20915
docid 5057950 > last docid 20915
docid 5057952 > last docid 20915
docid 5057957 > last docid 20915
docid 5057959 > last docid 20915
docid 5057962 > last docid 20915
docid 5057964 > last docid 20915
docid 5057967 > last docid 20915
docid 5057969 > last docid 20915
docid 5057971 > last docid 20915
docid 5057973 > last docid 20915
docid 5057975 > last docid 20915
docid 5057977 > last docid 20915
docid 5057979 > last docid 20915
docid 5057981 > last docid 20915
docid 5057985 > last docid 20915
docid 5057989 > last docid 20915
docid 5057992 > last docid 20915
docid 5057994 > last docid 20915
docid 5057999 > last docid 20915
docid 5058002 > last docid 20915
docid 5058006 > last docid 20915
docid 5058010 > last docid 20915
docid 5058015 > last docid 20915
docid 5058021 > last docid 20915
docid 5058027 > last docid 20915
docid 5058029 > last docid 20915
docid 5058031 > last docid 20915
docid 5058033 > last docid 20915
docid 5058035 > last docid 20915
docid 5058042 > last docid 20915
docid 5058049 > last docid 20915
docid 5058057 > last docid 20915
docid 5058065 > last docid 20915
docid 5058074 > last docid 20915
docid 5058083 > last docid 20915
docid 5058088 > last docid 20915
docid 5058090 > last docid 20915
docid 5058094 > last docid 20915
docid 5058099 > last docid 20915
docid 5058102 > last docid 20915
docid 5058105 > last docid 20915
docid 5058108 > last docid 20915
docid 5058113 > last docid 20915
docid 5058116 > last docid 20915
docid 5058121 > last docid 20915
docid 5058123 > last docid 20915
docid 5058126 > last docid 20915
docid 5058131 > last docid 20915
docid 5058138 > last docid 20915
docid 5058141 > last docid 20915
docid 5058144 > last docid 20915
docid 5058146 > last docid 20915
docid 5058148 > last docid 20915
docid 5058153 > last docid 20915
docid 5058159 > last docid 20915
docid 5058161 > last docid 20915
docid 5058163 > last docid 20915
docid 5058165 > last docid 20915
docid 5058171 > last docid 20915
docid 5058174 > last docid 20915
docid 5058176 > last docid 20915
docid 5058179 > last docid 20915
docid 5058186 > last docid 20915
docid 5058188 > last docid 20915
docid 5058190 > last docid 20915
docid 5058195 > last docid 20915
docid 5058197 > last docid 20915
docid 5058200 > last docid 20915
docid 5058203 > last docid 20915
docid 5058206 > last docid 20915
docid 5058208 > last docid 20915
termfreq 1 != # of entries 458
collfreq 3 != sum wdf 3243515
lastdid 20915 != last did 5058208
docid 295877 > last docid 295873
lastdid 295873 != last did 295877
docid 323174 > last docid 323170
lastdid 323170 != last did 323174
docid 46977 > last docid 46869
docid 47381 > last docid 46869
termfreq 106 != # of entries 107
collfreq 639 != sum wdf 643
collfreq 128641 != sum wdf 128645
First did in this chunk is <= last in prev chunk
termfreq 26171 != # of entries 26209
collfreq 573463 != sum wdf 592306
termfreq 725 != # of entries 778
collfreq 14831 != sum wdf 15173
termfreq 363 != # of entries 364
collfreq 3695 != sum wdf 3697
termfreq 211 != # of entries 212
collfreq 2126 != sum wdf 2128
collfreq 3548 != sum wdf 3552
docid 20986 > last docid 20983
docid 20987 > last docid 20983
termfreq 2418 != # of entries 2698
collfreq 61919 != sum wdf 71256
collfreq 197618 != sum wdf 197622
docid 262032 > last docid 261935
docid 262044 > last docid 261935
docid 262154 > last docid 261935
docid 262257 > last docid 261935
docid 262372 > last docid 261935
docid 262477 > last docid 261935
docid 262596 > last docid 261935
docid 262598 > last docid 261935
docid 314211 > last docid 261935
docid 314212 > last docid 261935
docid 314309 > last docid 261935
docid 314318 > last docid 261935
docid 314428 > last docid 261935
docid 314531 > last docid 261935
docid 314629 > last docid 261935
docid 314735 > last docid 261935
docid 314755 > last docid 261935
docid 314805 > last docid 261935
docid 314812 > last docid 261935
docid 314817 > last docid 261935
docid 314827 > last docid 261935
docid 314845 > last docid 261935
docid 314936 > last docid 261935
docid 315042 > last docid 261935
docid 315158 > last docid 261935
docid 315259 > last docid 261935
docid 315292 > last docid 261935
docid 315342 > last docid 261935
docid 315363 > last docid 261935
docid 315376 > last docid 261935
docid 315403 > last docid 261935
docid 315494 > last docid 261935
docid 315600 > last docid 261935
docid 315710 > last docid 261935
docid 315767 > last docid 261935
docid 315819 > last docid 261935
docid 315917 > last docid 261935
docid 316016 > last docid 261935
docid 316117 > last docid 261935
docid 316218 > last docid 261935
docid 316220 > last docid 261935
docid 578155 > last docid 261935
docid 578156 > last docid 261935
docid 578253 > last docid 261935
docid 578263 > last docid 261935
docid 578373 > last docid 261935
docid 578476 > last docid 261935
docid 578583 > last docid 261935
docid 578694 > last docid 261935
docid 578696 > last docid 261935
docid 599611 > last docid 261935
docid 599612 > last docid 261935
docid 599709 > last docid 261935
docid 599722 > last docid 261935
docid 599832 > last docid 261935
docid 599935 > last docid 261935
docid 600031 > last docid 261935
docid 600082 > last docid 261935
docid 600200 > last docid 261935
docid 600304 > last docid 261935
docid 600306 > last docid 261935
docid 600356 > last docid 261935
docid 600358 > last docid 261935
docid 600372 > last docid 261935
docid 600463 > last docid 261935
docid 600569 > last docid 261935
docid 600675 > last docid 261935
docid 600677 > last docid 261935
docid 600727 > last docid 261935
docid 600729 > last docid 261935
docid 600748 > last docid 261935
docid 600839 > last docid 261935
docid 600945 > last docid 261935
docid 601048 > last docid 261935
docid 601105 > last docid 261935
docid 601206 > last docid 261935
docid 601208 > last docid 261935
docid 863143 > last docid 261935
docid 863144 > last docid 261935
docid 863241 > last docid 261935
docid 863266 > last docid 261935
docid 863376 > last docid 261935
docid 863479 > last docid 261935
docid 863593 > last docid 261935
docid 863713 > last docid 261935
docid 863811 > last docid 261935
docid 863923 > last docid 261935
docid 864045 > last docid 261935
docid 864155 > last docid 261935
docid 864256 > last docid 261935
docid 864373 > last docid 261935
docid 864481 > last docid 261935
docid 864582 > last docid 261935
docid 864587 > last docid 261935
docid 864637 > last docid 261935
docid 864642 > last docid 261935
docid 864659 > last docid 261935
docid 864750 > last docid 261935
docid 864856 > last docid 261935
docid 864905 > last docid 261935
docid 865028 > last docid 261935
docid 865127 > last docid 261935
docid 865132 > last docid 261935
docid 865182 > last docid 261935
docid 865187 > last docid 261935
docid 865210 > last docid 261935
docid 865301 > last docid 261935
docid 865407 > last docid 261935
docid 865411 > last docid 261935
docid 886326 > last docid 261935
docid 1127347 > last docid 261935
docid 1158485 > last docid 261935
docid 1368367 > last docid 261935
docid 1368464 > last docid 261935
docid 1368470 > last docid 261935
docid 1368580 > last docid 261935
docid 1368682 > last docid 261935
docid 1368685 > last docid 261935
docid 1419245 > last docid 261935
docid 1430845 > last docid 261935
docid 1442444 > last docid 261935
docid 1442541 > last docid 261935
docid 1442547 > last docid 261935
docid 1442657 > last docid 261935
docid 1442759 > last docid 261935
docid 1442761 > last docid 261935
docid 1463857 > last docid 261935
docid 1463858 > last docid 261935
docid 1463955 > last docid 261935
docid 1463963 > last docid 261935
docid 1464073 > last docid 261935
docid 1464175 > last docid 261935
docid 1464227 > last docid 261935
docid 1464229 > last docid 261935
docid 1504157 > last docid 261935
docid 1504158 > last docid 261935
docid 1504255 > last docid 261935
docid 1504267 > last docid 261935
docid 1504377 > last docid 261935
docid 1504479 > last docid 261935
docid 1504600 > last docid 261935
docid 1504711 > last docid 261935
docid 1504827 > last docid 261935
docid 1504829 > last docid 261935
docid 1797122 > last docid 261935
docid 1797123 > last docid 261935
docid 1797221 > last docid 261935
docid 1797312 > last docid 261935
docid 1797418 > last docid 261935
docid 1797536 > last docid 261935
docid 1797729 > last docid 261935
docid 1798072 > last docid 261935
docid 2138807 > last docid 261935
docid 2139310 > last docid 261935
docid 2143125 > last docid 261935
docid 2145419 > last docid 261935
docid 2146180 > last docid 261935
docid 2146193 > last docid 261935
docid 2146199 > last docid 261935
docid 2147369 > last docid 261935
docid 2148297 > last docid 261935
docid 2148339 > last docid 261935
docid 2148381 > last docid 261935
docid 2148474 > last docid 261935
docid 2149781 > last docid 261935
docid 2149802 > last docid 261935
docid 2149880 > last docid 261935
docid 2150028 > last docid 261935
docid 2150365 > last docid 261935
docid 2150394 > last docid 261935
docid 2150502 > last docid 261935
docid 2150736 > last docid 261935
docid 2150744 > last docid 261935
docid 2151199 > last docid 261935
docid 2151247 > last docid 261935
docid 2151326 > last docid 261935
docid 2151395 > last docid 261935
docid 2151413 > last docid 261935
docid 2152112 > last docid 261935
docid 2152125 > last docid 261935
docid 2152133 > last docid 261935
docid 2152624 > last docid 261935
docid 2152639 > last docid 261935
docid 2153119 > last docid 261935
docid 2153415 > last docid 261935
docid 2154440 > last docid 261935
docid 2154450 > last docid 261935
docid 2154454 > last docid 261935
docid 2154648 > last docid 261935
docid 2154676 > last docid 261935
docid 2154677 > last docid 261935
docid 2156538 > last docid 261935
docid 2158188 > last docid 261935
docid 2158338 > last docid 261935
docid 2158941 > last docid 261935
docid 2159214 > last docid 261935
docid 2159954 > last docid 261935
docid 2161057 > last docid 261935
docid 2162409 > last docid 261935
docid 2163981 > last docid 261935
docid 2164018 > last docid 261935
docid 2181898 > last docid 261935
docid 2181899 > last docid 261935
docid 2182349 > last docid 261935
docid 2182350 > last docid 261935
docid 2182429 > last docid 261935
docid 2182430 > last docid 261935
docid 2182586 > last docid 261935
docid 2182589 > last docid 261935
docid 2182590 > last docid 261935
docid 2183695 > last docid 261935
docid 2183715 > last docid 261935
docid 2183812 > last docid 261935
docid 2184896 > last docid 261935
docid 2184897 > last docid 261935
docid 2184958 > last docid 261935
docid 2184987 > last docid 261935
docid 2185013 > last docid 261935
docid 2185419 > last docid 261935
docid 2196906 > last docid 261935
docid 2212540 > last docid 261935
docid 2213624 > last docid 261935
docid 2214663 > last docid 261935
docid 2214831 > last docid 261935
docid 2260784 > last docid 261935
docid 2260785 > last docid 261935
docid 2274834 > last docid 261935
docid 2285389 > last docid 261935
docid 2304230 > last docid 261935
docid 2322946 > last docid 261935
docid 2354609 > last docid 261935
docid 2376698 > last docid 261935
docid 2384089 > last docid 261935
docid 2390234 > last docid 261935
docid 2394700 > last docid 261935
docid 2394746 > last docid 261935
docid 2394796 > last docid 261935
docid 2394799 > last docid 261935
docid 2396029 > last docid 261935
docid 2396095 > last docid 261935
docid 2396125 > last docid 261935
docid 2396156 > last docid 261935
docid 2396159 > last docid 261935
docid 2396548 > last docid 261935
docid 2397801 > last docid 261935
docid 2397803 > last docid 261935
docid 2397804 > last docid 261935
docid 2397808 > last docid 261935
docid 2397812 > last docid 261935
docid 2398671 > last docid 261935
docid 2399217 > last docid 261935
docid 2399220 > last docid 261935
docid 2399221 > last docid 261935
docid 2399222 > last docid 261935
docid 2399226 > last docid 261935
docid 2399791 > last docid 261935
docid 2399944 > last docid 261935
docid 2399945 > last docid 261935
docid 2400019 > last docid 261935
docid 2400024 > last docid 261935
docid 2400042 > last docid 261935
docid 2400255 > last docid 261935
docid 2400274 > last docid 261935
docid 2400278 > last docid 261935
docid 2400385 > last docid 261935
docid 2400395 > last docid 261935
docid 2400759 > last docid 261935
docid 2400761 > last docid 261935
docid 2400762 > last docid 261935
docid 2400769 > last docid 261935
docid 2400771 > last docid 261935
docid 2400778 > last docid 261935
docid 2400780 > last docid 261935
docid 2400835 > last docid 261935
docid 2400840 > last docid 261935
docid 2400851 > last docid 261935
docid 2401024 > last docid 261935
docid 2401029 > last docid 261935
docid 2401033 > last docid 261935
docid 2401422 > last docid 261935
docid 2401430 > last docid 261935
docid 2401436 > last docid 261935
docid 2401591 > last docid 261935
docid 2401598 > last docid 261935
docid 2401663 > last docid 261935
docid 2401683 > last docid 261935
docid 2402282 > last docid 261935
docid 2402286 > last docid 261935
docid 2402287 > last docid 261935
docid 2402292 > last docid 261935
docid 2402301 > last docid 261935
docid 2402302 > last docid 261935
docid 2402303 > last docid 261935
docid 2402304 > last docid 261935
docid 2403350 > last docid 261935
docid 2403440 > last docid 261935
docid 2403775 > last docid 261935
docid 2403805 > last docid 261935
docid 2404745 > last docid 261935
docid 2406004 > last docid 261935
docid 2406009 > last docid 261935
docid 2406082 > last docid 261935
docid 2406172 > last docid 261935
docid 2406753 > last docid 261935
docid 2407025 > last docid 261935
docid 2407139 > last docid 261935
docid 2408653 > last docid 261935
docid 2409056 > last docid 261935
docid 2409068 > last docid 261935
docid 2409760 > last docid 261935
docid 2411876 > last docid 261935
docid 2415546 > last docid 261935
docid 2415730 > last docid 261935
docid 2416608 > last docid 261935
docid 2417318 > last docid 261935
docid 2417437 > last docid 261935
docid 2417709 > last docid 261935
docid 2417817 > last docid 261935
docid 2418531 > last docid 261935
docid 2418788 > last docid 261935
docid 2420627 > last docid 261935
docid 2421542 > last docid 261935
docid 2422784 > last docid 261935
docid 2423232 > last docid 261935
docid 2423233 > last docid 261935
docid 2424293 > last docid 261935
docid 2425879 > last docid 261935
docid 2427887 > last docid 261935
docid 2428083 > last docid 261935
docid 2429230 > last docid 261935
docid 2429380 > last docid 261935
docid 2429541 > last docid 261935
docid 2430676 > last docid 261935
docid 2430757 > last docid 261935
docid 2432040 > last docid 261935
docid 2434814 > last docid 261935
docid 2435329 > last docid 261935
docid 2435454 > last docid 261935
docid 2459988 > last docid 261935
docid 2467226 > last docid 261935
docid 2470936 > last docid 261935
docid 2477485 > last docid 261935
docid 2477702 > last docid 261935
docid 2479541 > last docid 261935
docid 2479638 > last docid 261935
docid 2479644 > last docid 261935
docid 2479754 > last docid 261935
docid 2479856 > last docid 261935
docid 2479858 > last docid 261935
docid 2532001 > last docid 261935
docid 2532002 > last docid 261935
docid 2532099 > last docid 261935
docid 2532118 > last docid 261935
docid 2532228 > last docid 261935
docid 2532330 > last docid 261935
docid 2532453 > last docid 261935
docid 2532564 > last docid 261935
docid 2532687 > last docid 261935
docid 2532792 > last docid 261935
docid 2532910 > last docid 261935
docid 2533014 > last docid 261935
docid 2533125 > last docid 261935
docid 2533131 > last docid 261935
docid 2533181 > last docid 261935
docid 2533185 > last docid 261935
docid 2533187 > last docid 261935
docid 2533189 > last docid 261935
docid 2533214 > last docid 261935
docid 2533305 > last docid 261935
docid 2533411 > last docid 261935
docid 2533528 > last docid 261935
docid 2533634 > last docid 261935
docid 2533750 > last docid 261935
docid 2533848 > last docid 261935
docid 2533957 > last docid 261935
docid 2534068 > last docid 261935
docid 2534070 > last docid 261935
docid 2554465 > last docid 261935
docid 2554466 > last docid 261935
docid 2554563 > last docid 261935
docid 2554585 > last docid 261935
docid 2554695 > last docid 261935
docid 2554797 > last docid 261935
docid 2554920 > last docid 261935
docid 2555031 > last docid 261935
docid 2555150 > last docid 261935
docid 2555265 > last docid 261935
docid 2555371 > last docid 261935
docid 2555470 > last docid 261935
docid 2555585 > last docid 261935
docid 2555696 > last docid 261935
docid 2555699 > last docid 261935
docid 2660815 > last docid 261935
docid 2825214 > last docid 261935
docid 2989612 > last docid 261935
docid 2989709 > last docid 261935
docid 2989730 > last docid 261935
docid 2989840 > last docid 261935
docid 2989942 > last docid 261935
docid 2990065 > last docid 261935
docid 2990176 > last docid 261935
docid 2990291 > last docid 261935
docid 2990399 > last docid 261935
docid 2990516 > last docid 261935
docid 2990617 > last docid 261935
docid 2990629 > last docid 261935
docid 2990679 > last docid 261935
docid 2990686 > last docid 261935
docid 2990690 > last docid 261935
docid 2990693 > last docid 261935
docid 2990720 > last docid 261935
docid 2990811 > last docid 261935
docid 2990917 > last docid 261935
docid 2991034 > last docid 261935
docid 2991140 > last docid 261935
docid 2991256 > last docid 261935
docid 2991371 > last docid 261935
docid 2991483 > last docid 261935
docid 2991588 > last docid 261935
docid 2991699 > last docid 261935
docid 2991701 > last docid 261935
docid 3261338 > last docid 261935
termfreq 1 != # of entries 423
collfreq 1 != sum wdf 5430479
lastdid 261935 != last did 3261338
collfreq 24746 != sum wdf 24750
collfreq 65388 != sum wdf 65392
termfreq 66671 != # of entries 66685
collfreq 1936000 != sum wdf 1937849
termfreq 486 != # of entries 592
collfreq 8681 != sum wdf 27243
Failed to unpack wdf
No last chunk for term 'Zre\x04\fo'
collfreq 179379 != sum wdf 179383
termfreq 392 != # of entries 395
collfreq 21293 != sum wdf 21301
collfreq 55 != sum wdf 59
collfreq 261223 != sum wdf 261227
collfreq 1 != sum wdf 5
collfreq 1071706 != sum wdf 1071710
docid 2080 > last docid 2076
collfreq 51416 != sum wdf 51420
termfreq 2055 != # of entries 2061
collfreq 53739 != sum wdf 53759
collfreq 1080 != sum wdf 1084
collfreq 2 != sum wdf 6
termfreq 6860 != # of entries 6876
collfreq 51054 != sum wdf 51657
termfreq 1093 != # of entries 1116
collfreq 35366 != sum wdf 35408
collfreq 9504 != sum wdf 9508
collfreq 19438 != sum wdf 19442
collfreq 70 != sum wdf 74
collfreq 10148080 != sum wdf 10148084
collfreq 250 != sum wdf 254
collfreq 898103 != sum wdf 898107
termfreq 299 != # of entries 300
collfreq 4276 != sum wdf 4279
collfreq 70165 != sum wdf 70169
termfreq 5 != # of entries 423
collfreq 11 != sum wdf 3529494
collfreq 90939 != sum wdf 90943
postlist table errors found: 962

position:
blocksize=8K items=19047625 firstunused=46353 revision=1 levels=2 root=520
B-tree checked okay
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
position table: Junk after position data
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
position table: Junk after position data
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
Position list entry for document 63805 which doesn't exist or has no terms
position table errors found: 129

spelling:
Lazily created, and not yet used.

synonym:
Lazily created, and not yet used.

Total errors found: 1094

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Internal error: Message without type term
  2023-07-03 10:47   ` Peter P.
@ 2023-07-03 12:26     ` David Bremner
  2023-07-03 12:48       ` Peter P.
  2023-07-04  0:20       ` Olly Betts
  0 siblings, 2 replies; 7+ messages in thread
From: David Bremner @ 2023-07-03 12:26 UTC (permalink / raw)
  To: Peter P.; +Cc: notmuch, xapian-discuss

"Peter P." <peterparker@fastmail.com> writes:

> I ran xapian-check on ~/.notmuch/xapian and include its messages below at the
> end of this mail. Everyone please forgive me for pasting 1121 there. :)
>

H'mm. It doesn't look familiar to me, but I will check with xapian
experts to see if the failure mode is known/fixable. I'd guess probably
not fixable.

>> 2)  Move the database out of the way, re-run notmuch new,
>> and restore your state using "notmuch restore < notmuch-db.txt"
>  
> I'd be fine regenerating the entire database without a backup dump even,
> I don't think there is anything in there that can't be regernerated,
> no?

The main thing that would be lost is tags that are not synched to
maildir flags. In the "standard" workflow "inbox" is such a tag.

> How could I move the existing database out of the way? I have the
> following files in notmuch's directory:
>
> ~/.notmuch/xapian$ ls -1
> 	docdata.glass
> 	flintlock
> 	iamglass
> 	position.glass
> 	postlist.glass
> 	termlist.glass

just

$ mv ~/.notmuch/xapian ~/.notmuch/xapian.bak

(assuming that partition has space)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Internal error: Message without type term
  2023-07-03 12:26     ` David Bremner
@ 2023-07-03 12:48       ` Peter P.
  2023-07-04  0:20       ` Olly Betts
  1 sibling, 0 replies; 7+ messages in thread
From: Peter P. @ 2023-07-03 12:48 UTC (permalink / raw)
  To: David Bremner; +Cc: notmuch

(to notmuch-list only)

* David Bremner <david@tethera.net> [2023-07-03 14:26]:
[...]

> >> 2)  Move the database out of the way, re-run notmuch new,
> >> and restore your state using "notmuch restore < notmuch-db.txt"
> >  
> > I'd be fine regenerating the entire database without a backup dump even,
> > I don't think there is anything in there that can't be regernerated,
> > no?
> 
> The main thing that would be lost is tags that are not synched to
> maildir flags. In the "standard" workflow "inbox" is such a tag.

I gladly re-created the database and the error is gone. Do you want me
to keep to old database in case someone wants to research this issue further?

Much appreciated,
Peter

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Internal error: Message without type term
  2023-07-03 12:26     ` David Bremner
  2023-07-03 12:48       ` Peter P.
@ 2023-07-04  0:20       ` Olly Betts
  2023-07-04 20:37         ` Peter P.
  1 sibling, 1 reply; 7+ messages in thread
From: Olly Betts @ 2023-07-04  0:20 UTC (permalink / raw)
  To: David Bremner; +Cc: Peter P., notmuch, xapian-discuss

On Mon, Jul 03, 2023 at 02:26:03PM +0200, David Bremner wrote:
> "Peter P." <peterparker@fastmail.com> writes:
> 
> > I ran xapian-check on ~/.notmuch/xapian and include its messages
> > below at the end of this mail. Everyone please forgive me for
> > pasting 1121 there. :)
> 
> H'mm. It doesn't look familiar to me, but I will check with xapian
> experts to see if the failure mode is known/fixable. I'd guess probably
> not fixable.

Currently we don't have a database fixing tool for glass databases (the
"fix" mode in xapian-check can recreate base files for the older chert
database format, but glass doesn't have these base files which
eradicated the failure mode of them sometimes getting truncated to zero
size on power failure or OS crash).

Some of the problems reported have an obvious fix, but we don't have
existing code to fix them, and some look like they are probably due to
data being overwritten so fixing everything to be consistent probably
wouldn't actually give a database that entirely matches your email
anyway.

Was this database originally created by Xapian < 1.4.22?  It looks
like it could be the result of the bug fixed in 1.4.22 with handling
commit() failure on disk full.

> >> 2)  Move the database out of the way, re-run notmuch new,
> >> and restore your state using "notmuch restore < notmuch-db.txt"
> >  
> > I'd be fine regenerating the entire database without a backup dump even,
> > I don't think there is anything in there that can't be regernerated,
> > no?
> 
> The main thing that would be lost is tags that are not synched to
> maildir flags. In the "standard" workflow "inbox" is such a tag.

If there's tag data in the database which isn't backed up or synced to
maildir flags, you may be able to rescue it using:

https://git.xapian.org/?p=xapian;a=blob;f=README.notmuch;hb=refs/heads/notmuch-tag-rescue-hack

This creates a file with the tag data in the format `notmuch restore`
expects.  I'd expect this would work for your database as the termlist
table is mostly OK.

Cheers,
    Olly

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Internal error: Message without type term
  2023-07-04  0:20       ` Olly Betts
@ 2023-07-04 20:37         ` Peter P.
  0 siblings, 0 replies; 7+ messages in thread
From: Peter P. @ 2023-07-04 20:37 UTC (permalink / raw)
  To: David Bremner, notmuch, xapian-discuss

Olly, David, list(s),

* Olly Betts <olly@survex.com> [2023-07-04 02:20]:
[...]
> Was this database originally created by Xapian < 1.4.22?  It looks
> like it could be the result of the bug fixed in 1.4.22 with handling
> commit() failure on disk full.
Indeed I have Debian's libxapian30 package installed which reports
version 1.4.22-1 and I *might* have ran out of disk space in the not too
distant past.

> > >> 2)  Move the database out of the way, re-run notmuch new,
> > >> and restore your state using "notmuch restore < notmuch-db.txt"
> > >  
> > > I'd be fine regenerating the entire database without a backup dump even,
> > > I don't think there is anything in there that can't be regernerated,
> > > no?
> > 
> > The main thing that would be lost is tags that are not synched to
> > maildir flags. In the "standard" workflow "inbox" is such a tag.
> 
> If there's tag data in the database which isn't backed up or synced to
> maildir flags, you may be able to rescue it using:
> 
> https://git.xapian.org/?p=xapian;a=blob;f=README.notmuch;hb=refs/heads/notmuch-tag-rescue-hack
> 
> This creates a file with the tag data in the format `notmuch restore`
> expects.  I'd expect this would work for your database as the termlist
> table is mostly OK.
Thank you, I did meanwhile recreate the database from scratch and it
seems to work™.

best, Peter\r

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-07-04 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03  7:47 Internal error: Message without type term Peter P.
2023-07-03 10:34 ` David Bremner
2023-07-03 10:47   ` Peter P.
2023-07-03 12:26     ` David Bremner
2023-07-03 12:48       ` Peter P.
2023-07-04  0:20       ` Olly Betts
2023-07-04 20:37         ` Peter P.

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