© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•15mo ago•
44 replies
Maraxen

Using SMB share to save photos and DB

Hi guys, I'm trying to have my Immich instance to upload the photos and DB to SMB share. I'm using Proxmox and then running Immich on Debian VM. I'm also running TrueNAS Scale in another VM.

So I made a dataset and made a SMB share out of it. You can see the ACL in the uploaded screenshot.
Then I went and mounted the share using this command:
sudo mount -t cifs //192.168.2.15/immich /mnt/immich -o username=immich,password=mypassword
sudo mount -t cifs //192.168.2.15/immich /mnt/immich -o username=immich,password=mypassword

After that I edited the .env file
# 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=/mnt/immich/library
# The location where your database files are stored
DB_DATA_LOCATION=/mnt/immich/postrgres

# 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
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
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=/mnt/immich/library
# The location where your database files are stored
DB_DATA_LOCATION=/mnt/immich/postrgres

# 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
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich


When I run
docker compose up
docker compose up
I can see many errors one of them being:
chown: changing ownership of '/var/lib/postgresql/data': operation not permitted
chown: changing ownership of '/var/lib/postgresql/data': operation not permitted
image.png
image.png
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Deleting using SMB share
ImmichIImmich / help-desk-support
6mo ago
TrueNAS SMB share permissions issue.
ImmichIImmich / help-desk-support
13mo ago
Syncing of assets (photos/videos) and DB backups to a network share?
ImmichIImmich / help-desk-support
11mo ago
Unable to share photos to iOS app via share in Photos app
ImmichIImmich / help-desk-support
2mo ago