From 8e8c03891a17798067a8da0a034725bf44ece8d0 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 15 Jul 2026 11:13:25 -0500 Subject: fix: refuse to start when the cache directory is not writable An unwritable cache directory degraded silently: media still served, because the download succeeds before the cache write is attempted, so the only symptom was one "permission denied" line per request and a cache that never filled. Every request re-fetched from the CDN. Probe the directory at startup and exit with the uid and the chown that fixes it. The container image runs as uid 10000, which is the usual cause with a bind-mounted cache, so say so in the message and in both compose examples. --- SETUP.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'SETUP.md') diff --git a/SETUP.md b/SETUP.md index 4cb8aa8..4e7dd93 100755 --- a/SETUP.md +++ b/SETUP.md @@ -12,7 +12,10 @@ Time units: * `uri` — Instance URI. Example: `"uri":"/art/"` -> https://skunky.ebloid.ru/art/ * `cache` — Caching system; default is off. * `enabled` — Caching system state, requires boolean value - * `path` — Path to cache directory, requires absolute filesystem path + * `path` — Path to cache directory. It must be writable by the user SkunkyArt + runs as, and SkunkyArt refuses to start if it is not. The container image + runs as uid 10000, so a bind-mounted cache needs + `sudo chown -R 10000:10000 ` on the host. * `lifetime` — Cached file life time, requires numeric value, followed by multiplicative suffix (see Time Units for details) * `max-size` — Maximum file size in megabytes * `update-interval` — Automatic rotation interval -- cgit v1.2.3