Upload location not being "honored"

hey all, I finally got Immich up and running. I think this is going to be really nice for the family photos. I am having one small problem though. The drive I am using to store my photos isn't being used, and when I upload photos, they show up as broken images. here is the compose:
UPLOAD_LOCATION: /usb_element/photos
REDIS_HOSTNAME: redis
REDIS_PASSWORD: 'XXXXXXXXXXXXXXXXXXXX'
TYPESENSE_API_KEY: XXXXXXXXXXXXXXXXXXXXXX
TYPESENSE_HOST: typesense
volumes:
- ${DOCKERCONFDIR}/immich:/data
- ${DOCKERSTORAGEDIR}:/storage
- /media/element:/usb_element
- /media/sssd_1:/sssd_1
UPLOAD_LOCATION: /usb_element/photos
REDIS_HOSTNAME: redis
REDIS_PASSWORD: 'XXXXXXXXXXXXXXXXXXXX'
TYPESENSE_API_KEY: XXXXXXXXXXXXXXXXXXXXXX
TYPESENSE_HOST: typesense
volumes:
- ${DOCKERCONFDIR}/immich:/data
- ${DOCKERSTORAGEDIR}:/storage
- /media/element:/usb_element
- /media/sssd_1:/sssd_1
and when I go into the container I can see the folder (screenshot) plus I can see the photos folder
root@1d13e0d7153b:/usb_element# ls -lah
total 4.0K
drwxrwxr-x 3 node node 20 Aug 14 19:40 .
drwxr-xr-x 1 root root 4.0K Aug 15 14:10 ..
drwxrwxr-x 2 node node 6 Aug 14 19:40 photos
root@1d13e0d7153b:/usb_element# ls -lah
total 4.0K
drwxrwxr-x 3 node node 20 Aug 14 19:40 .
drwxr-xr-x 1 root root 4.0K Aug 15 14:10 ..
drwxrwxr-x 2 node node 6 Aug 14 19:40 photos
Any thoughts as to what I am missing? when I try uploading a file i am honestly not sure where it is putting it, and when I login to the Immich interface, under storage it is only showing the 100GB of free space, not the 15TB drive I have
No description
10 Replies
Alex Tran
Alex Tran2y ago
No description
Alex Tran
Alex Tran2y ago
Are you using AIO image?
apperrault
apperraultOP2y ago
No, I am using a docker compose file, not the AIO
Alex Tran
Alex Tran2y ago
Can you post your full docker-compose file? the app look for the internal path at /usr/src/app/upload/
apperrault
apperraultOP2y ago
Pastebin
version: "3.4" # this must match the version in docker-compose.yml ...
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.
apperrault
apperraultOP2y ago
if it is looking for that path, how do I mount that path to my external drive?
Alex Tran
Alex Tran2y ago
in the original docker-compose file, you can see ${UPLOAD_LOCATION}:/usr/src/app/upload the UPLOAD_LOCATION is read from the .env file so you should keep the volumes section in your compose file and then it will work what is the reasion to modify all the servcies in the original compose file? We set it up so that it is plug-and-play system changing it might cause issue down the road and harder to troubleshoot issues if you run into any
apperrault
apperraultOP2y ago
OK, i will play with that. I am using a system called DockStarter, https://github.com/GhostWriters/DockSTARTer which helps manage all of my applications. the way to add new apps is to use the docker-compose.override.yml file
GitHub
GitHub - GhostWriters/DockSTARTer: DockSTARTer helps you get starte...
DockSTARTer helps you get started with running apps in Docker. - GitHub - GhostWriters/DockSTARTer: DockSTARTer helps you get started with running apps in Docker.
jrasm91
jrasm912y ago
UPLOAD_LOCATION is an environment variable that is only used for the compose file itself. It is not meant to be passed to the containers as a value. It dynamically generates the volume: ${UPLOAD_LOCATION}:/usr/src/app/upload. You don't have to use it, but you will need to add the volume to the containers yourself via /storage/element/photos:/usr/src/app/upload
apperrault
apperraultOP2y ago
ok, i will give this a shot that worked!!!

Did you find this page helpful?