Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
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
Old 10-28-2025, 03:14 PM   #2
p0lrb3ar
Junior Member
p0lrb3ar began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2025
Device: Kindle
I deleted the dynamic folder right after it was created, which allowed it to be recreated at the correct time, and the restore completed successfully. This appears to be a bug.
p0lrb3ar is offline   Reply With Quote
Advert
Old 10-28-2025, 08:32 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 48,197
Karma: 174315444
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Where is your R: drive located? Local hard drive, local USB drive, NAS, cloud storage?
DNSB is offline   Reply With Quote
Reply

Tags
calibre 8.12, database restore


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems after restoring database Serguei Library Management 1 01-27-2025 11:40 PM
Restoring OPF information to a book ownedbycats Calibre 1 09-25-2020 12:23 PM
Restoring Database Issue TGPB Library Management 3 08-16-2017 08:20 AM
Restoring custom columns from opf metadata? moredrowsy Calibre 6 08-14-2016 05:41 AM
Restoring Database Yusufbodrum Library Management 3 07-31-2015 08:49 PM


All times are GMT -4. The time now is 06:33 AM.


MobileRead.com is a privately owned, operated and funded community.