View Single Post
Old 04-28-2023, 02:04 PM   #8
rb431
Enthusiast
rb431 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Aug 2020
Device: Kindle Oasis 9th gen
I already had a mirror of my Calibre library on a different disk since I use robocopy to periodically mirror it to another drive plus a USB stick for a backup.

I pointed Calibre at the library on the other disk and got the same errors doing the metadata updates:

calibre, version 6.17.0
ERROR: Some failures: Failed to apply updated metadata for some books in your library. Click "Show details" to see details.

The Fugitive Pair - Henry Vogel

Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 212, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\Henry Vogel\\The Fugitive Pair_ Matt & Michelle (3952)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\actions\edit_metadata.py", line 903, in apply_mi
File "calibre\db\legacy.py", line 588, in set_metadata
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1704, in set_metadata
File "calibre\db\cache.py", line 1522, in update_path
File "calibre\db\backend.py", line 1875, in update_path
File "calibre\utils\copy_files.py", line 216, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\Henry Vogel\\The Fugitive Pair_ Matt & Michelle (3952)'

************************************************** ******************************

The Fugitive Snare - Henry Vogel

Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 212, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\Henry Vogel\\The Fugitive Snare_ Matt & Michelle (3953)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\actions\edit_metadata.py", line 903, in apply_mi
File "calibre\db\legacy.py", line 588, in set_metadata
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1704, in set_metadata
File "calibre\db\cache.py", line 1522, in update_path
File "calibre\db\backend.py", line 1875, in update_path
File "calibre\utils\copy_files.py", line 216, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\Henry Vogel\\The Fugitive Snare_ Matt & Michelle (3953)'

************************************************** ******************************

The Fugitive Heir - Henry Vogel

Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 212, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\Henry Vogel\\The Fugitive Heir_ Matt & Michelle (3951)'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "calibre\gui2\actions\edit_metadata.py", line 903, in apply_mi
File "calibre\db\legacy.py", line 588, in set_metadata
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1704, in set_metadata
File "calibre\db\cache.py", line 1522, in update_path
File "calibre\db\backend.py", line 1875, in update_path
File "calibre\utils\copy_files.py", line 216, in copy_tree
File "shutil.py", line 739, in rmtree
File "shutil.py", line 621, in _rmtree_unsafe
File "shutil.py", line 619, in _rmtree_unsafe
PermissionError: [WinError 5] Access is denied: 'D:\\Calibre Library\\Henry Vogel\\The Fugitive Heir_ Matt & Michelle (3951)'

************************************************** ******************************

The Authenticated Users group has all permissions but Full Control to that sub-directory and lower.

During the metadata update, Calibre is moving the books to a new folder and it is failing on removing the old folder, which is now empty. I was able to use my account to browse into that directory and remove the folders manually in explorer, so the perms have to be sufficient since I am invoking Python in the same account. My real-time virus scanning is fully disabled.
rb431 is offline   Reply With Quote