Hi, Right after building lei from source, I get an error running the 'q' command:
[nfraprado@notapiano public-inbox]$ ./lei.sh q -I https://lore.kernel.org/all/ -o ~/.mail/lei/test --threads --dedupe=mid 'dfn:mt8192.dtsi rt:1.month.ago..' open(/home/nfraprado/.local/share/lei/store/mail_sync.sqlite3): No such file or directory at /home/nfraprado/ext/git/public-inbox/lib/PublicInbox/LeiQuery.pm line 37. That's somewhat reasonable since I haven't issued an init first. But if I then try to init: [nfraprado@notapiano public-inbox]$ ./lei.sh init # leistore.dir=/home/nfraprado/.local/share/lei/store newly initialized [nfraprado@notapiano public-inbox]$ ./lei.sh init # leistore.dir=/home/nfraprado/.local/share/lei/store newly initialized No store is ever created. If I reboot (or issue the 'e' sysrq to basically restart userspace) and then run the init command right away, it does work. So it seems to me that there's some state that is kept after running the q command which blocks init from working, hence requiring the reboot to clear that state. Not quite sure if it's a Perl thing or a bug in public-inbox, but since it's unusual behavior (and took me some time to find out) I figured I'd report it. Making 'q' run 'init' if not already done so could also help to work around this issue. Thanks, Nícolas
