[UPLOAD FAILED] Premature close #987

Closed
opened 2026-02-04 23:47:54 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @DemonAngeX2 on GitHub (Jun 22, 2023).

The bug

Hello, i tried to upload a .MOV video but i have this error in the docker container:

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. (node:net:322:12)

The OS that Immich Server is running on

Unraid (docker)

Version of Immich Server

immich:v1.62.1-ig127

Version of Immich Mobile App

latest IOS

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

ghcr.io/imagegenius/immich

Your .env content

ghcr.io/imagegenius/immich

Reproduction steps

I tried to upload a MOV video file. 
Resolution: 4K
Size: 151Mo
Time: 14s

Second file wich failed: 
Name: IMG_0060.MOV
Size:162
Time: 15s

Additional information

No response

Originally created by @DemonAngeX2 on GitHub (Jun 22, 2023). ### The bug Hello, i tried to upload a .MOV video but i have this error in the docker container: 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) ### The OS that Immich Server is running on Unraid (docker) ### Version of Immich Server immich:v1.62.1-ig127 ### Version of Immich Mobile App latest IOS ### Platform with the issue - [X] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML ghcr.io/imagegenius/immich ``` ### Your .env content ```Shell ghcr.io/imagegenius/immich ``` ### Reproduction steps ```bash I tried to upload a MOV video file. Resolution: 4K Size: 151Mo Time: 14s Second file wich failed: Name: IMG_0060.MOV Size:162 Time: 15s ``` ### Additional information _No response_
Author
Owner

@etnoy commented on GitHub (Jun 22, 2023):

How did you initiate the upload? Mobile? Web? Cli?

@etnoy commented on GitHub (Jun 22, 2023): How did you initiate the upload? Mobile? Web? Cli?
Author
Owner

@bo0tzz commented on GitHub (Jun 22, 2023):

The error you posted happens when you stop viewing a video in the web UI and can be ignored. Are there any other errors in the logs?

@bo0tzz commented on GitHub (Jun 22, 2023): The error you posted happens when you stop viewing a video in the web UI and can be ignored. Are there any other errors in the logs?
Author
Owner

@DemonAngeX2 commented on GitHub (Jun 25, 2023):

How did you initiate the upload? Mobile? Web? Cli?

Web

@DemonAngeX2 commented on GitHub (Jun 25, 2023): > How did you initiate the upload? Mobile? Web? Cli? Web
Author
Owner

@DemonAngeX2 commented on GitHub (Jun 26, 2023):

The error you posted happens when you stop viewing a video in the web UI and can be ignored. Are there any other errors in the logs?

I updated to new version and no suspicious log. I retried to upload with new version but it's the same .... The only thing is a warning to set sysctl vm.overcommit_memory=1. I did it. I will try if it can solve the problem after a reboot.

@DemonAngeX2 commented on GitHub (Jun 26, 2023): > The error you posted happens when you stop viewing a video in the web UI and can be ignored. Are there any other errors in the logs? I updated to new version and no suspicious log. I retried to upload with new version but it's the same .... The only thing is a warning to set sysctl vm.overcommit_memory=1. I did it. I will try if it can solve the problem after a reboot.
Author
Owner

@DemonAngeX2 commented on GitHub (Jul 8, 2023):

Hello, can i have help on this problem. I reencoded both videos. Converted in x265 10 bits 4K MP4

Before it was a MOV in 4K took with my iphone.

I tried to import them and on video successfully imported. The imported video was converted from 151Mo to 30Mo. The failed import video 162 Mo to 105 Mo

It said in documentation logs are in docker container but i have no error....

@DemonAngeX2 commented on GitHub (Jul 8, 2023): Hello, can i have help on this problem. I reencoded both videos. Converted in x265 10 bits 4K MP4 Before it was a MOV in 4K took with my iphone. I tried to import them and on video successfully imported. The imported video was converted from 151Mo to 30Mo. The failed import video 162 Mo to 105 Mo It said in documentation logs are in docker container but i have no error....
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#987