Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Mobi to Epub and send to E-Reader fails #2495

Closed
adrianmihalko opened this issue Jul 21, 2022 · 4 comments
Closed

Convert Mobi to Epub and send to E-Reader fails #2495

adrianmihalko opened this issue Jul 21, 2022 · 4 comments

Comments

@adrianmihalko
Copy link

Describe the bug/problem
"Convert Mobi to Epub and send to E-Reader" fails with 500 Internal server error

To Reproduce
Steps to reproduce the behavior:

  1. Go to any book in mobi format
  2. Click on Convert Mobi to Epub and send to E-Reader
  3. ...
  4. See error

Logfile

Calibre-Web
500 Internal Server Error
The server encountered an internal error and was unable to complete your request. There is an error in the application.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.8/dist-packages/flask_login/utils.py", line 303, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/app/calibre-web/cps/web.py", line 113, in inner
return f(*args, **kwargs)
File "/app/calibre-web/cps/web.py", line 1199, in send_to_ereader
result = send_mail(book_id, book_format, convert, current_user.kindle_mail, config.config_calibre_dir,
File "/app/calibre-web/cps/helper.py", line 215, in send_mail
return convert_book_format(book_id, calibrepath, u'epub', book_format.lower(), user_id, ereader_mail)
File "/app/calibre-web/cps/helper.py", line 78, in convert_book_format
file_path = os.path.join(calibre_path, book.path, data.name)
AttributeError: 'NoneType' object has no attribute 'name'

Expected behavior
Convert & send Epub to Kindle

Screenshots
Screenshot 2022-07-21 at 21 32 06

Environment (please complete the following information):

  • OS: Debian
  • Calibre-Web version: nightly 2022. 07. 16. 19:27
  • Docker container: Docker image image: ghcr.io/linuxserver/calibre-web:nightly
@olskar
Copy link

olskar commented Jul 24, 2022

Same as #2494 ?

@adrianmihalko
Copy link
Author

adrianmihalko commented Aug 2, 2022

It still doesn't work as expected. I click on convert and send to e-reader, but I get: Oops! There was an error sending this book: epub format not found for book id: xy.

Version: 7/31/22, 4:14 PM Current version

@OzzieIsaacs
Copy link
Collaborator

Please run a library maintenance from calibre itself, looks like the book is not correct linked between database and harddisk

@Plaidstallion
Copy link

Plaidstallion commented Aug 4, 2022

It still doesn't work as expected. I click on convert and send to e-reader, but I get: Oops! There was an error sending this book: epub format not found for book id: xy.

Version: 7/31/22, 4:14 PM Current version

I am having the same issue. If I convert the book manually in calibre it will send but otherwise the function "convert mobi to epub and send" does not work in calibre-web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants