* Error while compacting: inflate failed
@ 2023-07-18 4:17 Peter P.
2023-07-18 10:33 ` David Bremner
0 siblings, 1 reply; 5+ messages in thread
From: Peter P. @ 2023-07-18 4:17 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
Error while compacting: inflate failed (invalid stored block lengths)
with notmuch 0.37-1+b1 on Debian stable. What can I do about this?
Thanks!
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error while compacting: inflate failed
2023-07-18 4:17 Error while compacting: inflate failed Peter P.
@ 2023-07-18 10:33 ` David Bremner
2023-07-19 8:41 ` Peter P.
0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2023-07-18 10:33 UTC (permalink / raw)
To: Peter P., notmuch
"Peter P." <peterparker@fastmail.com> writes:
> I am getting
> Error while compacting: inflate failed (invalid stored block lengths)
> with notmuch 0.37-1+b1 on Debian stable. What can I do about this?
Can you successfully make a backup using "notmuch dump" (or do you have
a recent backup?). In that case I would rebuild the database and restore
the metadata (tags, etc...) from the backup.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error while compacting: inflate failed
2023-07-18 10:33 ` David Bremner
@ 2023-07-19 8:41 ` Peter P.
2023-07-19 10:26 ` David Bremner
0 siblings, 1 reply; 5+ messages in thread
From: Peter P. @ 2023-07-19 8:41 UTC (permalink / raw)
To: David Bremner; +Cc: notmuch
* David Bremner <david@tethera.net> [2023-07-18 12:33]:
> "Peter P." <peterparker@fastmail.com> writes:
>
> > I am getting
> > Error while compacting: inflate failed (invalid stored block lengths)
> > with notmuch 0.37-1+b1 on Debian stable. What can I do about this?
>
> Can you successfully make a backup using "notmuch dump" (or do you have
> a recent backup?). In that case I would rebuild the database and restore
> the metadata (tags, etc...) from the backup.
Thanks David,
$ notmuch dump --output=/tmp/dump
runs without errors, albeit the dumped file is only 6.9MB while the
xapian folder has 851MB. Is this correct?
I can easily rebuild the database even without the dump as I am not
using tags at all by simply deleting the xapian folder, right?
much appreciated!
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error while compacting: inflate failed
2023-07-19 8:41 ` Peter P.
@ 2023-07-19 10:26 ` David Bremner
2023-07-19 15:17 ` Peter P.
0 siblings, 1 reply; 5+ messages in thread
From: David Bremner @ 2023-07-19 10:26 UTC (permalink / raw)
To: Peter P.; +Cc: notmuch
"Peter P." <peterparker@fastmail.com> writes:
>
> Thanks David,
> $ notmuch dump --output=/tmp/dump
> runs without errors, albeit the dumped file is only 6.9MB while the
> xapian folder has 851MB. Is this correct?
Yes, that sounds about right. The dump only includes the tags (it should
more or less make sense if you inspect the first few lines) rather then
the index structures needed for fast lookup, and in particular the dump
does not include the original text of the messages, while the database
effectively does.
> I can easily rebuild the database even without the dump as I am not
> using tags at all by simply deleting the xapian folder, right?
Yes, that should work.
You may also want to check the usual OS facilities for hardware
monitoring (e.g. SMART) in case your disk is unwell (rather than some
fluke filesystem corruption).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Error while compacting: inflate failed
2023-07-19 10:26 ` David Bremner
@ 2023-07-19 15:17 ` Peter P.
0 siblings, 0 replies; 5+ messages in thread
From: Peter P. @ 2023-07-19 15:17 UTC (permalink / raw)
To: David Bremner; +Cc: notmuch
* David Bremner <david@tethera.net> [2023-07-19 12:26]:
> "Peter P." <peterparker@fastmail.com> writes:
> >
> > Thanks David,
> > $ notmuch dump --output=/tmp/dump
> > runs without errors, albeit the dumped file is only 6.9MB while the
> > xapian folder has 851MB. Is this correct?
>
> Yes, that sounds about right. The dump only includes the tags (it should
> more or less make sense if you inspect the first few lines) rather then
> the index structures needed for fast lookup, and in particular the dump
> does not include the original text of the messages, while the database
> effectively does.
>
> > I can easily rebuild the database even without the dump as I am not
> > using tags at all by simply deleting the xapian folder, right?
>
> Yes, that should work.
Thanks again, this fixed the error!
best, P
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-19 15:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 4:17 Error while compacting: inflate failed Peter P.
2023-07-18 10:33 ` David Bremner
2023-07-19 8:41 ` Peter P.
2023-07-19 10:26 ` David Bremner
2023-07-19 15:17 ` 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).