I can confirm answer 1 addresses the underlying problem (I'm a new SE user so I can't upvote it yet). Here is more detail for search engines:
From /var/log/nginx/error.log
2014/04/30 08:07:48 [crit] 35135#0: *116437 open() "/var/lib/nginx/proxy/7/09/0000001097" failed (13: Permission denied) while reading upstream
In my case this happened because I recently changed the user under which nginx runs (the default nginx config uses www-data
in /etc/nginx/nginx.conf
).
My solution was to chown -R correct_user:root /var/lib/nginx/proxy
. I imagine I could also have rm -rf
'd the existing /var/lib/nginx/proxy
subdirectories with the expectation that nginx would recreate them using the correct_user
as owner.
eric-francis thanks for figuring this out! This easily saved me a day of hunting.