TumTum
IImmich
•Created by TumTum on 10/18/2023 in #help-desk-support
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)
12 replies