View Single Post
Old 02-16-2025, 04:18 PM   #1
TreeFrogBandit
Member
TreeFrogBandit began at the beginning.
 
Posts: 10
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