Closed lockheed closed 11 months ago
PUID
/PGID
aren't going to do anything for this image. Since you didn't set user:
, the image will drop down from root
and then run as the redis
user in the container (user ID 999
). It should've tried to chown
the /data
directory to 999
on start, but that may not have been possible depending on what the host path is.
You can double check what user it is running as by doing a docker top
with the running container name.
I think it is using user 999
# docker top paperless-redis UID PID PPID C STIME TTY TIME CMD 999 4173517 4173494 0 13:18 ? 00:00:00 redis-server *:6379
If you need uid/gid 1000
as your env vars seem to indicate and the host directory (/z/docker/_configs/paperless-ngx/redisdata
) is already owned/writable by 1000
, then user: "1000:1000"
is the correct compose field/value to tell it to run as that user/group (https://docs.docker.com/compose/compose-file/05-services/#user).
I made that modification and it seemed to work for 10 minutes, but then stopped again:
paperless-ngx log:
[2024-03-20 21:44:06,813] [ERROR] [celery.worker.consumer.consumer] consumer: Cannot connect to redis://broker:6379//: MISCONF Redis is configured to save RDB snapshots, but it's currently unable to persist to disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error..
redis log:
1:M 20 Mar 2024 22:40:30.112 # Background saving error 1:M 20 Mar 2024 22:40:36.022 * 1 changes in 3600 seconds. Saving... 1:M 20 Mar 2024 22:40:36.023 * Background saving started by pid 628 628:C 20 Mar 2024 22:40:36.023 # Failed opening the temp RDB file temp-628.rdb (in server root dir /data) for saving: Permission denied 1:M 20 Mar 2024 22:40:36.123 # Background saving error
I use this docker compose:
When I try to upload document to paperless-ngx, it doesn't save it and complains
because Redis complains:
All the disk permissions seem to be correct. I am out of ideas.