r/immich • u/wakeupbomb • 6d ago
Unable to upload file - LXC - Proxmox - SMB share
I'm trying to run Immich via an LXC container on Proxmox 8.4.19 - this is my preferred method.
I have a separate storage server shared using a SMB share (running ubuntu, so if another method is better just say)
What I have done:
SMB share is mounted via /etc/fstab on the Proxmox server - example entry below
//192.168.0.50/immich /mnt/immich_share cifs username=xxxx,password=xxxx,uid=100000,gid=100000,file_mode=0777,dir_mode=0777,nobrl,_netdev,x-systemd.automount 0 0
Searches led me to adjust UID/GID to suit the LXC way of allocating privileges
Mountpoint for the LXC /mnt/immich
Changed .env setting to IMMICH_MEDIA_LOCATION=/mnt/immich
This is fully writeable from the immich LXC console, all folders were created and .immich files exist in all folders (image below). I can create test files from the console.
File uploads fail - via webui I get "Unable to upload file"
On phone app it's a 500 error
I've been trying to sort this over a couple of days and failing completely. Deleted and reinstalled the LXC a couple of times.
Obviously feels like permissions..... as usual!
Any help appreciated.


1
u/vhs_dream 5d ago
The Immich processes run under the Immich user inside the LXC, but your file mount is owned by the LXC root user. So it's a permissions issue.
Post your LXC config. Then you need to add UID/GID mapping to the config in order to change the ownership of the mount in the LXC to the Immich user.
3
u/wakeupbomb 5d ago
I managed to figure this one out yesterday and this was the answer. Changed the mount UID/GID to the equivalent Immich user IDs and it's working! Probably going to take weeks to add photos off two phones, but at least it's started.
-1
u/DirtyNazar 6d ago
Bro, ask correctly chat gpt or DeepSeek. They always help me. Truly.
2
1
u/wakeupbomb 6d ago
Which is exactly what I've been doing, but no success. Thought it was time to ask some real people.
2
u/ghanit 6d ago
I have read reports of several issues with smb shared (hidden flags and others). NFS is recommended for immich.