Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-16-2025, 04:18 PM   #1
TreeFrogBandit
Junior Member
TreeFrogBandit began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2020
Device: none
Angry Having difficulty with database restore

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'
Can anybody help me out?

Thanks!
TreeFrogBandit is offline   Reply With Quote
Old 02-16-2025, 08:34 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,968
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fix the permissions on the folder in that error message.
kovidgoyal is online now   Reply With Quote
Advert
Old 02-17-2025, 06:46 AM   #3
Barb-B
Tech appreciator
Barb-B began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Jul 2012
Device: Onyx Boox Kepler Pro (wow I love this reader!)
Quote:
Originally Posted by kovidgoyal View Post
Fix the permissions on the folder in that error message.
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
Barb-B is offline   Reply With Quote
Old 02-17-2025, 07:11 AM   #4
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
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.
enuddleyarbl is offline   Reply With Quote
Old 02-17-2025, 08:17 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is online now   Reply With Quote
Advert
Old 02-17-2025, 02:18 PM   #6
Barb-B
Tech appreciator
Barb-B began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Jul 2012
Device: Onyx Boox Kepler Pro (wow I love this reader!)
Quote:
Originally Posted by enuddleyarbl View Post
"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?
My laptop has no floppy drives, and when I partitioned it B was offered up for the labeling, so I shrugged and said why not. Pretty sure Windows doesn't care about that.
Barb-B is offline   Reply With Quote
Old 02-17-2025, 02:47 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by Barb-B View Post
My laptop has no floppy drives, and when I partitioned it B was offered up for the labeling, so I shrugged and said why not. Pretty sure Windows doesn't care about that.
A 'Label' is different from a drive letter assignment.
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 ) is always Green
theducks is offline   Reply With Quote
Old 02-18-2025, 05:06 AM   #8
Barb-B
Tech appreciator
Barb-B began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Jul 2012
Device: Onyx Boox Kepler Pro (wow I love this reader!)
Quote:
Originally Posted by kovidgoyal View Post
Yes you can delete .calnotes-staging and re-run the restore but I doubt that will help.
It did indeed work after deleting the interfering folders. And of course with the permissions adequately handled. Thanks for your help!
Barb-B is offline   Reply With Quote
Reply

Tags
restore library error

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:56 PM.


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