I
Immich10mo ago
brain

How Do I use a USB External Hard Drive for UPLOAD_LOCATION

I want to use my external hard drive connected via USB as the UPLOAD-LOCATION for my immich app. I'm using the latest release of immich on docker desktop for Windows 10. I've purged the project several time, making sure to delete everything related to the project. Most recent attempt I've kept everything as defaults excpet changing the UPLOAD_LOCATION in the .env file:
# .env
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION="D:\immich\library"
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# .env
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION="D:\immich\library"
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
I know that the docker knows where the D: drive is now because I added D:\immich\library without creating the library directory before launch and docker created that directory for me. When uploading via the webapp, the image was not put into that directory and it still sits empty. I'm using an 8TB usb hard drive and the immich web app says the storage is only 1,006.9GiB I have no idea where this photo gets uploaded to my computer because even searching for it returns no results. The only place I can see data for that image is on Docker Desktop app in the immich_server files under `src/app/upload/upload/81c3d...e78/96/6f/imagefile.png
26 Replies
Immich
Immich10mo ago
:wave: Hey @brain, 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. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: I have read applicable release notes. 3. :ballot_box_with_check: I have reviewed the FAQs for known issues. 4. :ballot_box_with_check: I have reviewed Github for known issues. 5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command. 7. :ballot_box_with_check: 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.
Immich
Immich10mo ago
@brain uploaded
Immich
Immich10mo ago
@brain uploaded
Immich
Immich10mo ago
@brain uploaded
Immich
Immich10mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Zeus
Zeus10mo ago
Please open powershell and type Get-ChildItem D:\immich -File -Recurse
brain
brainOP10mo ago
I did that and it returned nothing and still doesnt show anything in the folder
Zeus
Zeus10mo ago
can you please post a screenshot? Let's try this: Get-ChildItem D:\ -Recurse
brain
brainOP10mo ago
No description
brain
brainOP10mo ago
That one did a lot more
Zeus
Zeus10mo ago
but I assume you have other files on D: non Imimch How did you install Docker? WSL, or Docker Desktop ?
brain
brainOP10mo ago
I do but not a lot and I got Docker via Docker Desktop
Zeus
Zeus10mo ago
Stack Overflow
Cannot mount volume for drive d:\ or e:\ in Docker Desktop for Windows
Searched the internet and Stackoverflow for this but had no success Using Docker for Desktop version 4.12.0 on Windows 10 with WSL2 as the backend. In the Windows command prompt window, the following
Zeus
Zeus10mo ago
This might be related Either way this is definitely a Docker dekstop related issue, maybe someone here who uses it can chime in later. We recommend linux/docker compose as Docker on other OS is not a great experience
brain
brainOP10mo ago
That makes a lot of sense, its certainly because of the other files on that drive Thanks for all the help I really appreciate it
Zeus
Zeus10mo ago
you said Immich made the folder this time.. then you uploaded images? and when you go to cd D:\immich, what do you see ?
brain
brainOP10mo ago
Yea when I did it the last time I just tried adding \librabry to the end of D:\immich and it created that folder for me but wont upload there
Zeus
Zeus10mo ago
can you describe what you tried? when you say "won't upload" does the web UI work? how many pictures did you upload?
brain
brainOP10mo ago
Just 1 picture upload on the web and it uploads but only to the docker /src/
Zeus
Zeus10mo ago
can you download the picture from the web? can you run docker inspect immich_server and post it here?
brain
brainOP10mo ago
No description
brain
brainOP10mo ago
Can't tell you if I can download from the web becasue I shut down the server to try mounting just the full D: drive I'm getting new errors
brain
brainOP10mo ago
No description
brain
brainOP10mo ago
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION="D"
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION="D"
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
Zeus
Zeus10mo ago
Docker Community Forums
Docker Data Volumes and Windows mounts
Hello – I have browsed the forums here, lots of google searches, the git-hub documents and anywhere else I have been pointed. The question I cannot seem to get a firm answer for is the following Does docker volumes for Windows only mount volumes on C:\ ? Or can I create standard windows mounts for a secondary drive letter, like say an E:\ Or ...
brain
brainOP10mo ago
I'll have to look at that tomorrow, thanks again Great news, I got the usb external hard drive mounted; only thing I needed to update from the default settings was UPLOAD_LOCATION=D:\ I can see the 8TB available on my immich web app and when uploading it uploads right to D:\upload That post you sent from stackoverflow was correct docker only allows the full drive to be mounted not subfolders in the drive @Zeus

Did you find this page helpful?