title: Nginx error: (13: Permission denied) while reading upstream on /var/cache/nginx/proxy_temp/
body: <p>I am facing this error while I reading the log using this <code>sudo tail -n 20 /var/log/nginx/error.log</code>;</p>
  
  <p>My website is loading but everything is black and when I am looking at console log I see this <code>Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH</code></p>
  
  <p>The full error from previews log looks like this</p>
  
  <p><code>2019/09/30 16:24:09 [crit] 9103#9103: *81 mkdir() "/var/cache/nginx/proxy_temp/5" failed (2: No such file or directory) while reading upstream, client: MY_IP, server: dev.example.com, request: "GET /bundle.js HTTP/1.1", upstream: "http://127.0.0.1:5000/bundle.js", host: "dev.example.com", referrer: "https://dev.example.com/"</code></p>
  
  <p>I have tried to give permissions to cache folder but still not working</p>