3 Comments
User's avatar
KJ's avatar
Feb 20Edited

I have tried to use your script, and it seems like the version of leveldbutil that is available now does not support the way you have used the dump utility. When did you initially clone leveldbutil? I am trying to look back to see if I can clone an old version to use instead. Great article! Thanks

Expand full comment
Ilya Kobzar's avatar

Hi KJ, thank you for your feedback!

I am running MacOS Ventura 13.6, and leveldbutil version 1.23_2, that I installed on 1/20/2025. To run the script, you'll need to place it in the same directory as the WAL log. The script leverages "subprocess.Popen" to launch leveldbutil. If you run this on Windows, you may need to adjust this logic. Note leveldbutil needs to by in your PATH environmental variable.

To troubleshoot you can try running leveldbutil standalone with this syntax, that I leverage in the script: "leveldbutil dump log_file", and see if it returns you the processed WAL log contents.

Expand full comment
KJ's avatar

Thank you for sharing this! I was able to get it up and running with your instruction. Extremely helpful.

Expand full comment