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
: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.First off, your env file has two external paths in it, which is the correct one
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
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
ok, I'll try that
in the env vile, is that all caps or is it case sensitive?
Doesn't matter, just a standard people like to use
added all the things you requested. Did a forced scan and no movement in jobs. Those files look ok?
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?
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
you mean in the administration path?
I don't see any thing you specify for these two variables though

Correct
what should those two paths look like? I did set the adminstation path to what you said
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?
/volume1/icloud and /volume2/temp is how my shared folders are setup on the NAS
and you want both of them to be displayed in Immich?
I have only edited the .env file and the .yml I have not set paths in the docker
yes, both
So you will have to somehow consolidate those two folder into 1 path,
one is my icloud conversion to immich. I am working on gettting away from icloud and the other is my SLR photos
for example,
/volume1/icloud
and /volume1/temp
So all my photos need to be in one main location..ie Volume1? and then have immich point to each subfolder?
That is correct
if it's my understanding, you cannot have two different external paths. correct?
You can, just not for one user
might be something we can do in the future
Gotcha. If I create another use, I can have one user for icloud and another user for all my other photos?
right now each user can only be assigned with one external path
that works
ok. I think I can fix it from here
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 scanok. 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?
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
ok. Makes sense. thanks Alex for your time. sorry for the email. I'll work on this
No worry
Sorry if I was not clear.
Hey Alex, what should these be pointing to?
@delirious4463 did you get it to work? I have a similar setup but immich cannot see the pictures in my NAS
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
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?
I followed this guide for shared folders. I did not do an NFS share. https://immich.app/docs/guides/external-library