Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset is offline - but it is not #6827

Closed
1 of 3 tasks
psla opened this issue Feb 1, 2024 · 3 comments
Closed
1 of 3 tasks

Asset is offline - but it is not #6827

psla opened this issue Feb 1, 2024 · 3 comments

Comments

@psla
Copy link

psla commented Feb 1, 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.

@alextran1502
Copy link
Contributor

cc @etnoy

@etnoy
Copy link
Contributor

etnoy commented 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

@psla
Copy link
Author

psla commented Feb 2, 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

@immich-app immich-app locked and limited conversation to collaborators Feb 2, 2024
@jrasm91 jrasm91 converted this issue into discussion #6845 Feb 2, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants