View Single Post
Old 05-28-2024, 08:15 AM   #1
diane55
Member
diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.diane55 is fluent in JavaScript as well as Klingon.
 
Posts: 22
Karma: 4897
Join Date: Dec 2012
Device: Kobo Glo
Impossible to restore the database

Hi,

OS : Windows 10
Calibre : 7.11.0

Today, I found that Calibre database - which is stored on an external disk (1) - is corrupted.
Yesterday, I have checked it via "Maintenance de la bibliothèque/ Vérifier la bibliothèque" : there was no error.

Quote:
Traceback (most recent call last):
File "calibre\db\backend.py", line 1560, in read_tables
File "calibre\db\tables.py", line 117, in read
File "C:\t\t\apsw-42s16m2x\src\cursor.c", line 240, in resetcursor
apsw.CorruptError: CorruptError: database disk image is malformed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\ui.py", line 951, in library_moved
File "calibre\db\legacy.py", line 196, in __init__
File "calibre\db\cache.py", line 431, in init
File "calibre\db\backend.py", line 1557, in read_tables
apsw.CorruptError: CorruptError: database disk image is malformed


But it is impossible to restore it
Quote:
Traceback (most recent call last):
File "calibre\db\restore.py", line 329, in replace_db
PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus(2): 'G:\\www\\metadata.db' -> 'G:\\xxx\\metadata_pre_restore.db'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\db\restore.py", line 160, in run
File "calibre\db\restore.py", line 334, in replace_db
PermissionError: [WinError 32] Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus (2): 'G:\\xxx\\metadata.db'
(1) Unluckily, the backup (on another external disk) is corrupted too because I've made it from the first one which is already corrupted.
(2) translation
"The process is unable to access to the file which already is used by another process"

I've checked : no process was running except Calibre


Thank you in advance for your assistance.
Regards

Last edited by diane55; 05-28-2024 at 08:29 AM.
diane55 is offline   Reply With Quote