-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Description
I get "HTTP500" on every try to upload a book.
I tried resetting permissions and restarting the container and even the host.
Looking into /books, calibe is able to create the initial dir for the epub, but can't send the epub itself there.
Steps to reproduce the behavior:
Drag&Drop a book or select it via the file-chooser and upload.
Logfile
[2024-12-16 15:07:14,897] WARN {py.warnings:110} /app/calibre-web/cps/editbooks.py:1405: SAWarning: Object of type <Books> not in session, add operation along 'Authors.books' won't proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
db_element = db_session.query(db_object).filter((func.lower(db_filter).ilike(add_element))).all()
[2024-12-16 15:07:14,914] WARN {py.warnings:110} /app/calibre-web/cps/editbooks.py:1405: SAWarning: Object of type <Books> not in session, add operation along 'Languages.books' won't proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
db_element = db_session.query(db_object).filter((func.lower(db_filter).ilike(add_element))).all()
[2024-12-16 15:07:14,920] WARN {py.warnings:110} /app/calibre-web/cps/editbooks.py:1405: SAWarning: Object of type <Books> not in session, add operation along 'Tags.books' won't proceed (This warning originated from the Session 'autoflush' process, which was invoked automatically in response to a user-initiated operation.)
db_element = db_session.query(db_object).filter((func.lower(db_filter).ilike(add_element))).all()
[2024-12-16 15:07:14,981] ERROR {cps.helper:557} Rename title from /tmp/calibre_web/535d88ad4e9b9f056e6bd9039711182a to /books/Taddl/What The Fact_ Vollig unnutzes Wissen (1865) failed with error: [Errno 13] Permission denied: '/books/Taddl/What The Fact_ Vollig unnutzes Wissen (1865)'
[2024-12-16 15:07:14,981] ERROR {cps:838} Exception on /upload [POST]
Traceback (most recent call last):
File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/lsiopy/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/calibre-web/cps/usermanagement.py", line 97, in decorated_view
return login_required(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/calibre-web/cps/cw_login/utils.py", line 296, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/calibre-web/cps/editbooks.py", line 60, in inner
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/app/calibre-web/cps/editbooks.py", line 138, in upload
error = helper.update_dir_structure(book_id,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/calibre-web/cps/helper.py", line 714, in update_dir_structure
return update_dir_structure_file(book_id,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/calibre-web/cps/helper.py", line 473, in update_dir_structure_file
rename_all_files_on_change(local_book, new_path, new_path, all_new_name)
File "/app/calibre-web/cps/helper.py", line 400, in rename_all_files_on_change
os.makedirs(new_path)
File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/books/Taddl/What The Fact_ Vollig unnutzes Wissen (1865)'
Screenshots
Environment
- OS: Debian GNU/Linux 11 (bullseye)
- Python version: 3.9.2
- Calibre-Web version: 0.6.24
- Docker container: LinuxServer
- Browser: Any