![]() |
#1 | |
Enthusiast
![]() ![]() ![]() ![]() Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
|
Editor for linux does not record
Hello,
I use Calibre and its Editor for Windows and Linux. When I use only the editor, I can save the changes I made on ebooks Windows smoothly. With Linux, an error message is returned to and recording is not done. The error message is this: Quote:
Have a good day. |
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
http://manual.calibre-ebook.com/faq....n-denied-error
In your case you likely have the permissions (umasks) on your directories setup so that calibre cannot copy the file attributes from the original book file to a temporary file. Last edited by kovidgoyal; 10-06-2014 at 12:16 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
|
Yes, I think you're right. Everything is now to find wich directories are concerned.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I've changed the error message to provide details about the problem file in the next release.
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@korben - you can give calibre a dedicated temporary location, see CALIBRE_TEMP_DIR in Environment Variables
BR |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() ![]() ![]() ![]() Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
|
@BetterRed : changing Environment variable for CALIBRE_TEMP_DIR doesn't match because I think Editor's temp dir must be different.
I've done it to test eventually with the calibre's temp dir but no result (I've verified the change was effective with the "printenv" command). In fact, if I could know the name of the variable of the editor's temp dir, I'm sure this will work. @kovidgoyal : thanks for your intervention. I'm not sure it is a temp dir problem cause I can open and modify the books. It's only when saving that the problem is. K Last edited by korben; 10-07-2014 at 12:23 PM. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The editor creates its temp file in the same directory as the original book file (it has in order for renames to be atomic). So the permissions problem is likely in whatever directory the original file is in.
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() Posts: 36
Karma: 378
Join Date: Jul 2014
Location: France
Device: pocketbook touch 2
|
Then the problem is no longer one...
My ebooks are on a ntfs partition wich is left of my old Windows installation. So I moved an ebook in a Linux directory to which I have rights and there the recording works. I should have thought from the beginning, but I have not considered the problem from this angle since all my access to those partitions happen normally. Last edited by korben; 10-07-2014 at 04:36 PM. |
![]() |
![]() |
![]() |
#9 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
What I see when I open a book in the editor is that calibre creates a folder in %CALIBRE_TEMP_DIR% with two subfolders (0000_xxxx and 0001.xxxx) each containing a hardlink clone of the book content files, if I change a file, the original remains in 0000.xxxx and the new will be in 0001_xxxx, obviously they're no longer hardlinked to the same data. I've not tried putting the temporary location on a file system that doesn't support hardlinks, such as FAT32 or ReFS ![]() BR Last edited by BetterRed; 10-07-2014 at 06:14 PM. Reason: change image |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,284
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, its true on all OSes. The hardlink clones are used for the checkpointing system, not saving the book. Saving creates a temp file in the same folder as the original. Writes all the changes to it, and if everything works renames it to the original atomically, that way the editor can never corrupt the original in case of a crash or power failure during saving.
|
![]() |
![]() |
![]() |
#11 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,685
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 11:15 AM |
Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 11:13 AM |
Can I create am empty record that refers back to another record? | ficbot | Calibre | 1 | 10-13-2011 09:20 AM |
NVU 0.40 - Free (X)HTML Editor for Linux and Windows | Alexander Turcic | Lounge | 2 | 08-11-2004 10:08 PM |