unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* How to delete caches
@ 2021-11-20 15:30 Johannes Altmanninger
  2021-11-20 16:36 ` lei q error after deleting cache (can't find mail_sync.sqlite3) Johannes Altmanninger
  2021-11-20 17:09 ` How to delete caches Kyle Meyer
  0 siblings, 2 replies; 5+ messages in thread
From: Johannes Altmanninger @ 2021-11-20 15:30 UTC (permalink / raw)
  To: meta

I've been using lei from the 1.7.0 release, which works great.

I had some unrelated problems with one of the created maildirs so I deleted
said maildir.  Now I can't recreate the maildir. I tried deleting all
persistent data but got an error:

	$ rm -rf the-maildir ~/.local/share/lei ~/.cache/{public-inbox,lei}
	$ lei q -I https://lore.kernel.org/git/ -o the-maildir rt:1.week.ago..
	failed to open /home/johannes/.cache/lei/all_locals_ever.git/lei_ale.state: No such file or directory
	 at /usr/share/perl5/vendor_perl/PublicInbox/LeiQuery.pm line 117.

A quick look at strace doesn't show access to any other files in $HOME

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

* lei q error after deleting cache (can't find mail_sync.sqlite3)
  2021-11-20 15:30 How to delete caches Johannes Altmanninger
@ 2021-11-20 16:36 ` Johannes Altmanninger
  2021-11-20 17:09 ` How to delete caches Kyle Meyer
  1 sibling, 0 replies; 5+ messages in thread
From: Johannes Altmanninger @ 2021-11-20 16:36 UTC (permalink / raw)
  To: meta

On Sat, Nov 20, 2021 at 04:30:57PM +0100, Johannes Altmanninger wrote:
> I've been using lei from the 1.7.0 release, which works great.
> 
> I had some unrelated problems with one of the created maildirs so I deleted
> said maildir.  Now I can't recreate the maildir. I tried deleting all
> persistent data but got an error:
> 
> 	$ rm -rf the-maildir ~/.local/share/lei ~/.cache/{public-inbox,lei}
> 	$ lei q -I https://lore.kernel.org/git/ -o the-maildir rt:1.week.ago..
> 	failed to open /home/johannes/.cache/lei/all_locals_ever.git/lei_ale.state: No such file or directory
> 	 at /usr/share/perl5/vendor_perl/PublicInbox/LeiQuery.pm line 117.
> 
> A quick look at strace doesn't show access to any other files in $HOME

This is pretty weird: it works in a temporary home, but only for the first time.

	rm -rf the-maildir someuniquename; HOME=$PWD/someuniquename lei q -I https://public-inbox.org/meta/ -o the-maildir rt:1.day.ago..

When I re-run this command, I get the same error
There seems to be no mention of someuniquename anywhere on my disk (except
in my shell history).

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

* Re: How to delete caches
  2021-11-20 15:30 How to delete caches Johannes Altmanninger
  2021-11-20 16:36 ` lei q error after deleting cache (can't find mail_sync.sqlite3) Johannes Altmanninger
@ 2021-11-20 17:09 ` Kyle Meyer
  2021-11-20 17:14   ` Johannes Altmanninger
  1 sibling, 1 reply; 5+ messages in thread
From: Kyle Meyer @ 2021-11-20 17:09 UTC (permalink / raw)
  To: Johannes Altmanninger; +Cc: meta

Johannes Altmanninger writes:

> I've been using lei from the 1.7.0 release, which works great.
>
> I had some unrelated problems with one of the created maildirs so I deleted
> said maildir.  Now I can't recreate the maildir. I tried deleting all
> persistent data but got an error:
>
> 	$ rm -rf the-maildir ~/.local/share/lei ~/.cache/{public-inbox,lei}
> 	$ lei q -I https://lore.kernel.org/git/ -o the-maildir rt:1.week.ago..
> 	failed to open /home/johannes/.cache/lei/all_locals_ever.git/lei_ale.state: No such file or directory
> 	 at /usr/share/perl5/vendor_perl/PublicInbox/LeiQuery.pm line 117.
>
> A quick look at strace doesn't show access to any other files in $HOME

Have you tried killing the daemon (`lei daemon-kill')?

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

* Re: How to delete caches
  2021-11-20 17:09 ` How to delete caches Kyle Meyer
@ 2021-11-20 17:14   ` Johannes Altmanninger
  2021-11-21 10:19     ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Altmanninger @ 2021-11-20 17:14 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: meta

On Sat, Nov 20, 2021 at 12:09:46PM -0500, Kyle Meyer wrote:
> Johannes Altmanninger writes:
> 
> > I've been using lei from the 1.7.0 release, which works great.
> >
> > I had some unrelated problems with one of the created maildirs so I deleted
> > said maildir.  Now I can't recreate the maildir. I tried deleting all
> > persistent data but got an error:
> >
> > 	$ rm -rf the-maildir ~/.local/share/lei ~/.cache/{public-inbox,lei}
> > 	$ lei q -I https://lore.kernel.org/git/ -o the-maildir rt:1.week.ago..
> > 	failed to open /home/johannes/.cache/lei/all_locals_ever.git/lei_ale.state: No such file or directory
> > 	 at /usr/share/perl5/vendor_perl/PublicInbox/LeiQuery.pm line 117.
> >
> > A quick look at strace doesn't show access to any other files in $HOME
> 
> Have you tried killing the daemon (`lei daemon-kill')?

Thanks, that fixed it. I wasn't aware that there is a daemon

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

* Re: How to delete caches
  2021-11-20 17:14   ` Johannes Altmanninger
@ 2021-11-21 10:19     ` Eric Wong
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Wong @ 2021-11-21 10:19 UTC (permalink / raw)
  To: Johannes Altmanninger; +Cc: Kyle Meyer, meta

Johannes Altmanninger <aclopte@gmail.com> wrote:
> On Sat, Nov 20, 2021 at 12:09:46PM -0500, Kyle Meyer wrote:
> > Johannes Altmanninger writes:
> > 
> > > I've been using lei from the 1.7.0 release, which works great.
> > >
> > > I had some unrelated problems with one of the created maildirs so I deleted
> > > said maildir.  Now I can't recreate the maildir. I tried deleting all
> > > persistent data but got an error:
> > >
> > > 	$ rm -rf the-maildir ~/.local/share/lei ~/.cache/{public-inbox,lei}
> > > 	$ lei q -I https://lore.kernel.org/git/ -o the-maildir rt:1.week.ago..
> > > 	failed to open /home/johannes/.cache/lei/all_locals_ever.git/lei_ale.state: No such file or directory
> > > 	 at /usr/share/perl5/vendor_perl/PublicInbox/LeiQuery.pm line 117.
> > >
> > > A quick look at strace doesn't show access to any other files in $HOME
> > 
> > Have you tried killing the daemon (`lei daemon-kill')?
> 
> Thanks, that fixed it. I wasn't aware that there is a daemon

Yeah, these are holes in our inotify coverage.  We use inotify
(and kevent) to monitor some things (Maildirs, sockets, ...),
but there are some missing pieces, as you've noticed :<

Will try to get around to fixing these at some point...

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

end of thread, other threads:[~2021-11-21 10:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-20 15:30 How to delete caches Johannes Altmanninger
2021-11-20 16:36 ` lei q error after deleting cache (can't find mail_sync.sqlite3) Johannes Altmanninger
2021-11-20 17:09 ` How to delete caches Kyle Meyer
2021-11-20 17:14   ` Johannes Altmanninger
2021-11-21 10:19     ` Eric Wong

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