I
Immich•4mo ago
MrMxyzptlk

External Mount - Windows UNC / Mapped drive

Struggling to mount a external drive in Immich from the compose file. - "Z:/Anthony/Photo/Personal:/mnt/media/personal:ro I've also tried with the UNC path //192.168.50.219/d/Photo/Personal and I tried with backslashes; no dice.
18 Replies
Immich
Immich•4mo ago
:wave: Hey @MrMxyzptlk, 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
Immich
Immich•4mo ago
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.
GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
MrMxyzptlk
MrMxyzptlkOP•4mo ago
volumes:
photo:
driver: "local"
driver_opts:
type: "cifs"
o: "username=****,password=*****"
device: //192.168.50.219/d

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- photo:/usr/src/app/external:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
volumes:
photo:
driver: "local"
driver_opts:
type: "cifs"
o: "username=****,password=*****"
device: //192.168.50.219/d

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- photo:/usr/src/app/external:ro
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
Mraedis
Mraedis•4mo ago
Is CIFS the only option? No NFS? I think you might need to specify a uid,gid and read or read/write mode when using CIFS Note that this has nothing to do with immich by itself so you can try and find any docker guide on this 🙂
MrMxyzptlk
MrMxyzptlkOP•4mo ago
I have already done all of this. I have probably tried at least 10 different ways of mounting this in WSL2 / Immich etc... I never get any errors, but I also never can access this mount in Immich; I can in WSL2. So far Immich doesn't appear to be Windows friendly at all, as most people kind of brush me off when I want to use a UNC path. My AI workstation access ALL data on a different windows server. I'm wanting to test this against PhotoPrism which on the same workstation allows me to click and add ANY shares on my network...I don't want to give up on trying Immich however.
Zeus
Zeus•4mo ago
Docker isn’t windows friendly. It’s not really related to immich at all
MrMxyzptlk
MrMxyzptlkOP•4mo ago
I get that completely; however I would LOVE to try Immich, but the general reply from everyone is Docker isn't Windows friendly. I Docker running close to 30 containers on 3 different servers, and they can ALL access UNC paths just fine??? From within the containers without having to do anything in WSL2 Thank you for your reply. FYI: After 2 days I went to the PhotoPrism website and they had the proper setup for this. I works perfectly fine for me from Docker / Windows. '''services: photoprism: # ... volumes: # Map named volume "originals" # to "/photoprism/originals": - "originals:/photoprism/originals"
mariadb: # ... Specify named volumes: volumes: originals: driver_opts: type: cifs o: "iocharset=utf8,username=user,password=secret,rw" device: "//host/folder"''' I of course changed the appropriate settings. Is there a place I can post this so future users don't pull their hair out?
Zeus
Zeus•4mo ago
Can you please test to see what it is about yours that makes it not work? I only see rw, iocharset, and driver local. Those should all work without
Zeus
Zeus•4mo ago
Docker Documentation
Volumes
Learn how to create, manage, and use volumes instead of bind mounts for persisting data generated and used by Docker.
MrMxyzptlk
MrMxyzptlkOP•4mo ago
I figured it out on the PhotoPrism support page. Where can I post this for future use, so others don't pull their hair out? This is all I had to do; of course I changed what was different for me.
services:
photoprism:
# ...
volumes:
# Map named volume "originals"
# to "/photoprism/originals":
- "originals:/photoprism/originals"
mariadb:
# ...

# Specify named volumes:
volumes:
originals:
driver_opts:
type: cifs
o: "iocharset=utf8,username=user,password=secret,rw"
device: "//host/folder
services:
photoprism:
# ...
volumes:
# Map named volume "originals"
# to "/photoprism/originals":
- "originals:/photoprism/originals"
mariadb:
# ...

# Specify named volumes:
volumes:
originals:
driver_opts:
type: cifs
o: "iocharset=utf8,username=user,password=secret,rw"
device: "//host/folder
Zeus
Zeus•4mo ago
If you want to post this, which I agree with, we need to test it and pare it down the bare minimum. That’s why I asked. I’m mostly curious what it was about your config that made it not work Is the driver:local line?
MrMxyzptlk
MrMxyzptlkOP•4mo ago
I had to remove 'local' and change the option (o) line.
name: immich

volumes:
originals:
driver_opts:
type: cifs
o: "iocharset=utf8,username=redacted,password=redacted,ro"
device: "//192.168.50.219/d"
model-cache:
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- "originals:/usr/src/app/originals"
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
name: immich

volumes:
originals:
driver_opts:
type: cifs
o: "iocharset=utf8,username=redacted,password=redacted,ro"
device: "//192.168.50.219/d"
model-cache:
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- "originals:/usr/src/app/originals"
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
Subtle differnce from all the others that I tried; like I said PP had this on their support page.
Zeus
Zeus•4mo ago
Did you test each individually? My guess is the o line was fine and it’s the driver If you want to write a PR to add it to the docs that would be good Maybe a FAQ entry “How can I mount a CIFS/Samba volume within Docker?” In theory it should work on all platforms
MrMxyzptlk
MrMxyzptlkOP•4mo ago
OK, I'll see how to do that. Never done 1 before.
Zeus
Zeus•4mo ago
You can fork the repo and make a PR on the web site , let us know if issues If you can’t, write up the entry in MarkDown and I can make the PR myself
MrMxyzptlk
MrMxyzptlkOP•4mo ago
Thanks.
MrMxyzptlk
MrMxyzptlkOP•4mo ago
This should go under the 'Assets' section of the FAQ. This is my first attempt at Markdown, so let me know if this is useful at all.
Zeus
Zeus•4mo ago
ty

Did you find this page helpful?