-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during preprocessing: The database file is locked #188
Comments
So far I only encountered this after switching from 0.9.6 to 1.0.0-alpha.5 and after deleting the cache it was fine for me as well. If that only occurs after the upgrade it may be an option to clear the cache for users coming from an older release @phiresky ? |
Yeah this can only appear in 1.0 plus since it's an sqlite error and sqlite wasn't used before. Did this error happen on the first run after upgrading or later? Did this error persist after one run is finished? Deleting the cache shouldn't really affect it since it's (usually) an error that happens if parallel processes write to the cache at the same time. |
On the ~first run of |
I'm having the same issue on x86_64 Windows, also |
Is there any really huge file in that directory that might be taking multiple minutes to process? rga exits before the rga-preproc process? |
It would be good to hear any more detail from someone encountering this. I've changed the code around this a bit but also I haven't really been able to reproduce this myself. |
I'm on 0.10.6 now and tried again, same issue unfortunately.
No, there isn't. All of the files are a few MB max, no single file takes multiple minutes. In my specific use-case, I have a bunch of ZIP files (with a custom extension, like JAR) which contain XML files whose content I want to search. I'm running
|
Describe the bug
When I try to use
rga
, for example asrga foo /home/user
, it fails with the following message:To work around the bug I had to do
rm -rf ~/.cache/ripgrep-all
. After that,rga foo /home/user
began to work normally.To Reproduce
I don't know
Operating System and Version
x86_64 Arch Linux
uname -a
:Linux user 6.4.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 24 Aug 2023 00:38:14 +0000 x86_64 GNU/Linux
Output of
rga --version
ripgrep-all 1.0.0-alpha.5
The text was updated successfully, but these errors were encountered: