phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
6.55k stars 154 forks source link

database disk image is malformed #237

Open Shooter3k opened 1 month ago

Shooter3k commented 1 month ago

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

phiresky commented 1 month ago

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 commented 1 month ago

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 https://github.com/phiresky/ripgrep-all/issues/238