Skip to content

v1.139.2 Docker Container Restart Loop #21189

@allancoding

Description

@allancoding

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

When I upgraded from v1.138.1 to v1.139.2 the docker container infinity restarts. Downgrading to version v1.139.1 fixes the issue.

Image

The OS that Immich Server is running on

Debian

Version of Immich Server

v1.139.2

Version of Immich Mobile App

v1.139.2

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

No response

Your docker-compose.yml content

name: immich
services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - ${UPLOAD_LOCATION}:/data
      - /mnt/Wilcken:/mnt/wilcken
      - /mnt/Gudmundson:/mnt/gudmundson
      - /mnt/Niles:/mnt/niles
      - /mnt/Public:/mnt/public
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: unless-stopped
    healthcheck:
      disable: false
    labels:
      - "com.centurylinklabs.watchtower.monitor-only=true"

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - immich-model-cache:/cache
    env_file:
      - stack.env
    restart: unless-stopped
    healthcheck:
      disable: false
    labels:
      - "com.centurylinklabs.watchtower.monitor-only=true"

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    volumes:
      - immich-redis:/data
    labels:
      - "com.centurylinklabs.watchtower.monitor-only=true"

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data

    restart: unless-stopped
    labels:
      - "com.centurylinklabs.watchtower.monitor-only=true"

volumes:
  immich-model-cache:
  immich-redis:

Your .env content

UPLOAD_LOCATION=/home/allan/immich/library
DB_DATA_LOCATION=/home/allan/immich/postgres
IMMICH_VERSION=release
DB_PASSWORD=***redacted***
DB_USERNAME=immich
DB_DATABASE_NAME=
IMMICH_PROCESS_INVALID_IMAGES=true

Reproduction steps

  1. docker compose up and the immich-server with restart infinity
  2. Check the logs

Relevant log output

Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4
Initializing Immich v1.139.2
Detected CPU Cores: 4

Additional information

Going back a version, the server starts up normally.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions