I
Immich5d ago
Jgahbs

"Error loading image" on some partner photos

Hi, I am seeing some "Error loading image" errors for some of my partner photos, and she's seeing the same for some of my photos in the 23-24 May date range (around the time we updated to v133 with a bit of lag between devices). The "Error loading image" error appears on both the web and mobile apps. I have tried generating missing thumbnails in settings, but it does not find any. The logs I see on my (Android) mobile app show many errors of the following type: FlutterError - Catch all at (time) in ImmichErrorLogger: Instance of 'FlutterErrorDetails' Exception: HttpException: Invalid statusCode: 404, uri = https://(server name)/api/assets/(hex)/thumbnail?size=thumbnail Library: image resource service Context: Instance of 'ErrorDescription' I did not find any other examples of this precise error. Is there a clean way to fix this? A couple dozen photos are affected. More recent uploads (since these dates) are uploading fine.
23 Replies
Immich
Immich5d ago
:wave: Hey @Jgahbs, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Jgahbs
JgahbsOP5d ago
Details: Ubuntu Server LTS 24.04. Around this time, I deleted docker volumes (due to a problematic Nextcloud installation); I don't think Immich was affected - it was running, but I mention this in case.
Mraedis
Mraedis5d ago
try downloading the original, if that works the assets are present and you can regenerate the thumbs In the admin section, press "missing" on the generate thumbs job
Jgahbs
JgahbsOP4d ago
Thanks. Unfortunately, downloading the original does not fix. In fact, the downloaded images just show the missing image icon. I did try pressing missing on the generate thumbs job. It seems as though my partner's images did not fully upload but also won't sync. And mine didn't fully upload and won't sync on hers. Could it be because for a brief time, the server was on v133 and she was not? How would we fix? Thanks!
Jgahbs
JgahbsOP4d ago
This is what I see of my partner's images, on mobile and on web.
No description
Mraedis
Mraedis4d ago
try starting with 1 asset, just delete it from the WEB gui, not the app, and clear the trash, this should make it able to re-upload see if that pulls it through
Jgahbs
JgahbsOP4d ago
I tried this. Unfortunately, it does not work. The image does not re-upload. In fact, even changing the image name and forcing an image upload (Samsung Galley -> Share to Immich) does not work. Immich seems to have blacklisted the photo once it is deleted. I still have the image error issue, even on new partner photos. I do not recommend anyone delete photos for this test because it appears that they will not re-upload at the moment, for whatever reason. As another poster said, there seems to be something wrong with the server sync or Android app image detection in the latest version. See post by @masiv_ .
Mraedis
Mraedis4d ago
Did you clear the trash? Because immich does reject byte-identical files, but only if they're present and deleting+clearing trash should remove that
Jgahbs
JgahbsOP4d ago
Yes, I cleared trash on both the web and app. Assets continue not to match and errors persist. Please see attached screenshot of app and browser. App shows the latest image as uploaded, but it appears as an error on the webui.
Jgahbs
JgahbsOP4d ago
This is the app. Latest photo appears uploaded.
No description
Mraedis
Mraedis4d ago
Did you try emptying the blacklist as well?
Jgahbs
JgahbsOP4d ago
This is the web version. Image error on uploaded
Jgahbs
JgahbsOP4d ago
No description
Mraedis
Mraedis4d ago
Starting to think there is something wrong with your mounts now ... could you share your compose/env ?
Jgahbs
JgahbsOP4d ago
You mean clear duplicated assets in app?
Mraedis
Mraedis4d ago
Yes that one
Jgahbs
JgahbsOP4d ago
Here is my .Yml
No description
Mraedis
Mraedis4d ago
looks simple enough, from the env I mostly need UPLOAD_LOCATION and DB_DATA_LOCATION, feel free to mask the password of course
Jgahbs
JgahbsOP4d ago
Here is my env.
No description
Jgahbs
JgahbsOP4d ago
I think I did accidentally remove volumes recently when I removed a failed nextcloud installation. Not sure if Immich was affected, however.
Mraedis
Mraedis4d ago
unless you deleted /mnt/ssd/library or /mnt/ssd/postgres that should have had no effect at worst it would have deleted the job that queues thumbnails and "missing" would cover that If you browse the file system, can you locate the actual file? From both container and host perspective
Jgahbs
JgahbsOP2d ago
Thanks, that's good to know. I'm not sure about locating the file system. I searched both for a file I know is uploaded (and appears correctly) and one that shows error loading image. I find neither on my server. By the way, I can see my partner's photos' metadata, but the images themselves do not load.
No description
Jgahbs
JgahbsOP2d ago
Here are the latest errors from the app log: Instance of 'FlutterErrorDetails' Exception: ClientException with SocketException: Failed host lookup: 'thegahllery.duckdns.org' (OS Error: No address associated with hostname, errno = 7), uri=https://(servername).duckdns.org/api/assets/98077c6e-431e-4033-9e60-2cc8e255a316/thumbnail?size=thumbnail Library: image resource service Context: Instance of 'ErrorDescription' OK, good news: I think I fixed it. I cleared the app cache and now I see my partner's photos again. Thank you very much for the info and help with troubleshooting, @Mraedis!

Did you find this page helpful?