10-15-2017, 03:07 PM | #1 |
Connoisseur
Posts: 52
Karma: 20
Join Date: Apr 2017
Device: KK3G, PW, Voyage, Oasis, Aura One, Forma
|
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' * 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 |
10-15-2017, 03:28 PM | #2 |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Calibre IS NOT network share or NAS friendly (it is in the FAQ)
NAS should only be used to shadow your current library and should NOT sync while Calibre is in use. Bad things (race conditions...) can happen |
Advert | |
|
10-15-2017, 08:20 PM | #3 | ||
Connoisseur
Posts: 52
Karma: 20
Join Date: Apr 2017
Device: KK3G, PW, Voyage, Oasis, Aura One, Forma
|
Quote:
Quote:
I'm not actually even totally convinced this error is solely related to the fact the drive is networked. |
||
10-15-2017, 08:56 PM | #4 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
https://manual.calibre-ebook.com/faq...rked-drive-nas You'll get that error anytime another program is accessing calibre or its files / folders when you attempt to change title or author information. When I don't pause syncing on Dropbox I often get the same error. |
|
10-21-2017, 09:36 AM | #5 |
Connoisseur
Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
Calibre 2.xx worked quite well this way - I have a similar setup where one system runs calibre-server and stores the library & database, then another client accesses the library/database over the network.
With the Calibre 3.x content server looking like it will be writing to the database not just reading it, Kovid seems like he's really precluding this type of usage model. I get that's probably Ok for most users, but like the OP, I wish for a few seemingly small concessions which would permit this. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Android] Bug: Calibre Companion-Cannot Write File | anordwell | Calibre Companion | 3 | 11-19-2016 05:53 PM |
bug in ebook-viewer: the file is modified | tigran | Calibre | 6 | 02-11-2015 11:53 AM |
Bug: File -> Quit: editor crashes | Katsunami | Editor | 14 | 02-22-2014 01:22 PM |
opf file size bug - slow opening ??? | cybmole | Calibre | 18 | 09-06-2011 04:41 AM |
Bug when trying to convert a PRC file | Alfy | Calibre | 3 | 10-18-2008 12:23 PM |