janeczku / calibre-web

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

Can't convert mobi to epub and send to ereader #2642

Closed oreosteedwagon closed 1 year ago

oreosteedwagon commented 1 year ago

Describe the bug/problem I can't convert from mobi to epub and send to ereader. Converting manually via editing metadata works OK, but attempting via the individual book panel doesn't work at all, and doesn't appear to convert the book.

To Reproduce Steps to reproduce the behavior:

  1. Click on book
  2. Click on 'convert mobi to epub and send to ereader
  3. 'Receive error message: ERROR {cps.helper:80} convert_book_format: epub format not found for book id: XXXXX

Expected behavior Convert the mobi to epub and email to my selected ereader.

Environment

calibre-web.log

image

OzzieIsaacs commented 1 year ago

Sorry for the late reply. From the log I can see that Calibre-web opens the file in "/books/A. N. Roquelaure; Anne Rice/Beauty's Release (14290)/Beauty's Release - A. N. Roquelaure; Anne Rice.mobi" and saves it to "/books/A. N. Roquelaure; Anne Rice/Beauty's Release (14290)/Beauty's Release - A. N. Roquelaure; Anne Rice.epub" afterwards it's not able to find the book again. Could you please check if the new epub file is there and correctly named and the read and write permissions are sufficient

ozzinse commented 1 year ago

I have this same error. All permissions are ok

OzzieIsaacs commented 1 year ago

Could you please perform a library check from within calibre desktop app?

ozzinse commented 1 year ago

How i can do it ? Connect DB to local app ?

OzzieIsaacs commented 1 year ago

Yes, connect it to calibre desktop app, stop (or don‘t use) calibre-web. In calibre there is button library maintenance in the library section. There should be some item like check library

ozzinse commented 1 year ago

image

OzzieIsaacs commented 1 year ago

@ozzinse : Yeah, this is what you want. So click yes, it takes some minutes and should present you a list of files not in the database but on the disk and vice versa

ozzinse commented 1 year ago

image

ozzinse commented 1 year ago

ok but this convert error is on every book

OzzieIsaacs commented 1 year ago

@ozzinse I can't remember the exact outcome of this screen, so if you click on the arrows, on the left side are there books shown, or is it saying everything is fine?

ozzinse commented 1 year ago

There are 5/6 book with error

OzzieIsaacs commented 1 year ago

@ozzinse Are the 5 books those, where the conversion failed? Are you also using a docker container, also the unraid one? Where is the library located? On the same harddrive as calibre-web, or is it a mounted share from somewhere elese (e.g. SMB/Samba)?

ozzinse commented 1 year ago

Conversion not work on any book. I have docker installation with Mount folder

OzzieIsaacs commented 1 year ago

If checked it with my installation version 0.6.19, moved the library to same folder name as you, renamed a book to the same author/title as yours:

[2023-01-31 19:21:40,545] DEBUG {cps.services.worker:91} Add Task for user: admin - Convert 7
[2023-01-31 19:21:40,552]  INFO {cps.tasks.convert:142} Book id 7 - target format of .epub does not exist. Moving forward with convert.
[2023-01-31 19:21:40,893] DEBUG {cps.tasks.convert:254} 1% Converting input to HTML...
[2023-01-31 19:21:40,894] DEBUG {cps.tasks.convert:254} InputFormatPlugin: MOBI Input running
[2023-01-31 19:21:40,894] DEBUG {cps.tasks.convert:254} on /books/A. N. Roquelaure; Anne Rice/Beauty's Release (7)/Beauty's Release - A. N. Roquelaure; Anne Rice.mobi
[2023-01-31 19:21:40,943] DEBUG {cps.tasks.convert:254} Parsing all content...
[2023-01-31 19:21:40,953] DEBUG {cps.tasks.convert:254} Forcing index.html into XHTML namespace
[2023-01-31 19:21:40,959] DEBUG {cps.tasks.convert:254} Generating default TOC from spine...
[2023-01-31 19:21:40,960] DEBUG {cps.tasks.convert:254} 34% Running transforms on e-book...
[2023-01-31 19:21:41,039] DEBUG {cps.tasks.convert:254} Merging user specified metadata...
[2023-01-31 19:21:41,039] DEBUG {cps.tasks.convert:254} Detecting structure...
[2023-01-31 19:21:41,039] DEBUG {cps.tasks.convert:254} Auto generated TOC with 0 entries.
[2023-01-31 19:21:41,060] DEBUG {cps.tasks.convert:254} Flattening CSS and remapping font sizes...
[2023-01-31 19:21:41,135] DEBUG {cps.tasks.convert:254} Source base font size is 12.00000pt
[2023-01-31 19:21:41,157] DEBUG {cps.tasks.convert:254} Removing fake margins...
[2023-01-31 19:21:41,167] DEBUG {cps.tasks.convert:254} Cleaning up manifest...
[2023-01-31 19:21:41,167] DEBUG {cps.tasks.convert:254} Trimming unused files from manifest...
[2023-01-31 19:21:41,168] DEBUG {cps.tasks.convert:254} Creating EPUB Output...
[2023-01-31 19:21:41,168] DEBUG {cps.tasks.convert:254} 67% Running EPUB Output plugin
[2023-01-31 19:21:41,188] DEBUG {cps.tasks.convert:254} Splitting markup on page breaks and flow limits, if any...
[2023-01-31 19:21:41,192] DEBUG {cps.tasks.convert:254}     Looking for large trees in index.html...
[2023-01-31 19:21:41,192] DEBUG {cps.tasks.convert:254}     No large trees found
[2023-01-31 19:21:41,194] DEBUG {cps.tasks.convert:254} This EPUB file has no Table of Contents. Creating a default TOC
[2023-01-31 19:21:41,196] DEBUG {cps.tasks.convert:254} The cover image has an id != "cover". Renaming to work around bug in Nook Color
[2023-01-31 19:21:41,206] DEBUG {cps.tasks.convert:254} EPUB output written to /books/A. N. Roquelaure; Anne Rice/Beauty's Release (7)/Beauty's Release - A. N. Roquelaure; Anne Rice.epub
[2023-01-31 19:21:41,206] DEBUG {cps.tasks.convert:254} Output saved to   /books/A. N. Roquelaure; Anne Rice/Beauty's Release (7)/Beauty's Release - A. N. Roquelaure; Anne Rice.epub

I can't reproduce it. My only guess is that it has something to do with the docker container ( I don't provide the container, and I don't feel myself forced into checking it). So if there are no new information I can't help you any further