django 问题记录
错误记录
问题:
1)6 recv() failed (104: Connection reset by peer) while reading response header from upstream, …………
2)页面显示502
解决方式:
1 查看 nginx log显示uwsgi 出错。(/var/log/nginx/error.log)
*6 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x, server: localhost, request: "GET /webbacklog/featuredashboard/ HTTP/1.1", upstream: "uwsgi://unix:///tmp/django.sock:", host: "x.x.x.x"
2 查看 uwsgi log显示无权限:提示Permission denied
3 修改对应文件的权限 ,done!
chown -R root:root /var/log/