What should the pid/gid be to enable uploads to succeed?

My immich stack is running. I've created an admin user and a standard user. On my docker host I have mounted a folder to /media/Users. I have passed this folder in the .env file as follows:
UPLOAD_LOCATION=/media/Users
IMMICH_MEDIA_LOCATION=/media/Users
UPLOAD_LOCATION=/media/Users
IMMICH_MEDIA_LOCATION=/media/Users
For the standard user, under Settings | Account: EXTERNAL PATH = /media/Users/user-phone Under Settings | Libraries: TYPE = External NAME = user-phone PATH = /media/Users/user-phone If I upload a file, the immich_microservices throws an error in the log, which I've attached. If I move filed into the external library and trigger a rescan, no files are found. Is this because of a pid/gid issue? Or am I interpreting the use of the folders wrong, and I should be using /usr/src/app/upload for uploads?
2 Replies
jrasm91
jrasm912y ago
Why are you setting IMMICH_MEDIA_LOCATION? You know that just changes the internal path on the container? You most likely have a volume mapped incorrectly in your compose file now. If you look at the compose file UPLOAD_LOCATION is used to create a volume map that goes to /usr/src/app/upload, which is the default location for IMMICH_MEDIA_LOCATION. I think that is why stuff is not working. If you go in the container and browse to /media/Users you will probably see your files, so you just aren't using a volume for it atm.
Instant Dreams
Instant DreamsOP2y ago
Yup, you're right - I was using both UPLOAD_LOCATION and IMMICH_MEDIA_LOCATION incorrectly. I reviewed the Libraries documentation https://immich.app/docs/features/libraries and have set the locations correctly after mounting the folders to the containers

Did you find this page helpful?