![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra 2
|
Could not restore corrupted library due to NotADirectoryError
Hi all,
Just turned on Calibre today on my thumbdrive and found out my library was corrupted, in-built repair feature doesn't seem to work. I suspect I might have turned off my PC w/o ejecting one day and that corrupted it. Been trying to fix it but to no avail. Searched online for the error I got but can't seem to find anybody else that has faced this issue; ok with sending my library if it helps w troubleshooting. Wld rly appreciate if anyb here knows how I can fix this, as it contains a lot of my files. Thank you! calibre, version 7.12.0 ERROR: Failed to repair library: Restoring database failed, click "Show details" to see details Traceback (most recent call last): File "calibre\db\restore.py", line 157, in run File "calibre\db\restore.py", line 316, in restore_books File "calibre\db\backend.py", line 1049, in restore_notes File "calibre\db\notes\connect.py", line 471, in restore NotADirectoryError: [WinError 267] The directory name is invalid: 'D:\\Calibre Portable\\20w3j86v_rlib\\.calnotes\\resources\\des ktop.ini' |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,269
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
delete the desktop.ini file references in the error message and you will be fine.
|
![]() |
![]() |
![]() |
#3 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jun 2024
Device: Kobo Libra 2
|
Quote:
calibre, version 7.12.0 ERROR: Failed to repair library: Restoring database failed, click "Show details" to see details Traceback (most recent call last): File "calibre\db\restore.py", line 329, in replace_db PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:\\Calibre Portable\\Calibre Library 2\\metadata.db' -> 'D:\\Calibre Portable\\Calibre Library 2\\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] The process cannot access the file because it is being used by another process: 'D:\\Calibre Portable\\Calibre Library 2\\metadata.db' Sorry to bother you again, and thanks so much |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,269
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try doing the restore in safe mode or alternately run it via the command line
calibredb restore_database -r |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Corrupted library won't restore | Geta | Library Management | 9 | 02-04-2022 12:41 PM |
Restore annotations from corrupted db | Lucas Malor | Kobo Reader | 9 | 11-29-2016 05:01 PM |
Corrupted Library Won't Restore | pkw57 | Library Management | 6 | 04-02-2016 05:32 AM |
Mac version: corrupted database - restore fails | neilio | Calibre | 3 | 04-08-2013 04:28 PM |