-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
nixos/calibre-web: fix book cover not showing up due to cache directory defaults to cps path under /nix/store/ #432604
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
base: master
Are you sure you want to change the base?
Conversation
@pborzenkov sorry for the ping again quick question, i tried this patch on my pre-existing deployment but i had to go manually create the cache directory and set the permission for it to work would systemd only create directories for fresh units? or we’ll have to add a pre start script to create the cache directory? i saw quite a few modules either creating directories in pre start script, or they just set the cache directory and permissions in service config (our approach here) and let systemd handle it for them |
I think it needs to be a relative path. From
|
But state directory (by default) is also an absolute path though, maybe this was able to pass because of calibre-web itself will try to create it on its own? Do you think it'd be better to change both state and cache directories to relative path by default in this patch or just leave them as is? |
The nixpkgs/nixos/modules/services/web-apps/calibre-web.nix Lines 182 to 184 in 374cdcf
Otherwise the directory is created via systemd temp files:
In both cases the actual path that's passed to
So for |
…ry defaults to cps path under /nix/store/
the default cache directory is set to the
constants.py
's directory (under /nix/store/ obviously) ifCACHE_DIR
environment variable is not presentcalibre-web server will return 500 for all the book covers
Things done
passthru.tests
.nixpkgs-review
on this PR. See nixpkgs-review usage../result/bin/
.Add a 👍 reaction to pull requests you find important.