-
The bugThe job page no longer loads and I'm getting an error relating to getaddrinfo EAI_AGAIN redis in the Immich and Immich Microservices container logs. The OS that Immich Server is running onUbuntu 22.04 Version of Immich Serverv1.105.1 Version of Immich Mobile Appv1.105.0 Platform with the issue
Your docker-compose.yml contentimmich:
container_name: immich
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "immich" ]
volumes:
- ./immich/library:/usr/src/app/upload/library
- ./immich/cache/upload:/usr/src/app/upload/upload
- ./immich/cache/thumbs:/usr/src/app/upload/thumbs
- ./immich/cache/profile:/usr/src/app/upload/profile
- ./immich/cache/encoded-video:/usr/src/app/upload/encoded-video
- /etc/localtime:/etc/localtime:ro
- ${HOMEDATA}/Pictures:/photos:ro
env_file:
- .env
ports:
- 2283:3001
environment:
DB_USERNAME: ${ADMIN_USER}
DB_PASSWORD: ${ADMIN_PASSWORD}
DB_DATABASE_NAME: immich
DB_HOSTNAME: immich_postgres
TZ: ${TIMEZONE}
depends_on:
- immich_redis
- immich_postgres
restart: always
immich_microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
command: [ "start.sh", "microservices" ]
env_file:
- .env
environment:
DB_USERNAME: ${ADMIN_USER}
DB_PASSWORD: ${ADMIN_PASSWORD}
DB_DATABASE_NAME: immich
DB_HOSTNAME: immich_postgres
TZ: ${TIMEZONE}
volumes:
- ./immich/library:/usr/src/app/upload/library
- ./immich/cache/upload:/usr/src/app/upload/upload
- ./immich/cache/thumbs:/usr/src/app/upload/thumbs
- ./immich/cache/profile:/usr/src/app/upload/profile
- ./immich/cache/encoded-video:/usr/src/app/upload/encoded-video
- /etc/localtime:/etc/localtime:ro
- ${HOMEDATA}/Pictures:/photos:ro
depends_on:
- immich_redis
- immich_postgres
restart: always
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes:
- ./immich/library:/usr/src/app/upload/library
- ./immich/cache/upload:/usr/src/app/upload/upload
- ./immich/cache/thumbs:/usr/src/app/upload/thumbs
- ./immich/cache/profile:/usr/src/app/upload/profile
- ./immich/cache/encoded-video:/usr/src/app/upload/encoded-video
- ./immich-machine-learning/model-cache:/cache
restart: always
environment:
TZ: ${TIMEZONE}
immich_redis:
image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
container_name: immich_redis
restart: always
environment:
TZ: ${TIMEZONE}
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./immich-redis:/data
immich_postgres:
container_name: immich_postgres
image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${ADMIN_PASSWORD}
POSTGRES_USER: ${ADMIN_USER}
POSTGRES_DB: immich
POSTGRES_INITDB_ARGS: '--data-checksums'
ports:
- "5432:5432"
volumes:
- ./immich-postgres:/var/lib/postgresql/data
command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
restart: always
labels:
autoheal-app: true Your .env contentIMMICH_VERSION=v1.105.1 Reproduction stepsUpgrade to v1.105.1
Open Immich in a browser
Try to load Jobs page Relevant log outputError: getaddrinfo EAI_AGAIN redis
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'redis'
} Additional informationI don't get this error in v1.102.3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Your redis container is not working |
Beta Was this translation helpful? Give feedback.
-
My redis log is below. It looks to be working but do you know how I can debug further?
|
Beta Was this translation helpful? Give feedback.
Setting REDIS_HOSTNAME: immich_redis in the environment vars for immich and immich_microservices seems to also resolve the issue and feels like a better fix.