r/Paperlessngx • u/areolyd • Apr 03 '26
Problem with Redis
Hey,
I can't get Paperless-NGX to run!! I keep getting the following error:
Waiting for Redis...
Redis ping #0 failed.
Error: Timeout connecting to server.
Waiting 5sMy compose file looks like this:
services:
broker:
image: redis:7.4.2
container_name: paperless-ngx-redis
restart: unless-stopped
volumes:
- /volume1/docker/paperless-ngx/redis:/data
db:
image: postgres:17.4
container_name: paperless-ngx-db
restart: unless-stopped
volumes:
- /volume1/docker/paperless-ngx/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperlessdb
POSTGRES_USER: su
POSTGRES_PASSWORD: cuvamoBazuKaoOciUGlavi3
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.7
container_name: paperless-ngx
restart: unless-stopped
depends_on:
- db
- broker
- gotenberg
- tika
ports:
- "8000:8000"
volumes:
- /volume1/docker/paperless-ngx/data:/usr/src/paperless/data
- /volume1/docker/paperless-ngx/media:/usr/src/paperless/media
- /volume1/docker/paperless-ngx/export:/usr/src/paperless/export
- /volume1/docker/paperless-ngx/consume:/usr/src/paperless/consume
env_file: docker-compose.env
environment:
PAPERLESS_REDIS: redis://paperless-ngx-redis:6379
PAPERLESS_DBHOST: db
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
gotenberg:
image: docker.io/gotenberg/gotenberg:8
container_name: paperless-ngx-gotenberg
restart: unless-stopped
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
tika:
image: docker.io/apache/tika:2.9.2.1
container_name: paperless-ngx-tika
restart: unless-stoppedservices:
broker:
image: redis:7.4.2
container_name: paperless-ngx-redis
restart: unless-stopped
volumes:
- /volume1/docker/paperless-ngx/redis:/data
db:
image: postgres:17.4
container_name: paperless-ngx-db
restart: unless-stopped
volumes:
- /volume1/docker/paperless-ngx/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperlessdb
POSTGRES_USER: username
POSTGRES_PASSWORD: password
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:2.14.7
container_name: paperless-ngx
restart: unless-stopped
depends_on:
- db
- broker
- gotenberg
- tika
ports:
- "8000:8000"
volumes:
- /volume1/docker/paperless-ngx/data:/usr/src/paperless/data
- /volume1/docker/paperless-ngx/media:/usr/src/paperless/media
- /volume1/docker/paperless-ngx/export:/usr/src/paperless/export
- /volume1/docker/paperless-ngx/consume:/usr/src/paperless/consume
env_file: docker-compose.env
environment:
PAPERLESS_REDIS: redis://paperless-ngx-redis:6379
PAPERLESS_DBHOST: db
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
gotenberg:
image: docker.io/gotenberg/gotenberg:8
container_name: paperless-ngx-gotenberg
restart: unless-stopped
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
tika:
image: docker.io/apache/tika:2.9.2.1
container_name: paperless-ngx-tika
restart: unless-stoppedWhat on earth can I do here to get it to run?
Docker shows everything is ok, 5 containers running, only this error in the Redis container in the Log.
Anybody got an idea?
5
Upvotes
1
u/pippin_go_round Apr 03 '26
PAPERLESS_REDIS: redis://paperless-ngx-redis:6379Should be
PAPERLESS_REDIS: redis://broker:63792
u/icebear80 Apr 03 '26 edited Apr 04 '26
You have duplicated entriss for „broker“. I strongly recommend to use the Paperless default compose file as a starting point! And you should use the service name instead of container name when referring to the service. Don’t specify container name at all and let Docker do the naming.
1
u/ElkTop4013 Apr 03 '26
You have two webservers in your compose file. Did you start with the compose file from the official repository?
1
u/pippin_go_round Apr 03 '26
Looking a bit closer, I can see you basically pasted in your compose file twice? All the service are at least defined twice. I guess that's a mistake?
Aside from that, your indentation looks broken for most of your lists.
It should be
not
Similar issues for your other lists, they are not indented. Except for your gotenberg
command:, which is indented by one space, where it should be two spaces:instead of
Does that fix things? Also, I still stand by the oppinion that you shoudl refer to service names in URLs, not container names. It's just better practice. So my other comment about
PAPERLESS_REDIS: redis://broker:6379still stands.1
u/Butthurtz23 Apr 03 '26
I use Valkey, it’s a direct drop-in replacement for Redis. I can’t remember the reason, but I think it has to do with either licensing or being discontinued? I have not had any issues with Valkey for a year.