#External Library will not add new files

1 messages · Page 1 of 1 (latest)

lethal glacier
#

I have a working External Library. Images show up, everything works fine.

I add new files and folders to the directory.

I Re-scan external library.

No new files are found, no new images are shown.

I have tried this with and without the "External Library Watching" - it makes no difference.

dusky mulchBOT
#

:wave: Hey @lethal glacier,

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

References

#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :ballot_box_with_check: reviewed Github for known issues.
  5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: uploaded the relevant information (see below).
  7. :ballot_box_with_check: 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)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

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

lethal glacier
fair nebula
#

Cc @formal venture

#

Can you try monitor the server logs, add a new photos to the library and hit scan library? Then can you show the log here?

formal venture
lethal glacier
# formal venture Hello. I'll need your docker logs. Have you tried the troubleshooting steps: htt...

Log is attached. I ran the library scan again just now.

As far as the troublshooting: Volumes are mounted correctly and accessible via the container console. The external library works, and some of the new files that are not showing up are in the same exact folder as ones that are already working. All of them are in the same parent folder.

I do not have any exclusion patterns set

lethal glacier
#

Tried a full reboot and then redeployed the container, just to see. Library scan still sees all of the old files and doesn't register any of the new ones but doesn't throw any errors either.

[Nest] 6 - 03/05/2025, 2:57:34 PM LOG [Microservices:LibraryService] Refreshing library 4822b973-3503-4528-a2c1-09056b7a5e59 for new assets [Nest] 6 - 03/05/2025, 2:57:34 PM LOG [Microservices:LibraryService] Scanning library 4822b973-3503-4528-a2c1-09056b7a5e59 for removed assets [Nest] 6 - 03/05/2025, 2:57:37 PM LOG [Microservices:LibraryService] Finished queueing check of 11672 assets for library 4822b973-3503-4528-a2c1-09056b7a5e59

#

The folder structure is like this:

2024
-01
-02
-03
-04
-05
-06
-07 - old folders ^^^
-08 - old folder, half existing images, half new images added. Old ones seen in library, new ones not.
-09 - new folders , not in library at all
-10
-11
-12

formal venture
#

Can you enable verbose logging and scan again? I want to see the individual file syncs

lethal glacier
formal venture
#

It is strange to me that the final line of scans just says "Finished queueing scan of 11672 assets on disk for library 4822b973-3503-4528-a2c1-09056b7a5e59"

#

There should be some logs related the the scan/ingest of each individual file after that. That line above is just the queueing

#

Are there any jobs running in the library job queue?

lethal glacier
#

No, 0 on everything

formal venture
#

I would expect something like this: "immich_server | [Nest] 7 - 03/06/2025, 1:50:46 PM LOG [Microservices:LibraryService] Importing new library asset: /data/import/bilder/2025/20230403_223047.jpg"

#

Likley all the assets are already in immich

#

Did you check the trash folder?

#

In the server stats, how many assets are found?

#

This means you have 11672 assets in immich: "Finished queueing check of 11672 assets"

lethal glacier
formal venture
#

So... What is 667+11005?

lethal glacier
#

Right, thats the 11,672

formal venture
#

Yep

lethal glacier
#

But still no sign of the new files added being found at all

lethal glacier
formal venture
lethal glacier
#

Here of screenshots of the folders of the Library in Immich, with my local file browser opened to the same folders. You can see the existing folders, and then the new ones that I added which do not show up in Immich.

#

They are organized by year/date folder. So I recently added 2024/09 2024/10 etc, and 2025, as you can see in the pictures. Immich does not see them.

#

Total of 1062 assets added

formal venture
lethal glacier
#
  • In the docker-compose file, are the volumes mounted correctly?*
    ----I think yes because when I open the volume in the immich stack console I can navigate to it correctly
    ----I can also navigate through the folders from within Immich, except for the newly added ones, via the folders nav option.

  • Are the volumes also mounted to any worker containers?*
    ----Nothing says this is required, but I went ahead and added the volume to the machine_learning and postgres containers. Nothing changed.

  • Are the import paths set correctly, and do they match the path set in docker-compose file?*
    ----I think yes because when I go to external library > validate path is says Path Validated Successfully
    ----I think yes because all of the existing pictures in this external library work correctly

  • Make sure you don't use symlinks in your import libraries, and that you aren't linking across docker mounts.*
    ----Nothing is symlinked that I know of

  • Are the permissions set correctly?*
    ----All the files and folders have the same permissions as far as I can tell. See attached screenshot from immich container console

  • Make sure you are using forward slashes (/) and not backward slashes.*
    ---Yes, this is a linux system, everything is a forward slash.

formal venture
#

Can you read the required files from within the docker container? Often, the docker volume can't access the files, causing them not to be added

lethal glacier
#

I finally figured out that the new images somehow had a trailing space at the end of the filename (after the extension). This was (understandably) causing Immich to miss them.

This can be marked closed / solved.

formal venture
#

That's an interesting find, please file a GitHub issue about trailing spaces

formal venture
#

Fix in #17130