Nginx settings lufy January 22, 2022 <p>nginx met error log of "open() "/var/lib/nginx/tmp/proxy/9/05/0000000059" failed (13: Permission denied) while reading upstream", change the proxy_temp_path solved. </p> <p># Override temp file locations<br />client_body_temp_path /var/lib/nginx-tmp/client_body;<br />proxy_temp_path /var/lib/nginx-tmp/proxy;<br />fastcgi_temp_path /var/lib/nginx-tmp/fastcgi 1 2;<br />uwsgi_temp_path /var/lib/nginx-tmp/uwsgi;<br />scgi_temp_path /var/lib/nginx-tmp/scgi;</p> <p> </p> <p>Question:</p> <p>When I download big file (about 300MB), the server failed with "</p> <p>nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument"</p> <p>Change nginx.service config with:</p> <p>printf "[Service]<wbr />\nExecStartPost<wbr />=/bin/sleep 0.1\n" > /etc/systemd/<wbr />system/<wbr />nginx.service.<wbr />d/override.<wbr />conf</p> <p>systemctl daemon-reload</p> <p>After the operation, it still not work fine, and this time without any error message in the log, neither system log nor nginx error log.</p> <p> </p>
Comments (0)
Leave a Comment
No comments yet. Be the first to comment!