Web UI shows broken images where Android app shows real pictures and shows them as uploaded.
What could be the problem

45 Replies
:wave: Hey @Kvickis,
Thanks for reaching out to us. Please follow the recommended actions below; 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 compose ps
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: I have read applicable release notes.
3. :blue_square: I have reviewed the FAQs for known issues.
4. :blue_square: I have reviewed Github for known issues.
5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload
command.
7. :blue_square: I have 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)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Can you help me do this, run
docker compose down
, then docker compose up
then look at the log when you take a new photo and upload it to Immich
then copy the whole log over hereI don't use docker compose. I run on top of Cosmos cloud
But Cosmos cloud has functions to stop and restart containers
Hm, something could be wrong with the cosmo config then, I am not too familiar with it
But everything has worked ok up until now (for a couple of weeks).
@Alex Sorry, I created an issue twice but not sure, why it did not get any response. Is it some kind of discord bug?
sorry what was your issue?
Can you try upload a different photo from the web, like a screenshot or something, see if it can generates the thumbnail
OK, will do
That was really strange. Everything seemed to work OK (I get confirmation that "Upload was OK, please refresh your web page to see new image"
But when I do, no new picture is shown
can you show the logs?
what version of the server are you on?
Tried another one, same result. version 1.101.0
we will need logs to see the issue then, something wrong with redis/microservices so microservices cannot receive the request to regenerate thumbnail
I can post logs. Is it the microservices log you need?
can you completely kill the containers and recreate it?
microservies and redis
OK
maybe post all three server, microservices and redis
better yet is to monitor those logs while you upload a file
let's remove the containers and recreate them just so we have a clean state
Last two lines from microservices:
2024-04-09 17:31:05
[Nest] 6 - 04/09/2024, 5:31:05 PM LOG [MediaService] Successfully generated JPEG image thumbnail for asset 1ae69fbc-b921-4646-8f97-b0576db0bbd3
2024-04-09 17:31:05
[Nest] 6 - 04/09/2024, 5:31:05 PM LOG [MediaService] Successfully generated WEBP image thumbnail for asset 1ae69fbc-b921-4646-8f97-b0576db0bbd3
Note that the time is not "now"
Last couple of lines from "Immich" container:
2024-04-09 18:10:14
[Nest] 7 - 04/09/2024, 6:10:14 PM WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses
2024-04-09 18:10:19
[Nest] 7 - 04/09/2024, 6:10:19 PM WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses
2024-04-09 18:11:24
[Nest] 7 - 04/09/2024, 6:11:24 PM LOG [EventRepository] Websocket Connect: aNGVBav01cbFd2gAAAAJ
2024-04-09 18:12:33
[Nest] 7 - 04/09/2024, 6:12:33 PM LOG [EventRepository] Websocket Disconnect: 7hZXtlIGAal8MRFvAAAH
2024-04-09 18:12:33
[Nest] 7 - 04/09/2024, 6:12:33 PM LOG [EventRepository] Websocket Connect: SuCbVlEVIRVn9pPfAAAL
2024-04-09 18:12:48
[Nest] 7 - 04/09/2024, 6:12:48 PM LOG [EventRepository] Websocket Disconnect: aNGVBav01cbFd2gAAAAJ
2024-04-09 18:13:25
[Nest] 7 - 04/09/2024, 6:13:25 PM LOG [EventRepository] Websocket Connect: 3LQcf5rEjNAh-BiqAAAN
2024-04-09 18:14:30
[Nest] 7 - 04/09/2024, 6:14:30 PM LOG [EventRepository] Websocket Disconnect: 3LQcf5rEjNAh-BiqAAAN
looks like it doesn't running proberly, so please follow the steps above, rdestroy and recreate the containers
Last couple of lines from "immich-redis"
2024-04-09 18:10:29
22:C 09 Apr 2024 18:10:29.286 * RDB: 0 MB of memory used by copy-on-write
2024-04-09 18:10:29
1:M 09 Apr 2024 18:10:29.331 * Background saving terminated with success
2024-04-09 18:15:30
1:M 09 Apr 2024 18:15:30.024 * 100 changes in 300 seconds. Saving...
2024-04-09 18:15:30
1:M 09 Apr 2024 18:15:30.026 * Background saving started by pid 23
2024-04-09 18:15:30
23:C 09 Apr 2024 18:15:30.286 * DB saved on disk
2024-04-09 18:15:30
23:C 09 Apr 2024 18:15:30.287 * RDB: 0 MB of memory used by copy-on-write
2024-04-09 18:15:30
1:M 09 Apr 2024 18:15:30.327 * Background saving terminated with success
OK, so will I lose settings if I remove the containers and re-upload them?
All containers have now been stopped and then recreated. Immich is up and running again. I will see how a new upload behaves
Well, the database is a persistent volume, so you should be fine. But I don’t know how does Cosmo work, so not 100% sure
Redis log looks fine
Too late to regret 🙂 It seemed to work. I have now taken a new photo by my phone and it shows in both interfaces. Will now try a PC upload
Did you destroy and recreate the containers?
There is no "destroy" in the Cosmos UI. The following actions exist: Pause, Stop, Restart, Recreate, Kill
(and Update)
So you recreated?
I first Stopped then Recreated
Perhaps I should have Stopped, Killed and Recreated?
Does it work now?
(I uploaded two pics from the PC. The first was recognized as a duplicate, the second one the Web-UI said that everything was fine and that I should refresh the web-page. I did. Cannot find the new pic)
But uploading from the phone works as it should
So the original issue is solved, thumbnail is created, the photo you upload are probably on the instance, but I don’t know the file so I don’t know when it is created
These pics I uploaded from the PC was scanned on my scanner, so they don't contain EXIF data. What does that mean to where they will go?
Man, you should have tested with a known good file… it would have shorten our effort here 😅. Usually it would go to the top of the timeline, but without looking at the actual exif of the file, I cannot tell
Found it. It was sorted by the file date. However, it shows only the broken image.
Let me do the "missing" thing again
Yes, that solved it. So it seems that something prevents Immich from auto-generating new thumbnails for some reason. I could restart the entire server and see what that does, if it is interesting to you
Yes let’s do that
The scanner file could be the issue, so having it on hands to troubleshoot would be great
OK, I am rebooting now. It will take a minute or two.
OK, everything is up and running again. I will now repeat the tests
Uploading from phone: OK (both UI's updated automatically)
Worked!
(uploading from PC)
So no more problem
Also checked the microservices log file. Everything OK except the timestamps are off 2 hours
(exactly)
You might need to pass in TZ= your timezone to the .env file or equivalent to set the timezone correctly for the container
It seems so. Anyway, thanks for all the help. I am not sure that I am any wiser, but at least the problem is solved for now.
By the way "immich-database" seem to be rather busy now. Is that normal?
never mind it stopped
I think it was in a weird state and it resolved itself when you recreate the container
You are probably right. Thanks for tonight! I will now try out my new Raspberry Pi 5 🙂
where did you deploy it?
Sorry, did not see your question until now, have been eating and playing with the Raspberry Pi 5. Cosmos and Immich are deployed on a GMKTec Intel N100-based that has 32GB of RAM and 2TB of NVME SSD storage. The Raspberry Pi 5 is just a toy at the moment waiting to be explored. Perhaps I will use it as a server at some point but right now I am trying out Raspberry Pi OS and Ubuntu Desktop OS:es
@Kvickis Sorry for the offtopic, could you tell me the exact 32gb ram module model you're using? I'm trying to upgrade my setup to 32gb but it's not clear which ones work nicely with the GMKTEC n100/n150 setup
Ok I will investigate and get back to you
If you're running linux just use sudo dmidecode -t memory
This should be the output
Ok so the Dram module used in my minipc from gmktek is https://amzn.eu/d/4Mp1qGs
Thanks a lot, I bought a same specced one from Kingston, system didn't POST
Nothing happened until I put back the old ram
Thanks a lot!