external library help.

enclosed are my .yml and .env files. Looking to add external libraries on a synology NAS. I have added entries under volume for the server and microservices. used administration path to /volume2 (which is where my temp folder is on the nas) and in library, added a path to /volume2/temp. In the temp folder are some test photos.
39 Replies
Immich
Immich16mo ago
:wave: Hey @delirious4463, 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 - Container Logs: docker compose logs docs - Container Status: docker compose ps docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy Checklist 1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: I have read applicable release notes. 3. :blue_square: I have reviewed the FAQs for known issues. 4. :blue_square: I have reviewed Github for known issues. 5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command. 7. :blue_square: 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.
schuhbacca
schuhbacca16mo ago
First off, your env file has two external paths in it, which is the correct one
delirious4463
delirious4463OP16mo ago
the first one. I was trying to add a second path to another shared file I'm sorry. the one that says icloud is the directory I was working before and the second it temp. the one I want to add I was assuming I could add another external path and thank you for the help. Im new to this and learning
schuhbacca
schuhbacca16mo ago
Okay, should remove the incorrect one then, you don't want to variables with the same name in the file. May caues issues. Okay, in that case you have two real file systems one called Temp and the other is Icloud. I would rename them in the env file to EXTERNAL_PATH_TEMP and EXTERNAL_PATH_ICLOUD In your compose file you will then have ${EXTERNAL_PATH_TEMP}:/usr/src/app/external/external_temp and ${EXTERNAL_PATH_ICLOUD}:/usr/src/app/external/external_icloud Then in the admin section you can mount the full path as /usr/src/app/external And then for each library you want added you can just do /usr/src/app/external/external_temp for the temp library and /usr/src/app/external/external_icloud for icloud library The basic goal is to moun the two "real" file system folders to a directory in the container with a same root folder. That is why above the path in the container is the samefor both /usr/src/app/external
delirious4463
delirious4463OP16mo ago
ok, I'll try that in the env vile, is that all caps or is it case sensitive?
schuhbacca
schuhbacca16mo ago
Doesn't matter, just a standard people like to use
delirious4463
delirious4463OP16mo ago
added all the things you requested. Did a forced scan and no movement in jobs. Those files look ok?
delirious4463
delirious4463OP16mo ago
delirious4463
delirious4463OP16mo ago
would be easier to work with one external directory and setup paths to different files. I can do that, but that would mean moving massive amount of pictures to one shared folder. would take time. I have seperated my icloud photos directory from my general photos that I take with my SLR camera. still there?
Alex Tran
Alex Tran16mo ago
You will set the User's external path as /usr/src/app/external Then you can create 2 external library with the following apth /usr/src/app/external/external_Temp and /usr/src/app/external/external_icloud
delirious4463
delirious4463OP16mo ago
you mean in the administration path?
Alex Tran
Alex Tran16mo ago
I don't see any thing you specify for these two variables though
No description
Alex Tran
Alex Tran16mo ago
Correct
delirious4463
delirious4463OP16mo ago
what should those two paths look like? I did set the adminstation path to what you said
Alex Tran
Alex Tran16mo ago
So in Docker's volume the left handside is the actual path on your file system, while the right hand side is the path in the container so can you show me which path on your file system you are planning to use for the external library?
delirious4463
delirious4463OP16mo ago
/volume1/icloud and /volume2/temp is how my shared folders are setup on the NAS
Alex Tran
Alex Tran16mo ago
and you want both of them to be displayed in Immich?
delirious4463
delirious4463OP16mo ago
I have only edited the .env file and the .yml I have not set paths in the docker yes, both
Alex Tran
Alex Tran16mo ago
So you will have to somehow consolidate those two folder into 1 path,
delirious4463
delirious4463OP16mo ago
one is my icloud conversion to immich. I am working on gettting away from icloud and the other is my SLR photos
Alex Tran
Alex Tran16mo ago
for example, /volume1/icloud and /volume1/temp
delirious4463
delirious4463OP16mo ago
So all my photos need to be in one main location..ie Volume1? and then have immich point to each subfolder?
Alex Tran
Alex Tran16mo ago
That is correct
delirious4463
delirious4463OP16mo ago
if it's my understanding, you cannot have two different external paths. correct?
Alex Tran
Alex Tran16mo ago
You can, just not for one user might be something we can do in the future
delirious4463
delirious4463OP16mo ago
Gotcha. If I create another use, I can have one user for icloud and another user for all my other photos?
Alex Tran
Alex Tran16mo ago
right now each user can only be assigned with one external path that works
delirious4463
delirious4463OP16mo ago
ok. I think I can fix it from here
Alex Tran
Alex Tran16mo ago
Then you can mount something like this in the docker compose file /volume1/icloud:/mnt/icloud Then for the icloud user, you specified /mnt/icloud in the admin's user panel and also for the path of the library it will scan
delirious4463
delirious4463OP16mo ago
ok. good. schubacca let me to believe two external paths could be setup in the .yml file and .env file. Not pointing fingers, but this is incorrect, yes?
Alex Tran
Alex Tran16mo ago
No, what he said is correct, You can specify as many external paths as you want, but only one path can be assigned to a user
delirious4463
delirious4463OP16mo ago
ok. Makes sense. thanks Alex for your time. sorry for the email. I'll work on this
Alex Tran
Alex Tran16mo ago
No worry
schuhbacca
schuhbacca16mo ago
Sorry if I was not clear.
detective_iwai
detective_iwai16mo ago
Hey Alex, what should these be pointing to?
meez
meez15mo ago
@delirious4463 did you get it to work? I have a similar setup but immich cannot see the pictures in my NAS
delirious4463
delirious4463OP15mo ago
yes, I did get it to work. on the synology nas, which is my case here, I pointed the external link to my shared directory and any subfolder in that directory. But I could not add a different shared folder. According to what Alex said, you have to log in as a different user and set that up to access the other shared folder. In my case, I wanted to access my main library of photos and another shared folder with my iphone back up and could not do this with just one user
meez
meez15mo ago
Ok. My issue is more with the sharing of the NAS drive it self. I mount the NAS drive via the NFS command using WSL. Then I bind this mount point with docker. The problem is that the pictures inside the folder in the NAS don't show up when I look for them via immich_server terminal at the bound location. Maybe it's a permission issue. Did you face anything like this? Or did you make any special changes to give docker the permission to have access to the pictures?
delirious4463
delirious4463OP15mo ago
I followed this guide for shared folders. I did not do an NFS share. https://immich.app/docs/guides/external-library

Did you find this page helpful?