I
Immichβ€’2mo ago
MrKitsune

One import path scanned, the other has not

After hours of trying, I've managed to get one import path scanned. I'm passing this through via smb from another lxc, and while it might not be advised, it's working very well. It's the parent folder that I've made available through smb, and the folder inside that is what I've added as an import path. When I add a second folder, it says the path is valid, but it does not scan. If it helps, it seems like it is trying to scan but not doing anything: root@Immich:/opt/immich# docker logs -f immich_server --since 20m | grep -i -E 'Nadia|NasPhotos|/photos|scan|index|import|error|warn' [Nest] 18 - 09/03/2025, 12:47:43 PM LOG [Api:LibraryService~77ugcw32] Starting to scan library 7b08f408-1473-43c8-b335-15319288dc7e It's probably a really easy fix, but for the life of me, I can't work it out. Thanks for all your help.
24 Replies
Immich
Immichβ€’2mo ago
:wave: Hey @MrKitsune, 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 - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA 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.
schuhbacca
schuhbaccaβ€’2mo ago
Please post your compose and env
MrKitsune
MrKitsuneOPβ€’2mo ago
I believe this is them
schuhbacca
schuhbaccaβ€’2mo ago
Why are you using those overrides? ML doens't need to know about external library. So all your photos you are trying to mount via external library are located in /photos?
MrKitsune
MrKitsuneOPβ€’2mo ago
so i can just delete the whole yml overide section? Yeah so the two separate libraries are on my NAS and I've shared /photos via SMB, and one of the folders in /photos has scanned and is working fine, but the other is not (but it comes up as a valid path in immich ui)
schuhbacca
schuhbaccaβ€’2mo ago
You can move the /photos:/photos into the volumes section of the server above. Then remove whatever that override section is Can yo ushare a screenshot of your libraries page
MrKitsune
MrKitsuneOPβ€’2mo ago
No description
No description
schuhbacca
schuhbaccaβ€’2mo ago
Can you do ls -l /photos/Nadia/NasPhotos in both the host and container and verify the container has access to those files?
MrKitsune
MrKitsuneOPβ€’2mo ago
container returns this: root@Immich:/opt/immich# ls -l /photos/Nadia/NasPhotos total 0 dr-xr-xr-x 2 nobody nogroup 0 Dec 3 2024 2024 dr-xr-xr-x 2 nobody nogroup 0 Apr 19 15:38 2025 dr-xr-xr-x 2 nobody nogroup 0 Apr 6 13:05 'Disposable cam' dr-xr-xr-x 2 nobody nogroup 0 Nov 14 2024 "Nadia's Nellie" dr-xr-xr-x 2 nobody nogroup 0 Aug 25 20:20 'Phone Photos' root@Immich:/opt/immich# And the host (and lxc I've set smb up) returns this: root@nas:~# ls -l /photos/Nadia/NasPhotos ls: cannot access '/photos/Nadia/NasPhotos': No such file or directory However, I get the same results when I do the other external path (the one that's working) to clairfy, the same 'no such file' when running the second command
schuhbacca
schuhbaccaβ€’2mo ago
We reallllly don't recommend running docker in an lxc (Neither does proxmox). It can lead weird permissions issues that are hard to debug
MrKitsune
MrKitsuneOPβ€’2mo ago
I would have done it inside a vm, but I thought everything was fine from the first library doing everything well. Do you think it's best to go to a vm? I'm a little tight on resources so that was my main reason to go lxc/docker
schuhbacca
schuhbaccaβ€’2mo ago
I think it would be worth a try. We have seen a lot of these cases where mounts and things have wonky behaviour in lxc's
MrKitsune
MrKitsuneOPβ€’2mo ago
fiar enough! off the top of your head, would a vm take substantially more resources? Just looking for a lightweight solution (though I'll ideally grab some more ram soon)
schuhbacca
schuhbaccaβ€’2mo ago
I mean I would call a headless linux distro minimal as far as resource use, your services running will be the majority of the load
MrKitsune
MrKitsuneOPβ€’2mo ago
makes sense πŸ™‚ Thanks for your help, I'll spin up a vm and have another crack!
MrKitsune
MrKitsuneOPβ€’2mo ago
Ok, update. I've got it in a vm, but still the same issue
MrKitsune
MrKitsuneOPβ€’5w ago
Hi, just wondering if anyone has seen this? πŸ€”
schuhbacca
schuhbaccaβ€’5w ago
Sorry just getting back to this. Can you get shell into the container. Then head to where you are mounting the external library and see if you can actually see any images in there? (All within the container itself)
MrKitsune
MrKitsuneOPβ€’5w ago
All good! I appreciate the help πŸ™‚ So it's running in a vm, and I can ssh into it and I can see both paths and files inside those paths πŸ˜΅β€πŸ’«
schuhbacca
schuhbaccaβ€’5w ago
Right. But can you see the files from within the container when you get a shell in the immich server
MrKitsune
MrKitsuneOPβ€’5w ago
yep, just got into the container via how you said, and I can see all the files again πŸ˜›
schuhbacca
schuhbaccaβ€’5w ago
Can you set the logging to finest and try and re-scan the library?
Zeus
Zeusβ€’5w ago
Please show output of all that you’re seeing both inside container and in VM
MrKitsune
MrKitsuneOPβ€’5w ago
Thanks for the reply, I'm away for a week at the moment, but I'll get that to you asap when I'm back. Cheers!

Did you find this page helpful?