Skip to content
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

database disk image is malformed #237

Open
Shooter3k opened this issue Jul 29, 2024 · 2 comments
Open

database disk image is malformed #237

Shooter3k opened this issue Jul 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Shooter3k
Copy link

Shooter3k commented Jul 29, 2024

Describe the bug
error proceeds even after uninstalling and re-installing ripgrep_all

It was working for a few minutes and then all the sudden, it started giving me this error every time I search a zip file. How do I fix this?

To Reproduce

Run command:
rga "I am a computer" /mnt/z/test_archive.zip

Output


$ rga  "I am a computer" /mnt/z/test_archive.zip
/mnt/z/test_archive.zip: preprocessor command failed: '"/home/home/.cargo/bin/rga-preproc" "/mnt/z/test_archive.zip"':
-------------------------------------------------------------------------------
/mnt/z/test_archive.zip adapter: zip
Error: during preprocessing

Caused by:
    0: run_adapter(/mnt/z/test_archive.zip)
    1: Rusqlite("database disk image is malformed")
    2: database disk image is malformed
    3: Error code 11: The database disk image is malformed
-------------------------------------------------------------------------------

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System and Version
Ubuntu 22 on Windows 10

Output of rga --version
ripgrep-all 0.10.6

@Shooter3k Shooter3k added the bug Something isn't working label Jul 29, 2024
@phiresky
Copy link
Owner

phiresky commented Jul 29, 2024

Is your home directory mounted from a network drive? it should be very hard to corrupt the database.

you can delete it with rm -r ~/.cache/ripgrep-all

@Shooter3k
Copy link
Author

Shooter3k commented Jul 29, 2024

Is your home directory mounted from a network drive? it should be very hard to corrupt the database.

you can delete it with rm -r ~/.cache/ripgrep-all

My home directory is not mounted on a network drive. But, it is running in WSL on windows and sometimes that can mess with things not normally messed with.

Running that rm -r fixed it! Thank you...

Now I'm just running into thousands of these #238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants