© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3y ago•
11 replies
TumTum

Corrupt files when downloading photos from External Library

When I download an asset from an external library, the resulting file is corrupt. The downloaded file size is identical to the original, but it is missing metadata and won't display in any photo viewers. Assets in the default library (uploaded with the Immich app natively) do not have this issue.

I'm on the latest server version and app version. My docker-compose is pretty standard but I can share it if needed. Relevant log snippets generated when I tried to download an asset:

immich_proxy log
2023/10/17 22:40:52 [warn] 47#47: *3112 upstream sent more data than specified in "Content-Length" header while reading upstream, client: 10.0.3.109, server: , request: "POST /api/asset/download/8aea94d6-3f76-4bfa-87f2-b971ee34e1a9 HTTP/1.1", upstream: "http://172.30.0.7:3001/asset/download/8aea94d6-3f76-4bfa-87f2-b971ee34e1a9", host: "my-docker-host.com:2283", referrer: "http://my-docker-host.com:2283/photos"

immich_server log
[Nest] 7 - 10/17/2023, 10:40:52 PM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:406:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:159:30)
at ServerResponse.emit (node:events:526:35)
at emitCloseNT (node:_http_server:1023:10)
at Socket.onServerResponseClose (node:_http_server:278:5)
at Socket.emit (node:events:526:35)
at TCP.<anonymous> (node:net:337:12)
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

excluding files from external library
ImmichIImmich / help-desk-support
11mo ago
External Library not seeing photos
ImmichIImmich / help-desk-support
3mo ago
External Library or Upload photos
ImmichIImmich / help-desk-support
5mo ago
iPhone Live Photos from External Library not recognized
ImmichIImmich / help-desk-support
2y ago