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