Broken thumbnails and preview
I deployed immich in portainer in qnap container station. I am able to upload photos/vids and when I check the upload folder, everything is there. But when I go to view them from the website, preview is broken. When I hover the mouse over the video, it plays the video preview but when I click it, it shows a broken image. If I hit download, it downloads the file just fine. What seems to be wrong here?



27 Replies
please check the job panel, the jobs might still be running to generate the thumbnail for these files
No more jobs on queue but I re-ran the jobs, let them finish, rechecked and no change.

Both of those jobs now have nothing in them now right?
Like that isn't the most up to date screenshot?
yes, the jobs are done.

My guess is that something might have gone wrong with the mount in your container
So you might need to check if the UPLOAD_LOCATION can be accessed
@peekeesh how fast is the thumbnail generation? I have the situation that the thumbnail service returns timeouts, which also leads to no more queued jobs, but without any thumbnails produced. If the generation is really slow, you should check the logs for timeouts
It should be relatively quick
Are you on arm or something?
not sure if it's slow or fast but the job takes about 3-5 mins for 2k files. It's on a qnap NAS.
it uploads the files just fine so I'm not sure. But maybe you can tell what's wrong based on the screenshots?



That seems about right
Yes, it’s on a raspberry pi. With lots of patience and reduced concurrency it went through, but unfortunately the only error logs were the timeouts, none from the actual media service itself, so it’s hard to say what was wrong. I even stopped the ml container, so lots of ram and cpu free and idling.
If you run the missing thumbnails job and it finished and you still see missing thumbnails there should be some errors in the microservices logs.
oh there it is! I see the error.. I can probably edit the microservice and update the upload path but I'm not sure what path to enter..


Have you manually moved or adjusted the upload location while updating?
No. I haven't done anything to it yet.
Do you use upload location env in your stack anywhere?
You have it set as one thing in your environment variables section, and then show the mount being set to something else in that latest screenshot.
There are several areas where to set the upload location. I made sure they are the same but I still get the issue. I'll delete everything and will start over.
Should these 2 match?

What do you mean by "match"? what are you expecting to see?
The value you have for that env will be substitubed in the first place you've circled. It lets you more easily add the mount to several locations.
Thing is when I run the jobs to generate thumbnails etc, microservices log says it can't find the file/s. So I may have populated the upload location incorrectly when I deployed immich. But really i'm not sure what to put on the 2nd place I circled. I initially thought I should put the effective logical path in qnap (as shown on the attached screenshot) but that didn't work too.

By the way, I'm totally noob with this and trying to learn. I really appreciate both of you and for being patient.
Can you provide the screenshot of all the filled in value of your setup?
Please also follow guide this step by step, it should help https://immich.app/docs/install/portainer
Portainer | Immich
Install Immich using Portainer's Stack feature.
Yes, I followed the guide. I changed all the .env to stack.env on the docker-compose.yml and then I updated db_username, password and upload folder location on the example.env file. That's all I did

You can set it to whatever you want and that is where uploaded images will be saved to. But once you set it to something you shouldn't move it or change it otherwise those files won't be accessible anymore.
It works now!! Thanks @jrasm91 and @Alex