![]() |
#1 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2013
Location: Preston, UK
Device: Kindle
|
Failure to Rename Books
I subscribe to a published ebook in two formats - PDF and Mobi.
Prior to importing a new version of the book, I rename the current versions of the book to Book Title Vnn, where nn is the next sequential number. I perform the rename in the Edit metadata screen and invariably get an error message which asserts that a Permission is denied. Sample error details are as follows: ****************** calibre, version 2.67.0 ERROR: Permission denied: Could not change the on disk location of this book. Is it open in another program? Locked file: c:\users\xxxxxx\calibre\09 reference\paul thurrott\windows 10 field guide (250)\windows 10 field guide - paul thurrott.mobi Traceback (most recent call last): File "site-packages\calibre\gui2\metadata\single.py", line 552, in apply_changes File "site-packages\calibre\gui2\metadata\basic_widgets.py", line 213, in commit File "site-packages\calibre\db\legacy.py", line 810, in func File "site-packages\calibre\db\cache.py", line 57, in call_func_with_lock File "site-packages\calibre\db\cache.py", line 1039, in set_field File "site-packages\calibre\db\backend.py", line 1448, in windows_check_if_files_in_use File "site-packages\calibre\utils\filenames.py", line 385, in __init__ IOError: [Errno 13] File is open in another process: u'c:\\users\\xxxxxx\\calibre\\09 reference\\paul thurrott\\windows 10 field guide (250)\\windows 10 field guide - paul thurrott.mobi' **************** As you can see, the error message states that one of the books is open in another process - But I don't have the file open in any other process intitiated by me. Thanks |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Well, Windows claims that something else has a lock on that file... so I am not sure what you want us to say.
(And I must say, that Windows concept of locking files is just so absolutely, positively charming. ![]() ... There are programs that can tell you what process has a certain file open. It may be e.g. an antivirus. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,667
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@dc696969 - Could be an AV or content indexer
This should help you track down what it is ==>> http://www.nirsoft.net/utils/opened_files_view.html If you are using a 3rd party file manager that could be the culprit, try closing it. BR |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2013
Location: Preston, UK
Device: Kindle
|
@BetterRed - Thanks for that.
I used opened_file_view, and it looks like it's Dropbox that has the file open. When I retry it after a short wait then the rename completes OK. As I noted in the original post, I have no other process specifically invoked by me that has the file open - maybe Calibre has changed the file name once, which Dropbox is picking up and then Calibre is trying to change it again. OR, maybe Calibre and Dropbox are in conflict when Calibre changes both a folder name and underlying file names? |
![]() |
![]() |
![]() |
#5 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You don't have your Calibre library in Dropbox, do you? That's a really, REALLY bad idea. It's a question of "when" not "if" you'll end up with a corrupted library as a result.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,667
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
What many people do is to suspend dropbox before they start calibre and resume it when they stop calibre, others don't use dropbox to do the syncing, instead they use one of the synch tools, like Sync Toy, FFS, Goodsync etc to do it as and when they choose. I favour the latter BR |
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2013
Location: Preston, UK
Device: Kindle
|
Thanks @HarryT and @BetterRed.
Actually, I'm already doing asychronous syncing to a NAS with RoboCopy *and* using Dropbox - belt and braces! But, I'll be sure to pause Dropbox before updating Calibre - thanks. |
![]() |
![]() |
![]() |
#8 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
![]() Dropbox is perfectly safe. As long as you pause Dropbox while calibre is running. Additionally, make sure to sync Dropbox before and after running calibre, to make sure Dropbox won't get confused when two computers try to update the same file -- this assumes you run calibre with the Dropboxed library on two computers. |
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2013
Location: Preston, UK
Device: Kindle
|
Thanks @eschwartz.
Good point. But in my case not necessary. I have Calibre on just one laptop and simply use Dropbox for offsite backup storage to supplement the other copy on my NAS. |
![]() |
![]() |
![]() |
#10 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,459
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
On Windows you can use FreeFileSync to sync to your NAS and cloud storage after you have closed Calibre. But, your working library must be free from NAS & cloud storage. |
|
![]() |
![]() |
![]() |
#12 | |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2013
Location: Preston, UK
Device: Kindle
|
Quote:
Now, I do not doubt you - I can tell you have a strong opinion about this. But I am interested to understand the nature of the danger to the Calibre library if Dropbox is paused during any Calbre processing. |
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,459
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The danger is that the one time you forget to pause Dropbox, you risk screwing your library and possibly the copy on Dropbox as well..
|
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 16
Karma: 10
Join Date: Mar 2013
Location: Preston, UK
Device: Kindle
|
Ah, indeed.
In UK we call it Sod's law - if it can happen, it will! |
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,459
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rename books and change covers on Paperwhite | mcjtom | Devices | 9 | 09-26-2016 07:36 PM |
Rename existing books, using template? | kunkel321 | Library Management | 6 | 06-09-2016 02:18 PM |
How to rename epub books by title and author | westiti | Library Management | 3 | 01-29-2016 07:25 AM |
Using F1 key to rename books? | Dullahir | Library Management | 4 | 04-14-2014 01:51 AM |
Move/rename books and retain annotations | md02439 | iRex | 2 | 12-03-2011 06:20 PM |