immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
47.2k stars 2.39k forks source link

[BUG] Thumbnails and images don't show in the app, after i deleted them from my phone. #5221

Open yurividal opened 10 months ago

yurividal commented 10 months ago

The bug

Screenshot_20231121_110344

I have my immich app set to sync my Camera album. It works fine, but after the images have been backed up to immich, if i use the Android gallery to delete them from my phone, they get corrupted in the app.

I have waited several hours, and they still show as blank squares.

The OS that Immich Server is running on

Ubuntu 22.04

Version of Immich Server

V1.88.1

Version of Immich Mobile App

V1.88.1

Platform with the issue

Your docker-compose.yml content

Same as example

Your .env content

Same as example

Reproduction steps

1. Set immich on Android to sync Camera folder
2. Take a picture and wait for immich to upload it.
3. Use the android gallery to delete the image from your phone
4. Photo will show as white square on immich app.

Additional information

Samsung Galaxy S23 running Android 14

aatumaykin commented 10 months ago

After updating the server, the same thing is observed in the browser

[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset 71e35893-76db-454c-ab4d-78b16356d257, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset 71e35893-76db-454c-ab4d-78b16356d257
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset 7000893d-9645-45dc-b80c-47c070145d94, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset 7000893d-9645-45dc-b80c-47c070145d94
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset 0630c3bf-2f1e-4c73-b693-939be0ae1794, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset 0630c3bf-2f1e-4c73-b693-939be0ae1794
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset bb7a13db-12e5-448c-9425-c2fc7be7d127, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset bb7a13db-12e5-448c-9425-c2fc7be7d127
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset ebe159e7-a30b-4e17-a7d6-31131bd06cea, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset ebe159e7-a30b-4e17-a7d6-31131bd06cea
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset ba9f2c09-ca18-4a1e-9fcb-c21f6b9b23ec, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset ba9f2c09-ca18-4a1e-9fcb-c21f6b9b23ec
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset a454c993-7fe7-47b1-bc64-b49763d5183c, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset a454c993-7fe7-47b1-bc64-b49763d5183c
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset 3472b8b3-062e-4daa-90cd-28a16a2b355a, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset 3472b8b3-062e-4daa-90cd-28a16a2b355a
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset 6cb9376c-0c43-41da-a585-220a75c4af44, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset 6cb9376c-0c43-41da-a585-220a75c4af44
getAssetThumbnail
[Nest] 8  - 11/21/2023, 11:35:30 AM    WARN [AssetService] WebP thumbnail requested but not found for asset f88351c7-5c94-4b5e-b28d-eb43709521d3, falling back to JPEG
[Nest] 8  - 11/21/2023, 11:35:30 AM   ERROR [AssetService] Cannot create read stream for asset f88351c7-5c94-4b5e-b28d-eb43709521d3

UPD: Sorry, I removed immich-microservices from docker-compose, so thumbnails didn't work

xshyne commented 10 months ago

I got the same issue with version 1.87.0. It seem to happen when the folder is deleted. When i delete just some photos of the folder, i don't have any issue. But when i delete all photos from a folder the folder seems to be completely deleted (it's not in the list of folder i can backup) and all the photo from this folder are shown like in the screenshot. To seen my photos again i had to reinstall the app (or just delete all the data from the app seem to work too).

picklerick323 commented 10 months ago

I have this same issue on IOS. The solution for me is logging out and logging back in from the app.

h4p commented 9 months ago

@picklerick323 I can confirm this. After logging out- and back in the broken/missing image thumbnails are gone. There must be a procedure coupled to the login phase that synchronizes the app with the local photos folder.

foxisawesome commented 7 months ago

Rebuild timeline also works for me in this case.

kuzi-moto commented 3 months ago

Running into this bug as well, also using iOS. I have already tried signing out/in and clearing cached data and can't get the thumbnails nor image to display in the app or on the web. How can I rebuild the timeline? I ran most of the jobs like building thumbnails but that didn't see to have any effect.

t34wrj commented 2 months ago

Same here on Android - if I delete the local version of the photo after it has uploaded, it still appears to look for the file locally which it can't find and the icon with the crossed-out photo appears. Going into the Android app settings -> advanced and enabling prefer remote images is a workaround.