S
S
Slash2018-05-15 09:29:45
Nginx
Slash, 2018-05-15 09:29:45

How to get rid of: "an upstream response is buffered to a temporary file"?

Hello.
The following errors appear in the logs: "var/www/httpd-logs/": an upstream response is buffered to a temporary file . Errors appear when a user downloads an attachment from posts. As I understand it, the buffer does not have enough space to fit the file.
Inserted the following lines into the config:

fastcgi_buffering            on;
  fastcgi_buffer_size          512m;
  fastcgi_buffers              8 512m; 
  fastcgi_busy_buffers_size    512m; 
  fastcgi_temp_file_write_size 512m;

Did not help. "512m" - this increased the volume, started from "512k". I inserted the main config into the site config, it doesn't help... It only helps: But it seems to me that this is completely wrong... Tell me, what and where should be inserted to correct the error? Thank you.
proxy_max_temp_file_size 0;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Reversaidx, 2018-05-15
@Slash-Zn

This is not an error, it's just that the file did not fit into memory, and a temporary file was used, it makes no sense to twist the settings for large files, because it does not matter (on the contrary, performance may drop)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question