Open SixFive7 opened 4 weeks ago
Related as these three PRs seem to already contain 80% of the required code: https://github.com/immich-app/immich/pull/9306 https://github.com/immich-app/immich/pull/2072 https://github.com/immich-app/immich/pull/7135
The bug
Every few thousand uploads something goes wrong and the upload is stopped mid file. This results in errors during file processing. As a result these uploads are stuck on the untracked files section of the repair tab.
There are a few issues with this:
The most egregious issue to me seems to be issue number 1. Especially for broken uploads that don't get detected as corrupt. A relative easy fix for this would be to upload from the app not only the file, but also the checksum. And then only accept the file server side if the checksum checks out. If not, drop the upload and ask the app to try again.
Update: Seems @ItalyPaleAle already ran into this wall once before. Not sure why https://github.com/immich-app/immich/issues/4532 was closed.
The OS that Immich Server is running on
Unraid v6.12.10
Version of Immich Server
v1.105.1
Version of Immich Mobile App
v1.105.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Can't find the relevant log anymore. But it was something generic about not being able to read the file. This is expected as the file has only been partially uploaded.
Additional information
This is a (intentionally very low res) screenshot of the two files compared. Left the uploaded file. Right the original file. You can clearly see how the file size of about 10% is reflected in the image.![image](https://github.com/immich-app/immich/assets/6650122/edeb08f7-3ed9-49d3-868e-1aef77143ae6)