Unable to play videos uploaded after upgrading to 1.60.0

I did a large upgrade from v1.49.0 to v1.60.0 (I neglected my homelab for a bit, oops). Videos that I've uploaded since the upgrade do not play (I get a red !), however photos seem fine, previously uploaded videos seem fine, and I can download these videos and play them locally. They just won't stream. The only logs I can definitely correlate to attempting to play the video are from immich-server.
[Nest] 1 - 06/10/2023, 5:05:38 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:399:5)
at onclose (node:internal/streams/end-of-stream:154:30)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
[Nest] 1 - 06/10/2023, 5:05:38 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:399:5)
at onclose (node:internal/streams/end-of-stream:154:30)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
I've searched a bit for this error but all the older threads seem unrelated since I am actually trying to play this and do not want it terminated.
8 Replies
Alex Tran
Alex Tran2y ago
You might need to go over each patch note to see if there is something changes that interfere with the videos the error message you show above can be ignored as it is a message when a video stream is pause midway before finished streaming. We currently don't have a way to suppress it but it doesn't cause any issue
bartimeus
bartimeusOP2y ago
Which pieces handle video streams?
Alex Tran
Alex Tran2y ago
server
bartimeus
bartimeusOP2y ago
Ah let me turn on verbose logging to see if anything else pops up when I try to play a video The only extra log I see (which was probably there before but I must have missed it is
[Nest] 1 - 06/10/2023, 5:59:08 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:399:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:525:35)
at emitCloseNT (node:_http_server:984:10)
at Socket.onServerResponseClose (node:_http_server:277:5)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:322:12)
[Nest] 1 - 06/10/2023, 5:59:08 AM ERROR [ExpressAdapter] Premature close
Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
at new NodeError (node:internal/errors:399:5)
at ServerResponse.onclose (node:internal/streams/end-of-stream:154:30)
at ServerResponse.emit (node:events:525:35)
at emitCloseNT (node:_http_server:984:10)
at Socket.onServerResponseClose (node:_http_server:277:5)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:322:12)
I checked out the changelog and didn't see anything and as far as I can tell my configuration looks fine.
Alex Tran
Alex Tran2y ago
Perhaps run video encoding job again for all assets
bartimeus
bartimeusOP2y ago
I ran it again and there’s no change and no new errors. Are there any logs related to successful streaming that I can look for on the videos that work?
jrasm91
jrasm912y ago
I don't think so. Can you get the asset id for one of the videos failing to play?
bartimeus
bartimeusOP2y ago
Hey sorry for the delay. Yeah I have the asset id for one: 17c2f5c7-aad3-4ccb-aa35-1b01a1c29928

Did you find this page helpful?