Upload path change with asustor portainer app store install
Help to change upload path..for some reason the asustor immich app install, you cannot change the upload path.. the app gets installed with portainer, so even though the documents state how to change in the traditional sense, using this method of install it seems I cannot find the way to change the upload path.
96 Replies
:wave: Hey @Peter,
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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.do you have any kind of terminal or any way to inspect the container? maybe that'll bring some light if they are using an env variable or something hardcoded.
I find weird the app it's distributed as an apk https://www.asustor.com/es/app_central/app_detail?id=1733&type=&model=
ASUSTOR
ASUSTOR NAS - Immich
Immich is a high performance self-hosted photo and video management solution. Easily back up, organize, and manage your photos on your own server. Immich helps you browse, search and organize your photos and videos with ease, without sacrificing your privacy.
Note:
1. The app takes times to initialize after installation, please wait a moment.
2...
since portainer is supported, maybe it's better to install the standard version using portainer instead of the asustor one
Hi @NoMachine yes that is the app which is found in the asustor app store. it is weird that it is an apk?
i will take some screenshots now for you
i dont know exactly how to program the portainer version--



i find this, but i cannot edit it


looks like you cannot edit it. if you don't have much on your library your best bet is do a manual install using portainer, so you have control over all the configuration
https://immich.app/docs/install/portainer
yes i see that, i have tried to do it manually hoever for some reason i dont know how to do it properly. if i get stuck could you please assist?
so i try to do, but it says, unable to stack

you may have more luck asking on an asustor forum
yea ok. appreciate that 🙂
Is Immich available on some kind of internal app store @Peter ?
And could you tell me your issue with using
/share/Docker/lmmich/data
?hello, yes the app is located in asustor. since this, i have decided to delete and start from scratch , trying to install in portainer directly. its proven to be difficult for me 😅 . so far ive managed to install immich, with the help of bigbear youtube, however im still stuck
after installed it myself via portainer, i am having difficulty find out my nas folder structure to point to. i always get errors.

reaching for help, what would you need from me to understand how to fix this?
Well you need to first mount the volume/folder to the container through your compose, then yuo can import it in the GUI
how to do that
Under the line with
${UPLOAD_LOCATION}:/usr/src/app/upload
add, for instance, /path/to/your/folder:/mnt/foldername
Then mount /mnt/foldername
in the GUI
https://immich.app/docs/guides/external-library/somewhere here?


i just dont know my path file strucutre in this nas.


Can you open a shell on the nas?
maybe, i dont know how
Well I don't either :p
lol
"Shell In A Box" on the app store
Or enable terminal in the settings to remote SSH https://www.asustor.com/en/online/online_help?id=24
ok i anabled, i am on a mac, do i go to terminal
Do you know how to ssh at all? 👀
bahaha im a novice
Just to be clear, you're doing pretty advanced things and this might not be a good idea if you don't know what you're doing
i can tell. i didnt want to go down this rabbit hole, however i was not satisfied with the regular photo app in the nas. immich seems so much better
its frustrating that its so complex howwever =/
It's not, actually, it's your asustor making things hard 😄
hahaha
i came from synology, so much easier
So Terminal ->
ssh usernameforAsustor@AsustorIP
see what that gives you
can you
which find
(Yes those are commands)hahaha i was going to say...
it says /usr/bin/find
Hurray we have find
whats that
It'll let you find the folder you want
ok
what folder do you want mounted? full name
like a photos folder
where the photos are stored
But surely your folder has a name
photos
Or did you not make it yet?
just photos very original
lol
Any filename already in this folder?
Something stupid like IMG2455.jpg is fine
Caps matters.
oh right thats what you mean
yes there are many of those
wait
IMG_20230805_174531.jpg
chose anything
Ok now in the terminal
find / -name IMG_20230805_174531.jpg
gees, it just had a dummy spit

Classic.
oh wait, its populating now somwhat
yes found something
/share/Photos/Peter/2023/08/08/IMG_20230805_174531.jpg
and also
/volume1/Photos/Peter/2023/08/08/IMG_20230805_174531.jpg
these are the 2 that stick out
Alright so could be that they are the same thing
ok, it looks like it
just differnet first part
does
ls -la /share/
and ls -la /volume1/
shed any light?
ONe might be a link to the otherwhen i do that the share shows all the folders, and the volume shows those folders and some .@filenames too
Going to guess that you'll need to use share
So
/share/Photos/Peter
or without the /Peter part if you want to mount everythingok
- /share/Photos/:/mnt/share/Photos/
like that?

You can name the right hand part whatever you want, it could be
/mnt/Blargenfloogles
as far as docker is concerned
Just make sure you don't conflict names with other folders
Whatever you put on the right is what you put in the GUIhuh...mind blown, does not sound logical at all.
so..
Why is that not logical
/share/Photos/:/mnt/whatever name i want
It's just a link, you choose the name of the link
ok, so lets say i put - /share/Photos/:/mnt/photos
is that enough?
you mean after /mnt/ "thisnameisatag" ?
you have been super helpful so far btw ty
i should also change the upload location to the same folder the same way?
You could change the upload folder the same way, yes, but you'll need to move the files or wipe the database

noooooooooo
sry, i dont understnad . there is no photos in the uploads folder
not like that
You don't ever change /usr/src/app/upload
oh man
ok UNDO
/share/Photos/Uploads:/usr/src/app/upload
-> Yes
BUT
Don't put /usr/src/app/upload inside an external library
so you can't both have
/share/Photos/Uploads:/usr/src/app/upload
and
/share/Photos:/mnt/photos
ok, im just follwoing you, i really dont know what im doing and what part of the code does what tbh. im trying to understand and learn, but i am just verbatim right now
so right now, i have this
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /share/Photos/:/mnt/photos
- /etc/localtime:/etc/localtime:ro
and then what do i do to change the upload location
${UPLOAD_LOCATION}
comes from the env file, you change it either through the env file, or in your case the dropdown list in the portainer GUI, or you sneakily change it right in the composei wish i could learn and understand this better, its defiantly a particular train of thought process
You don't ever change
/usr/src/app/upload
because that's the part the software will be looking for
left hand side from :
is path on the container host, right hand side is inside the containeri dont know the the compose
Yes you do lol
you're editing it right now
ooo, compose is the software code?
here then?

Yeah there you can change the upload location
ok, is that the right way to put it in?
In your terminal try:
find /share -type d -name postgres
ok
No, you've left a . at the front
. is linux for "current directory"
oh ok
i did that, and not found
meaning nothing comes up
mmmm
gotta go get my kids though :p
do i update the stack
ok then
bbl
ok