V
V
VITYA-XY12019-07-16 19:50:07
Nginx
VITYA-XY1, 2019-07-16 19:50:07

How to fix NGINX client prematurely closed stream error?

Hello, when uploading files, I get an error:

*1517 client prematurely closed stream: only 288266169 out of 288266873 bytes of request body received, client: 1.1.1.1, server: example.org, request: "POST /bla/bla HTTP/2.0", host: "example.org", referrer: "https://example.org
"
Config:
client_body_temp_path  /tmp/;
client_body_in_file_only clean;
client_body_buffer_size 1m;
client_max_body_size 30000m;
client_header_timeout 10000s;
client_body_timeout 10000s;
keepalive_timeout 10000s;
proxy_ignore_client_abort on;
proxy_buffering off;
proxy_connect_timeout 6000s;
proxy_send_timeout   6000s;
proxy_read_timeout   6000s;
proxy_buffer_size    64k;
proxy_buffers     16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;

What is the root of the problem, can upstream be to blame?
But when I check the /tmp folder for upstream, it does not clog when the file is uploaded

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2019-07-17
@VITYA-XY1

This is not a server error, but they write to you in human language - the client did not take the file to the end. It needs to be diagnosed from the other side. Maybe the internet is unstable or something...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question