I
Immich•2y ago
helloworld

External Library created without Error, but Scan doesn't find any assets

I followed through on the documentation to create external Libraries. Using the docker container console of immich-server and immich-microservices I see the folder and subfolder I would like to. However no matter which scan I start, I don't recognize any progress whatsoever. 0 Assets are listed in the Libraries Overview... I removed the exclusion pattern /RAF/. So nothing should get excluded... Here is my docker-compose.yml, env cannot be posted discord says do long.... Server version 1.79.1
73 Replies
Alex Tran
Alex Tran•2y ago
You can post them in pastebin and post the link here And also the path settings in the wpp
helloworld
helloworldOP•2y ago
Pastebin
version: "3.9"services: immich-redis: image: redis container...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
helloworld
helloworldOP•2y ago
Pastebin
NODE_ENV=productionTZ=Europe/BerlinTYPESENSE_API_KEY=hHBc3ADffw6Ugn...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
No description
Alex Tran
Alex Tran•2y ago
- "/volume1/LR RAW:/mnt/media/lrraw:ro" try rename the folder to not have white space so - /volume1/LR_RAW:/mnt/media/lrraw:ro
helloworld
helloworldOP•2y ago
within the container calling /mnt/media/lrraw all pictures are listed
Alex Tran
Alex Tran•2y ago
When you click on scan library files, do you see anything in the server/microservices logs?
helloworld
helloworldOP•2y ago
i just removed the space and adopted the yml, I will try as soon as the containers are up again. Is there a seperate logfile or just the container log? So the info pop up comes, that the library gets scanned, but nothing indicates, that it does:
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
btw:
No description
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
So laso with space free Path the container sees the directory I also tried the different modes for scanning, no difference I just sett up the full App from scratch, but it also doesnt work then....
chixiang
chixiang•2y ago
I have the same problem...
andreessenhorowitz
andreessenhorowitz•2y ago
do you also have RAW photo files in your external library? just trying to understand if this new feature does not work at all or just have issues with RAW formats
chixiang
chixiang•2y ago
Yes, there are RAW files and JPEG files, but I can't find any of them.
helloworld
helloworldOP•2y ago
Yes same here diffrent RAW formats loooooots of jpegs and videos...
Alex Tran
Alex Tran•2y ago
@etnoy any thoughts? 🤔
etnoy
etnoy•2y ago
Do you have the option to enable debug logging? There will be more info in the logs then
helloworld
helloworldOP•2y ago
[Nest] 7 - 09/23/2023, 4:13:34 AM DEBUG [LibraryService] Found 0 assets when crawling import paths /mnt/media/lrraw This is the only additional log message. This is from Microservice Is there a level limit for the folder structure?
chixiang
chixiang•2y ago
@helloworld Are your photos stored on a NAS or on the internal hard drive? I just found that mounting the internal hard drive is not an issue. All the photos in my external library are stored on a NAS, connected locally using the AFP protocol. What's strange is that my upload library is also on the NAS, mounted in the same way, but there are no issues at all.
etnoy
etnoy•2y ago
Strange No spaces before or after the path?
helloworld
helloworldOP•2y ago
@chixiang yes my photos are on a NAS. The same as the docker System is running on... @etnoy no there are no spaces in the path values. And as I said, in the console of the docker container I see the files...
dynomutt0
dynomutt0•2y ago
Glad I found this, I'm having the same issue. Import path is in the same folder structure as the External Path, click on add library, add the path I want, scan library. Get the notification at the top and then... nothing. No sign that immich is doing anything. Nothing in the micro services log either. The upload directory is in the same folder structure. So '/photos/User-photos'. Uploads are going into Year/Month folders below that as intended. Existing file structure for import in amongst that, so '/photos/User-photos/trip to mountains'. Previously I would use the cli-import but that appears to be broken - noticed that was being looked into. Also tried this with folders that don't have white space in them. Same issue.
Alex Tran
Alex Tran•2y ago
can you post your docker-compose file? We will try to look for what you guys have in common to get this bug Do you have special user permission set or anything like that?
dynomutt0
dynomutt0•2y ago
dynomutt0
dynomutt0•2y ago
Done, hope that helps!
Alex Tran
Alex Tran•2y ago
your USER1_LIBRARY_LOCATION is different from user1_LIBRARY_LOCATION in microservices container
dynomutt0
dynomutt0•2y ago
Sorry thats just where I obscured usernames. they are the same in reality
Alex Tran
Alex Tran•2y ago
okay I saw that the value has white space for the path USER1_LIBRARY_LOCATION=E:\photos\User1 Photos I assume you have actual white space?
dynomutt0
dynomutt0•2y ago
yep, it didn't seem to find it an issue with uploads and the cli import.
Alex Tran
Alex Tran•2y ago
Just for the sake of consistency and avoid weirdness from Windows's path, can you try to not having the white space in those paths?
dynomutt0
dynomutt0•2y ago
Yep can try, I'll have to do it when I get home from work. Also want to back up the DB before I do that.
Alex Tran
Alex Tran•2y ago
Sounds good, let me know how it goes
chixiang
chixiang•2y ago
I believe I've identified the issue. When I switched from the AFP protocol to the Samba protocol, the photos in the external library became recognizable. I switched back and forth a few times, and I can confirm that. @helloworld What protocol did you use to map the NAS drive to the local?
helloworld
helloworldOP•2y ago
@chixiang how do I find out? I run docker on the NAS (Synology) and just mapped the path, how do I see what protocol Docker user to mount the drive?
chixiang
chixiang•2y ago
@helloworld Are you running Immich on the NAS? We might be different. I'm running Immich on my MacBook. And then map the NAS drive to the macbook.
helloworld
helloworldOP•2y ago
I am running immich on the NAS. itself.
dynomutt0
dynomutt0•2y ago
So I did a backup. I actually just added a brand new user for one of my kids. Set up folder structure similar to ours but 'User3_Photos'. No whitespace. Maps to '/photos/User3-Photos' in docker container. Updated commpose and .env files to add it in. Restarted container and checked bind mounts, its there. Uploaded a few photos taken with an old phone, works fine. Copied a folder of photos over from my directory to this new directory, so under User3_Photos, changed whitespaces for underscores. It became 'Artemis_at_friends_house'. Added as external library. No joy. Just the notification that is scanning but no evidence its actually doing anything. Logs are quiet. Just typesense talking to itself. External library reads as 0b.
Alex Tran
Alex Tran•2y ago
Did you add /photo/user3-photos under external path in user panel in the administration page?
dynomutt0
dynomutt0•2y ago
yep
Alex Tran
Alex Tran•2y ago
and also /photo/user3-photos as import path in user3's user settings?
dynomutt0
dynomutt0•2y ago
In the external library?
Alex Tran
Alex Tran•2y ago
In here
No description
dynomutt0
dynomutt0•2y ago
Ah! Yes. But the actual folder. /photos/User3-Photos/Artemis_at_friends_house
etnoy
etnoy•2y ago
Can you set log level to debug and restart?
Alex Tran
Alex Tran•2y ago
Can you try put /photos/User3-Photos instead?
dynomutt0
dynomutt0•2y ago
Same result I'm afraid. Just restarting with logging set to debug and I'll try again. 2023-09-25 20:08:13 [Nest] 7 - 09/25/2023, 7:08:13 PM DEBUG [LibraryService] Found 0 assets when crawling import paths photos/User3-Photos 2023-09-25 20:08:13 [Nest] 7 - 09/25/2023, 7:08:13 PM DEBUG [LibraryService] 0 assets in library are not present on disk and will be marked offline Got it working for user3! Forgot the / in front of photos. Worked instantly. And got it working for user2. Its quite happy with whitespace in the folder names. Not sure what made that one start working...
etnoy
etnoy•2y ago
awesome! Yes, you need a / before the path to make it absolute
helloworld
helloworldOP•2y ago
Any chance my issue gets solved as well. Maybe some additional logging I should deploy?
Alex Tran
Alex Tran•2y ago
Do you mind posting the actual path without obscuring the information? We might be able to spot something there
helloworld
helloworldOP•2y ago
My post is not obscured. So the only difference is the logging level in the env, which meanwhile is on debugging This is my last information
Alex Tran
Alex Tran•2y ago
If you use the library path as /mnt/media does it work? I.e having the external and library path similar
Squirrel-IO
Squirrel-IO•2y ago
Have you tried using: -/volume1/lrraw:/mnt/media/lrraw:ro ? Keeping the last directories on both at the end the same. Don't forget to rename the actual folder though.
helloworld
helloworldOP•2y ago
[Nest] 7 - 09/29/2023, 7:51:05 AM DEBUG [LibraryService] 0 assets in library are not present on disk and will be marked offline [Nest] 7 - 09/29/2023, 7:51:05 AM DEBUG [LibraryService] Found 0 assets when crawling import paths /mnt/media/ [Nest] 7 - 09/29/2023, 8:00:52 AM DEBUG [LibraryService] 0 assets in library are not present on disk and will be marked offline [Nest] 7 - 09/29/2023, 8:00:52 AM DEBUG [LibraryService] Found 0 assets when crawling import paths /mnt/media/lrraw
etnoy
etnoy•2y ago
can you create a shell on your microservices container and check the contents of /mnt/media in there?
helloworld
helloworldOP•2y ago
I did so several times. Via the console of the container I can the files, checked Microservices and immich server container.
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
No description
helloworld
helloworldOP•2y ago
Just as an example
etnoy
etnoy•2y ago
And you see the same in the server container of course. Any exclusion patterns?
helloworld
helloworldOP•2y ago
Yes, both Container consoles show exactly the same. At the moment I have no Exclusion patterns. I deleted the complete stack once already and cleared all folders except the upload folders. Immich also doesn't find any of the previously uploaded pictures, only the new ones in the same location. But nothing at all from the external path
jrasm91
jrasm91•2y ago
Does it work if you make one of the file extensions lowercase? Can you show "ls -l"? Maybe it is a permission issue. This is very strange. Looking at the code it should be case insensitive for the extensions. Also I see you have some that are lowercase anyways. There is definitely a bug if the path doesn't end with a slash. The only other thing I could think of is a permission issue maybe the user running the operations can't see the files. Can you post group and user permissions for some files?
etnoy
etnoy•2y ago
yes, I agree it's strange and I have no idea why this would happen. Since you can see the files in the container, immich should at least be able to see them when crawling (since it runs as root)
jrasm91
jrasm91•2y ago
Except he is not running it as root. It looks like the compose is configured with different permissions.
jrasm91
jrasm91•2y ago
line 67
No description
etnoy
etnoy•2y ago
In that case, likely permissions
Squirrel-IO
Squirrel-IO•2y ago
I run it also on a Synology. I use the user id for some containers but not for Immich. He would need to remove it all: "user: 1027:100" Or make sure the user with id 1027 or group with 100 has read rights on the correct folders.
helloworld
helloworldOP•2y ago
Oh man, sorry, now it seems to be working... one question: if I add Exclusion patterns now, will they get filtered out, since the library job already started?
etnoy
etnoy•2y ago
I'd say clear the job queue, set pattern and then rescan

Did you find this page helpful?