imagegenius / docker-immich

Monolithic (Single) Docker Container for Immich
GNU General Public License v3.0
618 stars 28 forks source link

Do not use existed SMB share directory as the directory to store in immich `-v /photos` on Unraid #435

Open yzhEric opened 2 months ago

yzhEric commented 2 months ago

if you use existed SMB share directory as the directory to store in immich -v /photos on Unraid, you can't remove image from disk, though the image was deleted on immich app/web. Log:

WARN [Microservices:StorageService] Unable to remove file from disk
WARN [Microservices:StorageService] Error: EACCES: permission denied, unlink '/photos/upload/path_to_image.png'
martabal commented 2 months ago

This has been discussed multiple times, you need to give the correct permissions to the folder mapped to /photos (on unraid it's by default nobody:users) or map the container's internal user to a user on the host machine with PUID and PGID which has access to /photos