Quote:
Originally Posted by kovidgoyal
It sounds like there were permission problems on the files. Hard to say since the OP didnt post the actual error message.
|
These started last night and are now affecting my 2nd windows 10/calibre 6.21.
Here are my errors and codes:
I tried to change the title name for a book (added another word to the title "The"
Error # 1
<ERROR: permission denied
<Could not change the on disk location of this book. Is it open in another program?(No it is not, freshly opened book, has not been opened this morning after a fresh reboot in windows 10).>
copy of error
<<Locked file: C:\Users\Harry\Documents\Calibre Library\Diane Capri\07 Hunt for Jack Reacher - Deep Cov (1429)
Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 95, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 95, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "calibre\gui2\metadata\single.py", line 617, in apply_changes
File "calibre\gui2\metadata\basic_widgets.py", line 241, in commit
File "calibre\db\legacy.py", line 934, in func
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1508, in set_field
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 225, in copy_tree
File "calibre\utils\copy_files.py", line 120, in __enter__
File "calibre\utils\copy_files.py", line 107, in _open_file
File "calibre\utils\copy_files.py", line 111, in _open_file
PermissionError: [Errno 13] File is open in another program: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)'>>
Then I click OK to exit, xcancel this error and I get this:
<you will lose all unsaved changes. Are you sure? so I click YES.>
Then I get this:
<<ERROR: Unhandled error
!Failed to read book data from calibre library. Click "Show detailss" for more information> I click show details and copied this:
<calibre, version 6.20.0
ERROR: Unhandled error: Failed to read book data from calibre library. Click "Show details" for more information
Traceback (most recent call last):
File "calibre\db\backend.py", line 1574, in copy_cover_to
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\cover.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\db\backend.py", line 1579, in copy_cover_to
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\cover.jpg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\gui2\library\models.py", line 643, in current_changed
File "calibre\gui2\library\models.py", line 620, in get_book_display_info
File "calibre\gui2\library\models.py", line 815, in cover
File "calibre\db\legacy.py", line 455, in cover
File "calibre\db\cache.py", line 1028, in cover
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 1063, in copy_cover_to
File "calibre\db\backend.py", line 1582, in copy_cover_to
Exception: Failed to open 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\cover.jpg' with error: [Errno 13] Permission denied: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\cover.jpg'>>
I then click OK
It creaded the new folder for the title change, but the folder is empty, and the old folder has the files that were there. the Calibre program shows the updated file name, in this case "01a Hunt for Jack Reacher-Deep Cover Jack" and will let me double click on the title in calibre to open thei file, but the file in the file folder is the old file name. And when I try to delete the entry in calibre, I get this error:
<ERROR: Permission denied
<Could not access 07 Hunt for jack reacher-deep-Diane Capri.epub. Is it being used by another program? Click "Show details" for more information. (I clicked show details and copied the error information)
calibre, version 6.20.0
ERROR: Permission denied: Could not access 07 Hunt for Jack Reacher - Deep - Diane Capri.epub. Is it being used by another program? Click "Show details" for more information.
<<Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 95, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\07 Hunt for Jack Reacher - Deep - Diane Capri.epub'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre\utils\copy_files.py", line 95, in _open_file
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\07 Hunt for Jack Reacher - Deep - Diane Capri.epub'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "calibre\gui2\actions\delete.py", line 459, in do_library_delete
File "calibre\gui2\library\models.py", line 466, in delete_books_by_id
File "calibre\db\cache.py", line 85, in call_func_with_lock
File "calibre\db\cache.py", line 2082, in remove_books
File "calibre\db\backend.py", line 2148, in remove_books
File "calibre\db\backend.py", line 2041, in move_book_to_trash
File "calibre\utils\copy_files.py", line 225, in copy_tree
File "calibre\utils\copy_files.py", line 118, in __enter__
File "calibre\utils\copy_files.py", line 107, in _open_file
File "calibre\utils\copy_files.py", line 111, in _open_file
PermissionError: [Errno 13] File is open in another program: 'C:\\Users\\Harry\\Documents\\Calibre Library\\Diane Capri\\07 Hunt for Jack Reacher - Deep Cov (1429)\\07 Hunt for Jack Reacher - Deep - Diane Capri.epub'>>
Now the only way to recover is to close the Calibre program, then delete the folder and files, manually restart the calibre program then delete the book.
So then I tried to clean up the Library using Library Maintenance, this did not help, has the same issue.
So then I tried to "Move" my library to the C:/ drive, out of my User folders, this did not work.
I ran Malwarebytes without finding anything, this did not do anything.
Now ALL OF A SUDDEN, BOTH PC's with Windows 10 will not let me edit ANYTHING using Calibre.
It was working ok until I upgraded to 6.21, then this started.
I uninstalled 6.21 then install 6.20, to the exact same reults as listed above.
I have a second PC that has 2 seperate operating systems, Windows 10 and Zorin Linux. They also Have 6.21 installed but DO NOT have this issue.
Could my "Calibre Library folder" be corrupted?
I also have a new folder in "My Documents" folder called .Calibre with 2 CALIBRE_DATA files 1 is 1 MB and 1 is 96,000 KB. I've never seen this type of folder, or these Data files before.