External library assets go offline sometimes #6434

Closed
opened 2026-02-05 12:17:22 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ilopmar on GitHub (Jul 6, 2025).

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

  • Yes

The bug

I sync my mobile phone pictures from my phone to a directory in my NAS. I mount that directory in docker-compose and I have configured it as an external library. This works perfect!
The external library is on a mechanical HDD that after some minutes idle it's stopped to reduce power consumption, usage and noise.

When I scan my external library and the disks are idle, I hear them start spinning up and Immich can access all the pictures in there. The strange behavior is when the disks are not idle. When that happens and Immich scans my external library, it marks all the assets as offline. It seems that Immich can't detect the files properly (even if they are there). What I need to do is stop and start again Immich, scan the library and now all assets are marked again as online.

This is not a NFS share or something similar, it's just a directory in the same server (I have Immich running on my NAS).

The OS that Immich Server is running on

Ubuntu Server 24.04.2

Version of Immich Server

v1.135.3

Version of Immich Mobile App

v1.135.3

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:v1.135.3
    shm_size: 1g
    networks:
      - immich_net
      - immich_internal_net
    volumes:
      - ./upload:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - /mnt/DATA2/mobile:/data/mobile:rw
      
    environment:
      TZ: Europe/Madrid
    env_file:
      - .env
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped
    healthcheck:
      disable: false
    depends_on:
      - redis
      - postgres
    labels:
      # Traefik labels

  redis:
    container_name: immich_redis
    image: valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
    shm_size: 1g
    healthcheck:
      test: redis-cli ping || exit 1
    restart: unless-stopped
    networks:
      - immich_internal_net
    volumes:
      - ./redis:/data

  postgres:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:17-vectorchord0.4.3
    shm_size: 2g
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      - ./postgres:/var/lib/postgresql/data
    restart: unless-stopped
    networks:
      - immich_internal_net

networks:
  immich_net:
    name: immich_net
    ipam:
      config:
        - subnet: 172.42.20.0/24
  immich_internal_net:
    name: immich_internal_net
    ipam:
      config:
        - subnet: 172.11.20.0/24

Your .env content

DB_PASSWORD=xxxxxxxx

# Do not change this
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
DB_HOSTNAME=immich_postgres

Reproduction steps

Not sure how easy would be to reproduce it. For me it happens as I've explained.

Maybe there's a way to increase the log or something to be able to know why assets go offline

Relevant log output


Additional information

No response

Originally created by @ilopmar on GitHub (Jul 6, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug I sync my mobile phone pictures from my phone to a directory in my NAS. I mount that directory in docker-compose and I have configured it as an external library. This works perfect! The external library is on a mechanical HDD that after some minutes idle it's stopped to reduce power consumption, usage and noise. When I scan my external library and the disks are idle, I hear them start spinning up and Immich can access all the pictures in there. The strange behavior is when the disks are not idle. When that happens and Immich scans my external library, it marks all the assets as offline. It seems that Immich can't detect the files properly (even if they are there). What I need to do is stop and start again Immich, scan the library and now all assets are marked again as online. This is not a NFS share or something similar, it's just a directory in the same server (I have Immich running on my NAS). ### The OS that Immich Server is running on Ubuntu Server 24.04.2 ### Version of Immich Server v1.135.3 ### Version of Immich Mobile App v1.135.3 ### Platform with the issue - [x] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v1.135.3 shm_size: 1g networks: - immich_net - immich_internal_net volumes: - ./upload:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /mnt/DATA2/mobile:/data/mobile:rw environment: TZ: Europe/Madrid env_file: - .env devices: - /dev/dri:/dev/dri restart: unless-stopped healthcheck: disable: false depends_on: - redis - postgres labels: # Traefik labels redis: container_name: immich_redis image: valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177 shm_size: 1g healthcheck: test: redis-cli ping || exit 1 restart: unless-stopped networks: - immich_internal_net volumes: - ./redis:/data postgres: container_name: immich_postgres image: ghcr.io/immich-app/postgres:17-vectorchord0.4.3 shm_size: 2g environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - ./postgres:/var/lib/postgresql/data restart: unless-stopped networks: - immich_internal_net networks: immich_net: name: immich_net ipam: config: - subnet: 172.42.20.0/24 immich_internal_net: name: immich_internal_net ipam: config: - subnet: 172.11.20.0/24 ``` ### Your .env content ```Shell DB_PASSWORD=xxxxxxxx # Do not change this DB_USERNAME=postgres DB_DATABASE_NAME=immich DB_HOSTNAME=immich_postgres ``` ### Reproduction steps Not sure how easy would be to reproduce it. For me it happens as I've explained. Maybe there's a way to increase the log or something to be able to know why assets go offline ### Relevant log output ```shell ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#6434