bntjah / lancache

Improve download speeds and reduce strain on your Internet connection at LAN parties. Locally cache game installs and updates from the largest distributors: Steam, RIOT, Blizard, Hirez, Origin, Sony, Microsoft, Tera, GOG, ArenaNetworks, WarGaming, and Uplay. Super easy to setup with auto installer script!
174 stars 44 forks source link

Nginx error "proxy_max_temp_file_size #131

Open Yogi85 opened 5 years ago

Yogi85 commented 5 years ago

Hello I want to make the lancache server on a raspberry. but I get this error. I know that it is not optimal. It should only be a test. can someone explain me what the problem is? Is there a solution that is possible?

Thank you

Greeting Yogi

imac9999 commented 5 years ago

In nginx.conf file there is a parameters set as: proxy_max_temp_file_size 16384m;

And on nginx manual it’s giving the following info on what this means: http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_max_temp_file_size

„When buffering of responses from the proxied server is enabled, and the whole response does not fit into the buffers set by the proxy_buffer_size and proxy_buffers directives, a part of the response can be saved to a temporary file. This directive sets the maximum size of the temporary file.“

So, for whatever reason, your Pi cannot store the responses properly in this defined 16gb file, maybe due to lack of storage or other hardware related limitations on the Pi. Try to set the value so a more smaller amount.

And nope, I don’t know how much performance will suffer from this :)