I
Immich13mo ago
Kvickis

Web UI shows broken images where Android app shows real pictures and shows them as uploaded.

What could be the problem
No description
45 Replies
Immich
Immich13mo ago
: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.
Alex Tran
Alex Tran13mo ago
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 here
Kvickis
KvickisOP13mo ago
I don't use docker compose. I run on top of Cosmos cloud But Cosmos cloud has functions to stop and restart containers
Alex Tran
Alex Tran13mo ago
Hm, something could be wrong with the cosmo config then, I am not too familiar with it
Kvickis
KvickisOP13mo ago
But everything has worked ok up until now (for a couple of weeks).
durgesh007
durgesh00713mo ago
@Alex Sorry, I created an issue twice but not sure, why it did not get any response. Is it some kind of discord bug?
Alex Tran
Alex Tran13mo ago
sorry what was your issue?
Alex Tran
Alex Tran13mo ago
Can you try upload a different photo from the web, like a screenshot or something, see if it can generates the thumbnail
Kvickis
KvickisOP13mo ago
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
Alex Tran
Alex Tran13mo ago
can you show the logs? what version of the server are you on?
Kvickis
KvickisOP13mo ago
Tried another one, same result. version 1.101.0
Alex Tran
Alex Tran13mo ago
we will need logs to see the issue then, something wrong with redis/microservices so microservices cannot receive the request to regenerate thumbnail
Kvickis
KvickisOP13mo ago
I can post logs. Is it the microservices log you need?
Alex Tran
Alex Tran13mo ago
can you completely kill the containers and recreate it? microservies and redis
Kvickis
KvickisOP13mo ago
OK
Alex Tran
Alex Tran13mo ago
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
Kvickis
KvickisOP13mo ago
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
Alex Tran
Alex Tran13mo ago
looks like it doesn't running proberly, so please follow the steps above, rdestroy and recreate the containers
Kvickis
KvickisOP13mo ago
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
Alex Tran
Alex Tran13mo ago
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
Kvickis
KvickisOP13mo ago
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
Alex Tran
Alex Tran13mo ago
Did you destroy and recreate the containers?
Kvickis
KvickisOP13mo ago
There is no "destroy" in the Cosmos UI. The following actions exist: Pause, Stop, Restart, Recreate, Kill (and Update)
Alex Tran
Alex Tran13mo ago
So you recreated?
Kvickis
KvickisOP13mo ago
I first Stopped then Recreated Perhaps I should have Stopped, Killed and Recreated?
Alex Tran
Alex Tran13mo ago
Does it work now?
Kvickis
KvickisOP13mo ago
(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
Alex Tran
Alex Tran13mo ago
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
Kvickis
KvickisOP13mo ago
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?
Alex Tran
Alex Tran13mo ago
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
Kvickis
KvickisOP13mo ago
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
Alex Tran
Alex Tran13mo ago
Yes let’s do that The scanner file could be the issue, so having it on hands to troubleshoot would be great
Kvickis
KvickisOP13mo ago
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)
Alex Tran
Alex Tran13mo ago
You might need to pass in TZ= your timezone to the .env file or equivalent to set the timezone correctly for the container
Kvickis
KvickisOP13mo ago
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
Alex Tran
Alex Tran13mo ago
I think it was in a weird state and it resolved itself when you recreate the container
Kvickis
KvickisOP13mo ago
You are probably right. Thanks for tonight! I will now try out my new Raspberry Pi 5 🙂
Alex Tran
Alex Tran13mo ago
where did you deploy it?
Kvickis
KvickisOP13mo ago
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
Jordan
Jordan6d ago
@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
Kvickis
KvickisOP6d ago
Ok I will investigate and get back to you
Jordan
Jordan6d ago
If you're running linux just use sudo dmidecode -t memory
sudo dmidecode -t memory
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.6.0 present.
# SMBIOS implementations newer than version 3.5.0 are not
# fully supported by this version of dmidecode.

Handle 0x0027, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 32 GB
Error Information Handle: Not Provided
Number Of Devices: 1

Handle 0x0028, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0027
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 16 GB
Form Factor: SODIMM
Set: None
Locator: Controller0-ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR4
Type Detail: Synchronous
Speed: 3200 MT/s
Manufacturer: Shenzhen Jinge Information Co Ltd
Serial Number: 45F4A70C
Asset Tag: 9876543210
Part Number: BRBN2G416G16C3200
Rank: 1
Configured Memory Speed: 3200 MT/s
Minimum Voltage: 1.2 V
Maximum Voltage: 1.2 V
Configured Voltage: 1.2 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 9, Hex 0x07
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 16 GB
Cache Size: None
Logical Size: None
sudo dmidecode -t memory
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.6.0 present.
# SMBIOS implementations newer than version 3.5.0 are not
# fully supported by this version of dmidecode.

Handle 0x0027, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 32 GB
Error Information Handle: Not Provided
Number Of Devices: 1

Handle 0x0028, DMI type 17, 92 bytes
Memory Device
Array Handle: 0x0027
Error Information Handle: Not Provided
Total Width: 64 bits
Data Width: 64 bits
Size: 16 GB
Form Factor: SODIMM
Set: None
Locator: Controller0-ChannelA-DIMM0
Bank Locator: BANK 0
Type: DDR4
Type Detail: Synchronous
Speed: 3200 MT/s
Manufacturer: Shenzhen Jinge Information Co Ltd
Serial Number: 45F4A70C
Asset Tag: 9876543210
Part Number: BRBN2G416G16C3200
Rank: 1
Configured Memory Speed: 3200 MT/s
Minimum Voltage: 1.2 V
Maximum Voltage: 1.2 V
Configured Voltage: 1.2 V
Memory Technology: DRAM
Memory Operating Mode Capability: Volatile memory
Firmware Version: Not Specified
Module Manufacturer ID: Bank 9, Hex 0x07
Module Product ID: Unknown
Memory Subsystem Controller Manufacturer ID: Unknown
Memory Subsystem Controller Product ID: Unknown
Non-Volatile Size: None
Volatile Size: 16 GB
Cache Size: None
Logical Size: None
This should be the output
Kvickis
KvickisOP6d ago
Ok so the Dram module used in my minipc from gmktek is https://amzn.eu/d/4Mp1qGs
Jordan
Jordan6d ago
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!

Did you find this page helpful?