ImmichI
Immich2mo ago
dubiner

ML error: image file is truncated

Running immich v2.1.0. When I start smart search job by "Missing" button, I see next error in server log
[Nest] 7  - 10/25/2025, 12:49:12 PM   ERROR [Microservices:{"id":"1c04a0ad-547c-4a2e-ac89-2f37d2cbab2d"}] Unable to run job handler (SmartSearch): Error: Machine learning request '{"clip":{"visual":{"modelName":"ViT-SO400M-16-SigLIP2-384__webli"}}}' failed for all URLs

and in ml logs
...
                             │ /opt/venv/lib/python3.11/site-packages/PIL/Imag │
                             │ eFile.py:290 in load                            │
                             │                                                 │
                             │   287 │   │   │   │   │   │   │   │   │   │   " │
                             │   288 │   │   │   │   │   │   │   │   │   │   f │
                             │   289 │   │   │   │   │   │   │   │   │   )     │
                             │ ❱ 290 │   │   │   │   │   │   │   │   │   raise │
                             │   291 │   │   │   │   │   │   │                 │
                             │   292 │   │   │   │   │   │   │   b = b + s     │
                             │   293 │   │   │   │   │   │   │   n, err_code = │
                             ╰─────────────────────────────────────────────────╯
                             OSError: image file is truncated (19 bytes not
                             processed)
[10/25/25 12:54:15] INFO     Shutting down due to inactivity.
[10/25/25 12:54:15] INFO     Shutting down
[10/25/25 12:54:15] INFO     Waiting for application shutdown.
[10/25/25 12:54:15] INFO     Application shutdown complete.
[10/25/25 12:54:15] INFO     Finished server process [9041]
[10/25/25 12:54:15] ERROR    Worker (pid:9041) was sent SIGINT!

What shoul I do to
  • Find image that causes this error
  • Fix or skip this image to clarify my logs
    ?
Was this page helpful?