nginx suddenly starts to throw permission denied to /var/lib/nginx -
i have nginx server, works fine 1 year 2 weeks ago server has been moved provider. ok, after time, aapproximatelly 3 days, server start throw errors on upload files, like:
2017/07/26 09:58:18 [crit] 13254#13254: *2829396 open() "/var/lib/nginx/proxy/7/12/0000002127" failed (13: permission denied) while reading upstream, client: 195.82.157.12, server: ***, request: "get *** http/1.0", upstream: "***", host: "***", referrer: "***"
but wrong, change permissions 777 shure, there still same errors.
no other errors in logs, "permission denied" different digital names after /var/lib/nginx/proxy/. after restarting nginx ok again, errors returns random interval, 2 days. cure found restart.
can me or @ least give clue should dig fix this?
the problem seems because of permission issues.
can check user nginx running with? , see permissions exist on folder /var/lib/nginx/proxy/
?
it might happening nginx trying create new file random name in proxy folder. due incorrect permissions on base folder, unable create it.
i suggest giving chown -r , 777 -r /var/lib/nginx/proxy/
folder nginx user.
if not work, can try doing same on /var/lib/nginx/
, see if works. but, not sure how of security issue lead to.
hope helps.
Comments
Post a Comment