Thread: Locked File bug
View Single Post
Old 10-15-2017, 03:07 PM   #1
genoasalami
Connoisseur
genoasalami began at the beginning.
 
Posts: 53
Karma: 20
Join Date: Apr 2017
Device: KK3G, PW, Voyage, Oasis, Aura One, Forma
Exclamation Locked File bug

As always, thanks to Kovid the dev for all the hard work put into Calibre!

This is sort of a long-standing bug, but I was hoping it could be corrected; I think it's an easy fix.

I keep my Calibre library and all books on a network folder so that it can be accessed by any computer with Calibre on the network.* Frequently, when I am editing metadata, I get the following error message:

Code:
Locked file: J:\Documents\Books\author\book\book.epub

Traceback (most recent call last):
  File "site-packages\calibre\gui2\metadata\single.py", line 579, in apply_changes
  File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 220, in commit
  File "site-packages\calibre\db\legacy.py", line 824, in func
  File "site-packages\calibre\db\cache.py", line 62, in call_func_with_lock
  File "site-packages\calibre\db\cache.py", line 1095, in set_field
  File "site-packages\calibre\db\cache.py", line 1109, in update_path
  File "site-packages\calibre\db\backend.py", line 1568, in update_path
  File "site-packages\calibre\db\backend.py", line 1445, in copy_format_to
  File "site-packages\calibre\utils\filenames.py", line 429, in copy_path_to
  File "site-packages\calibre\startup.py", line 116, in local_open
IOError: [Errno 13] Permission denied: u'J:\\Documents\\Books\\author\\book\\book.epub'
After a minute or so, if I try again (i.e., click OK or next in the metadata editor), it'll process just fine. Presumably something Calibre is doing is locking the file and preventing changes, but-whatever that is-it stops after a minute. It's not unusable, but it does slow things down.



* This error appears even if no other network device is accessing the library. In other words, everything else can be completely powered down, but the files are still locked, so I am pretty sure it's Calibre doing the locking/unlocking
genoasalami is offline   Reply With Quote