<div dir="ltr">Hi All,<br><br>We are using proxy cache to cache the response from upstream for a day.<br>But, when the cache expires, API stops responding with 500.<br><br>Getting the error: open() "proxycachepath" failed (13: Permission denied)<br><br>On reloading the nginx, server is able to connect to upstream and cache response for the first time and works for next one day.<br><br>Below is the nginx rule :<br><br>location /somelocation {<br>                add_header X-Proxy-Cache $upstream_cache_status;<br>                proxy_cache my_zone;<br>                proxy_ignore_headers X-Accel-Expires Expires Cache-Control;<br>                proxy_cache_valid 200 1440m;<br>                proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;<br>                proxy_pass  someupstream;<br>                proxy_pass_request_headers      on;<br>                proxy_connect_timeout   120;<br>                proxy_send_timeout      120;<br>                proxy_read_timeout      120;<br>                }<br><br>Can anyone please help here.<br><br>Thanks! <br></div>