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?
No description
No description
No description
27 Replies
Alex Tran
Alex Tran2y ago
please check the job panel, the jobs might still be running to generate the thumbnail for these files
peekeesh
peekeeshOP2y ago
No more jobs on queue but I re-ran the jobs, let them finish, rechecked and no change.
No description
Covalent
Covalent2y ago
Both of those jobs now have nothing in them now right? Like that isn't the most up to date screenshot?
peekeesh
peekeeshOP2y ago
yes, the jobs are done.
No description
Alex Tran
Alex Tran2y ago
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
bjrne
bjrne2y ago
@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
Covalent
Covalent2y ago
It should be relatively quick Are you on arm or something?
peekeesh
peekeeshOP2y ago
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.
peekeesh
peekeeshOP2y ago
it uploads the files just fine so I'm not sure. But maybe you can tell what's wrong based on the screenshots?
No description
No description
No description
Covalent
Covalent2y ago
That seems about right
bjrne
bjrne2y ago
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.
jrasm91
jrasm912y ago
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.
peekeesh
peekeeshOP2y ago
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..
No description
No description
jrasm91
jrasm912y ago
Have you manually moved or adjusted the upload location while updating?
peekeesh
peekeeshOP2y ago
No. I haven't done anything to it yet.
jrasm91
jrasm912y ago
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.
peekeesh
peekeeshOP2y ago
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.
peekeesh
peekeeshOP2y ago
Should these 2 match?
No description
Alex Tran
Alex Tran2y ago
What do you mean by "match"? what are you expecting to see?
jrasm91
jrasm912y ago
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.
peekeesh
peekeeshOP2y ago
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.
No description
peekeesh
peekeeshOP2y ago
By the way, I'm totally noob with this and trying to learn. I really appreciate both of you and for being patient.
Alex Tran
Alex Tran2y ago
Can you provide the screenshot of all the filled in value of your setup?
Alex Tran
Alex Tran2y ago
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.
peekeesh
peekeeshOP2y ago
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
No description
jrasm91
jrasm912y ago
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.
peekeesh
peekeeshOP2y ago
It works now!! Thanks @jrasm91 and @Alex

Did you find this page helpful?