Asset is offline - but it is not #2104

Closed
opened 2026-02-20 01:02:45 -05:00 by deekerman · 3 comments
Owner

Originally created by @psla on GitHub (Jan 31, 2024).

The bug

Immich claims that it can't access the file (this seems to be the case for all the files that I tested from the external library)

image

however, when I log in to immich's shell, the file is found and the permissions look accessible

root@cf8d6f9c93d1:/usr/src/app# ls -al /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg

-r-xr--r-- 1 nobody nogroup 3341292 Oct 29  2022 /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg

The OS that Immich Server is running on

Linux cf8d6f9c93d1 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

Version of Immich Server

v1.94.1

Version of Immich Mobile App

n/a

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.3"

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /mnt/nas/public/wspolne/Fotografie:/mnt/media/Fotografie:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /mnt/nas/public/wspolne/Fotografie:/mnt/media/Fotografie:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
    restart: always

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.1.11
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      PG_DATA: /var/lib/postgresql/data
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always
  backup:
    container_name: immich_db_dumper
    image: prodrigestivill/postgres-backup-local
    env_file:
      - .env
    environment:
      POSTGRES_HOST: database
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      SCHEDULE: "@daily"
      BACKUP_NUM_KEEP: 2
      BACKUP_DIR: /db_dumps
    volumes:
      - /mnt/newhome/unprivileged-docker/immich/db_dumps:/db_dumps
    depends_on:
      - database

volumes:
  pgdata:
  model-cache:

Your .env content

DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=REDACTED
DB_DATABASE_NAME=immich



REDIS_HOSTNAME=immich_redis






UPLOAD_LOCATION=/mnt/nas/srv/immich/pictures


TYPESENSE_API_KEY=GiY1Up1U




PUBLIC_LOGIN_PAGE_MESSAGE=


IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003


IMMICH_API_URL_EXTERNAL=https://REDACTED/

Reproduction steps

1. go to immich web
2. find a file from the library
3. observe the red text
...

Additional information

I forced-rescanned the library, it did not help

Please let me know what logs I can provide to help diagnose. I looked at docker logs but nothing stood out.

Originally created by @psla on GitHub (Jan 31, 2024). ### The bug Immich claims that it can't access the file (this seems to be the case for all the files that I tested from the external library) ![image](https://github.com/immich-app/immich/assets/161429/f016ae17-dd1e-4c5d-97ed-4ea4766ba0d4) however, when I log in to immich's shell, the file is found and the permissions look accessible ``` root@cf8d6f9c93d1:/usr/src/app# ls -al /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg -r-xr--r-- 1 nobody nogroup 3341292 Oct 29 2022 /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg ``` ### The OS that Immich Server is running on Linux cf8d6f9c93d1 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux ### Version of Immich Server v1.94.1 ### Version of Immich Mobile App n/a ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.3" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /mnt/nas/public/wspolne/Fotografie:/mnt/media/Fotografie:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /mnt/nas/public/wspolne/Fotografie:/mnt/media/Fotografie:ro env_file: - .env depends_on: - redis - database restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - .env restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 restart: always database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.1.11 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} PG_DATA: /var/lib/postgresql/data volumes: - pgdata:/var/lib/postgresql/data restart: always backup: container_name: immich_db_dumper image: prodrigestivill/postgres-backup-local env_file: - .env environment: POSTGRES_HOST: database POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_USER: ${DB_USERNAME} POSTGRES_PASSWORD: ${DB_PASSWORD} SCHEDULE: "@daily" BACKUP_NUM_KEEP: 2 BACKUP_DIR: /db_dumps volumes: - /mnt/newhome/unprivileged-docker/immich/db_dumps:/db_dumps depends_on: - database volumes: pgdata: model-cache: ``` ### Your .env content ```Shell DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_PASSWORD=REDACTED DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis UPLOAD_LOCATION=/mnt/nas/srv/immich/pictures TYPESENSE_API_KEY=GiY1Up1U PUBLIC_LOGIN_PAGE_MESSAGE= IMMICH_WEB_URL=http://immich-web:3000 IMMICH_SERVER_URL=http://immich-server:3001 IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003 IMMICH_API_URL_EXTERNAL=https://REDACTED/ ``` ### Reproduction steps ```bash 1. go to immich web 2. find a file from the library 3. observe the red text ... ``` ### Additional information I forced-rescanned the library, it did not help Please let me know what logs I can provide to help diagnose. I looked at `docker logs` but nothing stood out.
Author
Owner

@alextran1502 commented on GitHub (Jan 31, 2024):

cc @etnoy

@alextran1502 commented on GitHub (Jan 31, 2024): cc @etnoy
Author
Owner

@etnoy commented on GitHub (Feb 1, 2024):

Inside the docker container, can you read the file? Like try to execute the file command:

file /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg

@etnoy commented on GitHub (Feb 1, 2024): Inside the docker container, can you read the file? Like try to execute the file command: file /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg
Author
Owner

@psla commented on GitHub (Feb 1, 2024):

root@cf8d6f9c93d1:/usr/src/app# head -c1 /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg
�

reading works fine

@psla commented on GitHub (Feb 1, 2024): ``` root@cf8d6f9c93d1:/usr/src/app# head -c1 /mnt/media/Fotografie/2022/2022-10-29_to_30_Yakima/Pixel5/PXL_20221029_194225561.jpg � ``` reading works fine
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/immich#2104
No description provided.