janeczku / calibre-web

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

Cannot download books, cannot upload epubs #3141

Closed hwassinger closed 4 days ago

hwassinger commented 1 week ago

Attempting to download books after selecting them from main page. I click the download button and receive a 404 error. This seems to be the same as seen here https://github.com/janeczku/calibre-web/issues/3052

Also when attempting to upload epubs I receive error this file type not supported.

Logfile

4-09-04 09:57:01,582] ERROR {cps.db:881} Author Max Sinclair not found to display name in right order [2024-09-04 09:57:01,662] ERROR {cps.db:881} Author Tao Wong not found to display name in right order [2024-09-04 09:57:05,392] ERROR {cps.embed_helper:47} Metadata embedder encountered an error: Another calibre program such as calibre-server.exe or the main calibre program is running. Having multiple programs that can make changes to a calibre library running at the same time is a bad idea. calibredb can connect directly to a running calibre Content server, to make changes through it, instead. See the documentation of the --with-library option for details. [2024-09-04 09:57:10,392] ERROR {cps.db:881} Author Max Sinclair not found to display name in right order [2024-09-04 09:57:10,491] ERROR {cps.db:881} Author Tao Wong not found to display name in right order [2024-09-04 09:58:00,509] WARN {cps.config_sql:384} Log path not valid, falling back to default [2024-09-04 09:58:00,509] INFO {cps.server:319} webserver stop (restart=True) [2024-09-04 09:58:00,509] INFO {apscheduler.scheduler:212} Scheduler has been shut down [2024-09-04 09:58:01,514] INFO {cps.server:301} Performing restart of Calibre-Web [2024-09-04 09:58:05,767] WARN {cps.config_sql:384} Log path not valid, falling back to default [2024-09-04 09:58:05,834] INFO {cps:175} Starting Calibre Web... [2024-09-04 09:58:05,847] DEBUG {cps.services:26} Cannot import goodreads, showing authors-metadata will not work: No module named 'goodreads' [2024-09-04 09:58:05,847] DEBUG {cps.services:34} Cannot import simpleldap, logging in with ldap will not work: No module named 'flask_simpleldap' [2024-09-04 09:58:05,847] DEBUG {cps.services:42} Cannot import SyncToken, syncing books with Kobo Devices will not work: No module named 'jsonschema' [2024-09-04 09:58:05,847] DEBUG {cps.services:49} Cannot import gmail, sending books via Gmail Oauth2 Verification will not work: No module named 'google_auth_oauthlib' [2024-09-04 09:58:05,891] WARN {py.warnings:112} C:\Users\hwass\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_limiter\extension.py:337: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend. warnings.warn( [2024-09-04 09:58:06,099] DEBUG {cps.gdriveutils:83} Cannot import pydrive, httplib2, using gdrive will not work: No module named 'pydrive' [2024-09-04 09:58:06,280] INFO {apscheduler.scheduler:181} Scheduler started [2024-09-04 09:58:06,280] INFO {apscheduler.scheduler:895} Added job "delete temp" to job store "default" [2024-09-04 09:58:06,280] INFO {apscheduler.scheduler:895} Added job "end scheduled task" to job store "default" [2024-09-04 09:58:06,280] INFO {apscheduler.scheduler:895} Added job "immediately delete temp" to job store "default" [2024-09-04 09:58:06,280] INFO {apscheduler.executors.default:123} Running job "immediately delete temp (trigger: date[2024-09-04 09:58:06 EDT], next run at: 2024-09-04 09:58:06 EDT)" (scheduled at 2024-09-04 09:58:06.280594-04:00) [2024-09-04 09:58:06,280] INFO {apscheduler.scheduler:641} Removed job e7067cddf83a43599b4311e8773fe077 [2024-09-04 09:58:06,280] DEBUG {cps.services.worker:91} Add Task for user: System - Clean up [2024-09-04 09:58:06,280] INFO {apscheduler.executors.default:144} Job "immediately delete temp (trigger: date[2024-09-04 09:58:06 EDT], next run at: 2024-09-04 09:58:06 EDT)" executed successfully [2024-09-04 09:58:06,296] DEBUG {cps.tasks.clean:43} Deleted expired session_keys [2024-09-04 09:58:06,564] DEBUG {cps.helper:76} Cannot import Image, generating covers from non jpg files will not work: MagickWand shared library not found. You probably had not installed ImageMagick library. Try to install: https://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows [2024-09-04 09:58:06,843] DEBUG {cps.comic:46} Cannot import comicapi, extracting comic metadata will not work: No module named 'comicapi' [2024-09-04 09:58:06,847] DEBUG {cps.comic:53} Cannot import rarfile, extracting cover files from rar files will not work: No module named 'rarfile' [2024-09-04 09:58:06,848] DEBUG {cps.comic:59} Cannot import py7zr, extracting cover files from CB7 files will not work: No module named 'py7zr' [2024-09-04 09:58:06,969] DEBUG {cps.uploader:36} Cannot import Image, generating pdf covers for pdf uploads will not work: MagickWand shared library not found. You probably had not installed ImageMagick library. Try to install: https://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows [2024-09-04 09:58:07,179] DEBUG {cps.admin:82} Cannot import Flask-Dance, login with Oauth will not work: No module named 'flask_dance' [2024-09-04 09:58:07,179] DEBUG {cps.gdrive:44} Cannot import googleapiclient, using GDrive will not work: No module named 'googleapiclient' [2024-09-04 09:58:07,276] DEBUG {cps.search_metadata:62} Import error for metadata source: amazon - No module named 'bs4' [2024-09-04 09:58:07,280] DEBUG {cps.search_metadata:62} Import error for metadata source: douban - No module named 'html2text' [2024-09-04 09:58:07,296] DEBUG {cps.search_metadata:62} Import error for metadata source: lubimyczytac - No module named 'dateutil' [2024-09-04 09:58:07,298] DEBUG {cps.search_metadata:62} Import error for metadata source: scholar - No module named 'scholarly' [2024-09-04 09:58:07,396] INFO {cps.server:268} Starting Tornado server on :8083 [2024-09-04 09:58:08,779] ERROR {cps.db:881} Author Max Sinclair not found to display name in right order [2024-09-04 09:58:08,873] ERROR {cps.db:881} Author Tao Wong not found to display name in right order [2024-09-04 09:58:12,323] ERROR {cps.embed_helper:47} Metadata embedder encountered an error: Another calibre program such as calibre-server.exe or the main calibre program is running. Having multiple programs that can make changes to a calibre library running at the same time is a bad idea. calibredb can connect directly to a running calibre Content server, to make changes through it, instead. See the documentation of the --with-library option for details. [2024-09-04 09:58:14,993] ERROR {cps.db:881} Author Max Sinclair not found to display name in right order [2024-09-04 09:58:15,093] ERROR {cps.db:881} Author Tao Wong not found to display name in right order [2024-09-04 09:58:16,930] DEBUG {cps.updater:331} Stable version: {'version': '0.6.23'} [2024-09-04 09:59:32,443] DEBUG {cps.updater:331} Stable version: {'version': '0.6.23'} [2024-09-04 09:59:40,819] DEBUG {cps.helper:1040} calibre version 7.17.0 [2024-09-04 09:59:40,819] DEBUG {cps.config_sql:408} _ConfigSQL updating storage [2024-09-04 09:59:40,850] WARN {cps.config_sql:384} Log path not valid, falling back to default [2024-09-04 09:59:40,866] INFO {cps.server:319} webserver stop (restart=True) [2024-09-04 09:59:40,866] INFO {apscheduler.scheduler:212} Scheduler has been shut down [2024-09-04 09:59:41,880] INFO {cps.server:301} Performing restart of Calibre-Web [2024-09-04 09:59:43,784] WARN {cps.config_sql:384} Log path not valid, falling back to default [2024-09-04 09:59:43,838] INFO {cps:175} Starting Calibre Web... [2024-09-04 09:59:43,882] WARN {py.warnings:112} C:\Users\hwass\AppData\Local\Programs\Python\Python312\Lib\site-packages\flask_limiter\extension.py:337: UserWarning: Using the in-memory storage for tracking rate limits as no storage was explicitly specified. This is not recommended for production use. See: https://flask-limiter.readthedocs.io#configuring-a-storage-backend for documentation about configuring the storage backend. warnings.warn( [2024-09-04 09:59:44,165] INFO {apscheduler.scheduler:181} Scheduler started [2024-09-04 09:59:44,165] INFO {apscheduler.scheduler:895} Added job "delete temp" to job store "default" [2024-09-04 09:59:44,165] INFO {apscheduler.scheduler:895} Added job "end scheduled task" to job store "default" [2024-09-04 09:59:44,165] INFO {apscheduler.scheduler:895} Added job "immediately delete temp" to job store "default" [2024-09-04 09:59:44,165] INFO {apscheduler.executors.default:123} Running job "immediately delete temp (trigger: date[2024-09-04 09:59:44 EDT], next run at: 2024-09-04 09:59:44 EDT)" (scheduled at 2024-09-04 09:59:44.165216-04:00) [2024-09-04 09:59:44,165] INFO {apscheduler.scheduler:641} Removed job 2c5af735b09f4c02826583a3d060d896 [2024-09-04 09:59:44,181] INFO {apscheduler.executors.default:144} Job "immediately delete temp (trigger: date[2024-09-04 09:59:44 EDT], next run at: 2024-09-04 09:59:44 EDT)" executed successfully [2024-09-04 09:59:45,497] INFO {cps.server:268} Starting Tornado server on :8083

Short Notice from the maintainer

After 6 years of more or less intensive programming on Calibre-Web, I need a break. The last few months, maintaining Calibre-Web has felt more like work than a hobby. I felt pressured and teased by people to solve "their" problems and merge PRs for "their" Calibre-Web. I have turned off all notifications from Github/Discord and will now concentrate undisturbed on the development of “my” Calibre-Web over the next few weeks/months.
I will look into the issues and maybe also the PRs from time to time, but don't expect a quick response from me.

Please also have a look at our Contributing Guidelines

Describe the bug/problem

A clear and concise description of what the bug is. If you are asking for support, please check our Wiki if your question is already answered there.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Logfile

Add content of calibre-web.log file or the relevant error, try to reproduce your problem with "debug" log-level to get more output.

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here. [e.g. access via reverse proxy, database background sync, special database location]

OzzieIsaacs commented 1 week ago

The nonworking download is related to this: ERROR {cps.embed_helper:47} Metadata embedder encountered an error: Another calibre program such as calibre-server.exe or the main calibre program is running. Having multiple programs that can make changes to a calibre library running at the same time is a bad idea. calibredb can connect directly to a running calibre Content server, to make changes through it, instead. See the documentation of the --with-library option for details. Please deactivate embed metadata option in the settings

OzzieIsaacs commented 1 week ago

The upload could be related to this: Cannot import Image, generating covers from non jpg files will not work: MagickWand shared library not found. You probably had not installed ImageMagick library. Try to install: https://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows

furthermore please check this: https://github.com/janeczku/calibre-web#requirements Regarding installation of libmagic. Alternatively deactivate the filetype check in the security settings