immich icon indicating copy to clipboard operation
immich copied to clipboard

[UPLOAD FAILED] Premature close

Open DemonAngeX2 opened this issue 1 year ago • 4 comments

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

  • [X] Server
  • [X] 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

DemonAngeX2 avatar Jun 22 '23 18:06 DemonAngeX2

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

etnoy avatar Jun 22 '23 18:06 etnoy

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 avatar Jun 22 '23 18:06 bo0tzz

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

Web

DemonAngeX2 avatar Jun 25 '23 19:06 DemonAngeX2

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 avatar Jun 25 '23 21:06 DemonAngeX2

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 avatar Jul 08 '23 20:07 DemonAngeX2