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

Book covers no longer load #3278

Open
kqvanity opened this issue Jan 5, 2025 · 0 comments
Open

Book covers no longer load #3278

kqvanity opened this issue Jan 5, 2025 · 0 comments

Comments

@kqvanity
Copy link

kqvanity commented Jan 5, 2025

Short Notice from the maintainer

Describe the bug/problem

I'm using cailbre-web on NixOS and updating the thumnails caused all of them to be be gone. Even thumbnails for newly added books don't show up.

To Reproduce

Steps to reproduce the behavior: (on NixOS)

  1. Go to Admin settings
  2. Enable thumbnail cache update
  3. After the first update, all thumbnails will be gone

Logfile

Jan 05 19:08:14 nixos calibre-web[899603]:     path = join(self.get_cache_dir(cache_type), filename[:2])
Jan 05 19:08:14 nixos calibre-web[899603]:                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 05 19:08:14 nixos calibre-web[899603]:   File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/fs.py", line 39, in get_cache_dir
Jan 05 19:08:14 nixos calibre-web[899603]:     makedirs(self._cache_dir)
Jan 05 19:08:14 nixos calibre-web[899603]:   File "<frozen os>", line 225, in makedirs
Jan 05 19:08:14 nixos calibre-web[899603]: OSError: [Errno 30] Read-only file system: '/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/cache'
^C

Expected behavior

Book covers to be visible/get updated accordingly

Environment (please complete the following information):

  • OS: Linux nixos 6.6.63 Unable to create Admin user #1-NixOS SMP PREEMPT_DYNAMIC Fri Nov 22 14:38:37 UTC 2024 x86_64 GNU/Linux

  • Python version: python3.12

  • Calibre-Web version: Calibre-Web version: 0.6.22 -2024-07-06T13:29:17+02:00

  • Docker container: [None/LinuxServer]:

  • Special Hardware: x86 Desktop

  • Browser: Mozilla Firefox 133.0.3

** Firefox network 500 responses for when loading book covers

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 "/nix/store/jbfsd62gmlq1ykpz9gkygxi1kh232a5i-python3.12-flask-3.0.3/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/jbfsd62gmlq1ykpz9gkygxi1kh232a5i-python3.12-flask-3.0.3/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/jbfsd62gmlq1ykpz9gkygxi1kh232a5i-python3.12-flask-3.0.3/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/jbfsd62gmlq1ykpz9gkygxi1kh232a5i-python3.12-flask-3.0.3/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 "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/usermanagement.py", line 35, in decorated_view
return login_required(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/vllfjcr0chd28dw4m3gbmpjip2pmsa9d-python3.12-flask-login-0.7.0dev0-2024-06-18/lib/python3.12/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/web.py", line 1156, in get_cover
return get_book_cover(book_id, cover_resolution)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/helper.py", line 763, in get_book_cover
return get_book_cover_internal(book, resolution=resolution)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/helper.py", line 781, in get_book_cover_internal
if cache.get_cache_file_exists(thumbnail.filename, CACHE_TYPE_THUMBNAILS):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/fs.py", line 69, in get_cache_file_exists
path = self.get_cache_file_path(filename, cache_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/fs.py", line 66, in get_cache_file_path
return join(self.get_cache_file_dir(filename, cache_type), filename) if filename else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/fs.py", line 55, in get_cache_file_dir
path = join(self.get_cache_dir(cache_type), filename[:2])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/fs.py", line 39, in get_cache_dir
makedirs(self._cache_dir)
File "<frozen os>", line 225, in makedirs
OSError: [Errno 30] Read-only file system: '/nix/store/mh6k4r727f6jnh2hfzf8yhb7pv4ffpkr-calibre-web-0.6.22/lib/python3.12/site-packages/calibreweb/cps/cache'
Please report this issue with all related information: [Create Issue](https://github.com/janeczku/calibre-web/issues/new/choose)
[Return to Home](https://github.com/)
@kqvanity kqvanity changed the title Thumbnail cache on read-only filesystem Book covers no longer load Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant