![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2020
Device: none
|
![]()
I've been having issues with windows setting folders to read only at random intervals and things have got a little bit messed up.
I tried restoring the database, but I get this error: Code:
calibre, version 7.26.0 ERROR: Failed: Restoring database failed, click "Show details" to see details Traceback (most recent call last): File "calibre\db\restore.py", line 346, in replace_db File "shutil.py", line 759, in rmtree File "shutil.py", line 617, in _rmtree_unsafe File "shutil.py", line 626, in _rmtree_unsafe File "shutil.py", line 624, in _rmtree_unsafe PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\.calnotes\\backup' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre\db\restore.py", line 156, in run File "calibre\db\restore.py", line 351, in replace_db File "shutil.py", line 759, in rmtree File "shutil.py", line 617, in _rmtree_unsafe File "shutil.py", line 626, in _rmtree_unsafe File "shutil.py", line 624, in _rmtree_unsafe PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\.calnotes\\backup' Thanks! |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,968
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Fix the permissions on the folder in that error message.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Tech appreciator
![]() Posts: 26
Karma: 10
Join Date: Jul 2012
Device: Onyx Boox Kepler Pro (wow I love this reader!)
|
I had this same error after moving my library to a new computer. I fixed the permissions and tried again to run the restore database procedure. Now I get the error below. Is it safe to delete the referenced folder? Or is some other fix required?
calibre, version 7.19.0 ERROR: Failed: Restoring database failed, click "Show details" to see details Traceback (most recent call last): File "calibre\db\restore.py", line 343, in replace_db File "shutil.py", line 823, in move shutil.Error: Destination path 'B:\Calibre\.calnotes-staging\.calnotes' already exists 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 348, in replace_db File "shutil.py", line 823, in move shutil.Error: Destination path 'B:\Calibre\.calnotes-staging\.calnotes' already exists |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 765
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
|
"B:\Calibre\..."
Is that a correct path? B drive? In Windows, B drive is reserved for the 2nd floppy drive (at least I think it still is -- I haven't seen a B drive on a system in something like 40 years). I think it can be re-mapped to another removable drive, but I'm not sure. Maybe that's the problem? Last edited by enuddleyarbl; 02-17-2025 at 07:15 AM. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,968
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes you can delete .calnotes-staging and re-run the restore but I doubt that will help.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Tech appreciator
![]() Posts: 26
Karma: 10
Join Date: Jul 2012
Device: Onyx Boox Kepler Pro (wow I love this reader!)
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,762
Karma: 59473090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
My U: drive is labeled Unicorn. My C: drive gets a different Label depending on which computer. Labels can be important with USB drives as their letter may change. But my Green Drive (Linux Mint live CD ![]() |
|
![]() |
![]() |
![]() |
#8 |
Tech appreciator
![]() Posts: 26
Karma: 10
Join Date: Jul 2012
Device: Onyx Boox Kepler Pro (wow I love this reader!)
|
|
![]() |
![]() |
![]() |
Tags |
restore library error |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I restore the database to backup? - database disk image is malformed | lumping-sugar66 | Kobo Reader | 7 | 09-10-2024 11:57 AM |
restore database | franklekens | Kobo Reader | 32 | 06-02-2024 06:28 PM |
Aura Restore the database | Ksquared | Kobo Reader | 2 | 09-17-2016 08:04 AM |
Restore Database? | BookJunkieLI | Library Management | 6 | 08-15-2014 06:10 PM |
Restore Database? | BeeTee-Ess | Calibre | 2 | 10-12-2012 07:40 AM |