janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.75k stars 1.33k forks source link

Kindlegen failed with Error E30005. Message: Could not find file #592

Closed Ribero closed 6 years ago

Ribero commented 6 years ago

Hi, I encounter the same error that is detailed in issue #585 when trying to "send to kindle" from the GUI but Ok from the CLI:

from GUI (KO):

[2018-08-27 19:38:29,787] INFO in worker: ebook converter failed with error while converting book | stdout
-- | --
[2018-08-27 19:38:29,789] ERROR in worker: Kindlegen failed with Error E30005. Message: Could not find file  "/books/Duff,Hilary/Elixir (1206)/Elixir - Duff,Hilary.epub"

from CLI (OK):

bash-4.4# id                                                                                                                                                                                          
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)                                                                     

bash-4.4# su calibre                                                                                                                                                                                  
bash-4.4$ id                                                                                                                                                                                          
uid=1026(calibre) gid=65538(calibre) groups=65538(calibre)                                                                                                                                            

bash-4.4$ ls -lFa "/books/Duff,Hilary/Elixir (1206)/"                                                                                                                                                 
drwxrwxrwx 1 calibre users      120 Aug 27 19:42  ./                                                                                                                                                  
drwxrwxrwx 1 calibre users       26 Jun 28 22:14  ../                                                                                                                                                 
drwxrwxrwx 1 calibre users      170 Aug  3 16:00 '@eaDir'/                                                                                                                                            
-rwxrwxrwx 1 calibre users   252947 Jun 28 21:05 'Elixir - Duff,Hilary.epub'*                                                                                                                         
-rwxrwxrwx 1 calibre users    77519 Jun 28 21:05  cover.jpg*                                                                                                                                          
-rwxrwxrwx 1 calibre users     2176 Jun 29 00:37  metadata.opf*                                                                                                                                       

bash-4.4$ touch /books/Duff\,Hilary/Elixir\ \(1206\)/write_ok                                                                                                                                         
bash-4.4$ ls -lFa "/books/Duff,Hilary/Elixir (1206)/"                                                                                                                                                 
drwxrwxrwx 1 calibre users      120 Aug 27 19:42  ./                                                                                                                                                  
drwxrwxrwx 1 calibre users       26 Jun 28 22:14  ../                                                                                                                                                 
drwxrwxrwx 1 calibre users      170 Aug  3 16:00 '@eaDir'/                                                                                                                                            
-rwxrwxrwx 1 calibre users   252947 Jun 28 21:05 'Elixir - Duff,Hilary.epub'*                                                                                                                         
-rwxrwxrwx 1 calibre users    77519 Jun 28 21:05  cover.jpg*                                                                                                                                          
-rwxrwxrwx 1 calibre users     2176 Jun 29 00:37  metadata.opf*                                                                                                                                       
-rwxrwxrwx 1 calibre calibre      0 Aug 27 19:42  write_ok*                                                                                                                                           

bash-4.4$ /calibre-web/kindlegen/kindlegen /books/Duff\,Hilary/Elixir\ \(1206\)/Elixir\ -\ Duff\,Hilary.epub                                                                                          

*************************************************************                                                                                                                                         
 Amazon kindlegen(Linux) V2.9 build 1028-0897292                                                                                                                                                      
 A command line e-book compiler                                                                                                                                                                       
 Copyright Amazon.com and its Affiliates 2014 
*************************************************************                                                                                                                                         

Info(prcgen):I1047: Added metadata dc:Title        "Élixir"                                                                                                                                          
Info(prcgen):I1047: Added metadata dc:Date         "2010-08-11T17:11:20+00:00"                                                                                                                        
Info(prcgen):I1047: Added metadata ISBN            "2749913519"                                                                                                                                       
Info(prcgen):I1047: Added metadata dc:Creator      "Duff,Hilary"                                                                                                                                      
Info(prcgen):I1047: Added metadata dc:Publisher    "None"                                                                                                                                       
Info(prcgen):I1047: Added metadata dc:Subject      "Jeunesse"                                                                                                                                         
Info(prcgen):I1047: Added metadata dc:Contributor  "calibre (0.8.65) [http://calibre-ebook.com]"                                                                                                      
Info(prcgen):I1047: Added metadata dc:Description  "<div><div style="text-align: justify;">Fille de la sénatrice Victoria Weston et d’un chirurgien renommé, Cléa a vécu toute sa vie sous le feu des 
projecteurs. Fuyant la célébrité, elle s’évade grâce au photojournalisme, une passion transmise par son père qui lui perm                                                                           
Info(cssparser):I10004: @rules other than @import, @charset and @font-face are not supported.                                                                                                         
Info(prcgen):I1052: Kindle support cover images but does not support cover HTML. Hence using the cover image specified and suppressing cover HTML in content.     URL: /tmp/mobi-hYfYwN/titlepage.xhtm
l                                                                                                                                                                                                     
Info(prcgen):I1002: Parsing files  0000015                                                                                                                                                            
Info(prcgen):I1015: Building PRC file                                                                                                                                                                 
Info(prcgen):I1006: Resolving hyperlinks                                                                                                                                                              
Info(prcgen):I1049: Building table of content     URL: /tmp/mobi-hYfYwN/toc.ncx                                                                                                                       
Info(pagemap):I8000: No Page map found in the book                                                                                                                                                    
Info(prcgen):I1045: Computing UNICODE ranges used in the book                                                                                                                                         
Info(prcgen):I1046: Found UNICODE range: Basic Latin [20..7E]                                                                                                                                         
Info(prcgen):I1046: Found UNICODE range: Latin-1 Supplement [A0..FF]                                                                                                                                  
Info(prcgen):I1046: Found UNICODE range: General Punctuation - Windows 1252 [2018..201A]                                                                                                              
Info(prcgen):I1046: Found UNICODE range: Latin Extended-A [100..17F]                                                                                                                                  
Info(prcgen):I1017: Building PRC file, record count:   0000138                                                                                                                                        
Info(prcgen):I1039: Final stats - text compressed to (in % of original size):  49.81%                                                                                                                 
Info(prcgen):I1040: The document identifier is: "Elixir"                                                                                                                                              
Info(prcgen):I1041: The file format version is V6                                                                                                                                                     
Info(prcgen):I1031: Saving PRC file                                                                                                                                                                   
Info(prcgen):I1032: PRC built successfully                                                                                                                                                            
Info(prcgen):I1016: Building enhanced PRC file                                                                                                                                                        
Info(prcgen):I1007: Resolving mediaidlinks                                                                                                                                                            
Info(prcgen):I1011: Writing mediaidlinks                                                                                                                                                              
Info(prcgen):I1009: Resolving guide items                                                                                                                                                             
Info(prcgen):I1017: Building PRC file, record count:   0000129                                                                                                                                        
Info(prcgen):I1039: Final stats - text compressed to (in % of original size):  53.56%                                                                                                                 
Info(prcgen):I1041: The file format version is V8                                                                                                                                                     
Info(prcgen):I15000:  Approximate Standard Mobi Deliverable file size :   0000347KB                                                                                                                   
Info(prcgen):I15001:  Approximate KF8 Deliverable file size :   0000351KB                                                                                                                             
Info(prcgen):I1036: Mobi file built successfully      

bash-4.4$ ls -lFa "/books/Duff,Hilary/Elixir (1206)/"                                                                                                                                                 
drwxrwxrwx 1 calibre users      170 Aug 27 19:45  ./                                                                                                                                                  
drwxrwxrwx 1 calibre users       26 Jun 28 22:14  ../                                                                                                                                                 
drwxrwxrwx 1 calibre users      170 Aug  3 16:00 '@eaDir'/                                                                                                                                            
-rwxrwxrwx 1 calibre users   252947 Jun 28 21:05 'Elixir - Duff,Hilary.epub'*                                                                                                                         
-rwxrwxrwx 1 calibre calibre 918247 Aug 27 19:45 'Elixir - Duff,Hilary.mobi'*                                                                                                                         
-rwxrwxrwx 1 calibre users    77519 Jun 28 21:05  cover.jpg*                                                                                                                                          
-rwxrwxrwx 1 calibre users     2176 Jun 29 00:37  metadata.opf*                                                                                                                                       
-rwxrwxrwx 1 calibre calibre      0 Aug 27 19:42  write_ok*                                                                                                                                           
bash-4.4

So it works using calibre user from the CLI but fails from the GUI...

How did you solved it ?

adocampo commented 6 years ago

@Ribero have you tried the @Technosoft2000's docker? It has the calibre's ebook-convert tool, which is fully working, sends the cover to kindle and the MOBI file is a lot lighter than the one converted with kindlegen.

There are some (more) happy users since that.

Ribero commented 6 years ago

Thanks ! Yes, I'm using this docker image. I have now switched to ebook-convert instead of kindlegen (that do not work anymore for me).

adocampo commented 6 years ago

e just need to inform kindlegen stopped working, perhaps developers abandon kindlgen and change to use only ebook-convert: it's open source software and it's actively maintained, besides it works far better than kindlegen

Ribero commented 6 years ago

+1 ebook-convert is way much better than kindlegen and more specifically it does not choke on ebooks where language tag is missing.

OzzieIsaacs commented 6 years ago

I applied the changes I did for the ebook-convert tool in docker also to the kindlegen part. It should work now. I'd like to remove the support for the kindlegen in the future, as it causes lot of trouble and issues because of converting problems. (Would have been nice if you qould have told us in the first post that you are using the docker container, would have saved lot of time searching for the cause of the problem)

Ribero commented 6 years ago

@OzzieIsaacs my bad for the lack of information regarding docker, I was sure that I specified it but, clearly, I forgot to move this information I initially put in the comment of issue 585.