Grey default thumbnails/images after upload via web, files on disk seem corrupted?
I just deployed Immich through portainer and everything went very smoothly,
i set UPLOAD_LOCATION to a dir on my NAS and i can see folders and image files being created there correctly (so perms seem ok), i can't open the images from disk though and they don't seem to have correct headers, they display as the default grey icon in the web app too, any ideas?
(docker compose and env straight from repo)

17 Replies
Which log should it be looking at?
from microservices
i just tested uploading from the android app, same thing
Ok i narrowed it down some more UPLOAD_LOCATION = "./Library" works but "/mnt/cryp2" doesn't...
still no luck, i played with permissions and everything, moved immich to a different server, if i try to save to that certain path mounted on the docker host, images get corrupted (no JFIF header in the jpg), although for some reason it sometimes seems to work, like 1 out of 10 tries
it seems to work better with small files, bigger ones always fail, there is no nginx or any other proxy in between browser and immich web though
i also tried to use bind mounts, same problem.. i can save anything fine to the docker host's disk directly but if i specify a cifs mount or lxc mount point as UPLOAD_LOCATION, it won't work properly
I think that one specific file is having a problem to get its thumbnail generated
it's not only one though but basically all files
then it seems like the mount on your
UPLOAD_LOCATION
isn't mounted correctly on your systemif i set UPLOAD_LOCATION to a local dir on the docker host it works, but i'd like to point it to my NAS
it's just a simple mountpoint in an lxc container actually
yeah then it looks like permission on the mounted location from the NAS aren't set correctly 🤔
immich can create dirs and files just fine, idk
just the content of the files gets corrupted somehow
i'm basically using the same setup for lots of other containers like nextcloud etc, they all seem ok
Try nuke the instance and try again maybe?
it's a CIFS mount on a proxmox host, that mount gets passed through to a lxc container (portainer) all the way to immich
ill try that
can it be format as ext4?
it is ext4 yeah
actually no, it's btrfs, but through CIFS/SMB
maybe i should try NFS
yeah I remember some issue reported with user use btrfs
it's just so strange that uploading small images < 65kb work
looking at immich_proxy
for some reason all the file uploads cap out at 65kb too
🤔
correct png header
is this NFS mount or still the older mount?
still the old one
^ corrupt file, capped at 65kb with no valid png header