View Single Post
Old 10-28-2025, 02:50 PM   #1
p0lrb3ar
Junior Member
p0lrb3ar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2025
Device: Kindle
Issue Restoring Database from OPF

I am getting this error while trying to run "calibredb restore_database --really-do-it". Calibre v8.12. Restore seems to be creating this folder dynamically. Should I delete the folder right after it's created to see if it can be written again?

I'm having this issue:
*
Starting restoring preferences and column metadata ... 0%
Traceback (most recent call last):
File "calibre\db\restore.py", line 176, in load_preferences
File "calibre\db\restore.py", line 56, in __init__
File "calibre\db\backend.py", line 509, in __init__
File "calibre\db\backend.py", line 1458, in user_version
File "calibre\db\backend.py", line 1162, in conn
File "calibre\db\backend.py", line 372, in __init__
apsw.CantOpenError: unable to open database file
Restoring preferences and column metadata failed ... 0%
Exception ignored in: <function Cache.__del__ at 0x0000026E66B5FBA0>
Traceback (most recent call last):
File "calibre\db\cache.py", line 2817, in __del__
File "calibre\db\cache.py", line 2836, in close
AttributeError: 'Restorer' object has no attribute 'write_lock'
Exception ignored in: <function Cache.__del__ at 0x0000026E66B5FBA0>
Traceback (most recent call last):
File "calibre\db\cache.py", line 2817, in __del__
File "calibre\db\cache.py", line 2836, in close
AttributeError: 'Restorer' object has no attribute 'write_lock'
Restoring database failed with error:
Traceback (most recent call last):
File "calibre\db\restore.py", line 152, in run
File "calibre\db\restore.py", line 280, in create_cc_metadata
File "calibre\db\restore.py", line 56, in __init__
File "calibre\db\backend.py", line 506, in __init__
File "os.py", line 225, in makedirs
FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'R:\\_shared\\dspm1yn1_rlib'
p0lrb3ar is offline   Reply With Quote