View Single Post
Old 04-04-2026, 11:03 AM   #1
wtx
Junior Member
wtx began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2026
Device: Boox Go7
calibre 9.6 bug -- unable to restore a library due to access violation of metadata.db

I was currently trying calibre version 9.6 on Windows: First, I got the message that my library was corrupt. Followed, after a library restore attempt, with the message that the library could not have been restored due to an access violation of metadata.db. However, process explorer showed that this file was actually already opened by calibre.exe and was thus unavailable to the external python script. The solution (for a calibre library at "P:\Apps\Calibre\Library"):

(1) Close all "Calibre" processes

(2) Open Windows explorer and select the program root path (e.g. "C:\Program Files\Calibre2")

(3) Open a terminal window within this folder (e.g. via "cmd.exe")

(4) Execute: calibredb restore_database --really-do-it --with-library "P:\Apps\Calibre\Library"
wtx is offline   Reply With Quote