Geoffrey
Geoffrey
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
Going to drop this here for anyone else that stumbles into the same issue. The following worked for me, based on this comment from Reddit. https://www.reddit.com/r/portainer/comments/170vu05/comment/k3w0nzb/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
It is actually pretty easy:

Install NFS and connect the NAS to the OS (VM hosting docker):

sudo apt install nfs-common

sudo mkdir -p /mnt/somedir

sudo mount 192.168.1.xxx:/volume1/somedir /mnt/somedir

sudo nano /etc/fstab

192.168.1.xxx:/volume1/somedir /mnt/somedir nfs defaults 0 0

Now you can use /mnt/somedir in your docker containers (as volumes) and the data will be stored in your NAS.

Also remember to enable NFS in DSM and allow the IP of the OS.
It is actually pretty easy:

Install NFS and connect the NAS to the OS (VM hosting docker):

sudo apt install nfs-common

sudo mkdir -p /mnt/somedir

sudo mount 192.168.1.xxx:/volume1/somedir /mnt/somedir

sudo nano /etc/fstab

192.168.1.xxx:/volume1/somedir /mnt/somedir nfs defaults 0 0

Now you can use /mnt/somedir in your docker containers (as volumes) and the data will be stored in your NAS.

Also remember to enable NFS in DSM and allow the IP of the OS.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
The solution I am going to try is mounting the NFS directly to the Ubuntu server host within the /mnt/ folder, and then directing the Immich Stack to that instead.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
Confirmed the issue is Portainer Stacks don't allow for Volumes to be mounteded. Only through containers.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
Ya, I'm going to look at how to reference portainer volumes. That could very well be it.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
Well, thats encouraging that I'm not goofing up completely.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
hmm mmk. I guess, aside from the Volume issue, it sounds like I'm putting it into the Immich .env right :/
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
No description
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
I've mounted the NFS into portainer though, should that not do the same? The point was that I don't want to give my proxmox instance access to the NFS, only Immich.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
Haven't gotten a response. Hoping someone can help me out
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
UPLOAD_LOCATION=/var/snap/docker/common/var-lib-docker/volumes/immich/_data
DB_DATA_LOCATION=./postgres
IMMICH_VERSION=release
DB_PASSWORD=immichportainer
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
UPLOAD_LOCATION=/var/snap/docker/common/var-lib-docker/volumes/immich/_data
DB_DATA_LOCATION=./postgres
IMMICH_VERSION=release
DB_PASSWORD=immichportainer
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
.env
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
yml file.
24 replies
IImmich
Created by Geoffrey on 1/17/2025 in #help-desk-support
Can't get my Upload Library to the right NFS share
24 replies
IImmich
Created by Geoffrey on 12/14/2024 in #help-desk-support
External Libraries Error for Invalid Volume Specification.
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /mnt/immich/library/3-SocialMedia:ro
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /mnt/immich/library/3-SocialMedia:ro
From my copy above. I followed the example under Mount Docker Volumes, added the ro flag at the end to make sure its read only. But now when I docker compose upI get the error message. I can't even get to the next step.
10 replies
IImmich
Created by Geoffrey on 12/14/2024 in #help-desk-support
External Libraries Error for Invalid Volume Specification.
Ya, thats literally the doc I was following. I'm missing something but I don't understand what it is.
10 replies
IImmich
Created by Geoffrey on 12/14/2024 in #help-desk-support
External Libraries Error for Invalid Volume Specification.
As far as I can tell I am using an absolute path.I'm not sure where the extra :rw is coming from in the error message either.
10 replies