#v1.114.0 External library does not detect files although path is recognized

1 messages · Page 1 of 1 (latest)

unique slate
#

Hi dear community,
I'm new to Immich and currently trying to setup external library scanning via a mount on my NAS.

Here's what I did:

  1. Mount the path to the immich-server service in compose.yaml:
    name: immich
    services:
    immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:

    • ${UPLOAD_LOCATION}:/usr/src/app/upload
    • /etc/localtime:/etc/localtime:ro
    • /mnt/homelab-pool/apps/minio/data/backup:/libs/backup:ro
      env_file:
    • .env
      ...
      ..
  2. Check whether the path and files are recognized in the container:
    root@d6a69b209be4:/# ls /libs/backup/Familie
    2021-07-30_17-15-14_IMG_2417.JPG 2021-07-30_17-18-22_IMG_2416.JPG 2022-09-16_20-45-03_IMG_3805.HEIC

  3. Check whether the library path is recognized by Immich (see photo)

  4. Force rescan

Result: Library keeps empty, even though there are just three photos in it.

Did I missed anything?

gray radishBOT
#

:wave: Hey @unique slate,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

gray radishBOT
knotty quarry
#

can you post the server logs while doing a scan?

unique slate
#

Hi @knotty quarry , thanks for the prompt response.

here the logs of the scan (verbose):

immich_server | [Nest] 7 - 09/10/2024, 7:05:19 PM LOG [Microservices:LibraryService] Refreshing library 46fb5e5c-7359-480f-889c-87254a512469
immich_server | [Nest] 7 - 09/10/2024, 7:05:19 PM DEBUG [Microservices:LibraryService] No non-excluded assets found in any import path for library 46fb5e5c-7359-480f-889c-87254a512469
immich_server | [Nest] 7 - 09/10/2024, 7:05:19 PM DEBUG [Microservices:LibraryService] Discovered 0 asset(s) in library 46fb5e5c-7359-480f-889c-87254a512469...
immich_server | [Nest] 7 - 09/10/2024, 7:05:19 PM DEBUG [Microservices:LibraryService] Queued online check of 0 asset(s) in library 46fb5e5c-7359-480f-889c-87254a512469...

knotty quarry
#

you haven't specified any exclusion pattern?

#

and just to be clear the path Familie doesn't have any non-ASCII characters / accents?

unique slate
#

The path shouldn't contain any non-ASCII characters

#

from the container shell:

root@d6a69b209be4:/libs/backup/Familie# pwd
/libs/backup/Familie

unique slate
dark oar
#

What is the output of ls -lah /libs/backup/Familie in the container? (And perhaps also in /mnt/homelab-pool/apps/minio/data/backup/Familie ?)

unique slate
#

Hi @dark oar
from within the container:
root@d6a69b209be4:/usr/src/app# ls -lah /libs/backup/Familie
total 43K
drwxrwx--- 5 root 568 5 Sep 10 11:14 .
drwxrwx--- 3 root 568 3 Sep 10 11:14 ..
drwxrwx--- 3 root 568 4 Sep 10 11:14 2021-07-30_17-15-14_IMG_2417.JPG
drwxrwx--- 3 root 568 4 Sep 10 11:14 2021-07-30_17-18-22_IMG_2416.JPG
drwxrwx--- 3 root 568 4 Sep 10 11:14 2022-09-16_20-45-03_IMG_3805.HEIC

#

From the NAS shell:
$ ls -lah /mnt/homelab-pool/apps/minio/data/backup/Familie
total 43K
drwxrwx--- 5 root apps 5 Sep 10 11:14 .
drwxrwx--- 3 root apps 3 Sep 10 11:14 ..
drwxrwx--- 3 root apps 4 Sep 10 11:14 2021-07-30_17-15-14_IMG_2417.JPG
drwxrwx--- 3 root apps 4 Sep 10 11:14 2021-07-30_17-18-22_IMG_2416.JPG
drwxrwx--- 3 root apps 4 Sep 10 11:14 2022-09-16_20-45-03_IMG_3805.HEIC

unique slate
#

I just noted that the shown filessize is strange. In the MinIO UI:

dark oar
#

Why are your pictures a directory 🤔

#

Anyway, they are owned by root:apps on your NAS, is that what docker user runs as? Or does it have access to it?

unique slate
#

Thanks for pointing that out @dark oar ! The files are not stored in their original format by MinIO 🤦‍♂️ Using a normal fileshare works as expected. Thanks for your help!