uWSGI Server log…permission denied to read file…which file?

前端 未结 2 583
醉酒成梦
醉酒成梦 2020-12-31 21:37

I have a server running Django/Nginx/uWSGI with uWSGI in emperor mode, and the error log for it (the vassal-level error log, not the emperor-level log) has a continual permi

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 22:22

    You could try to strace the process and see what triggers the error message, something like:

    UWSGI=/usr/bin/uwsgi LOGTO=/var/log/uwsgi/emperor.log strace -f -o strace.log -etrace=open,write $UWSGI --master --emperor /etc/uwsgi/vassals --die-on-term --auto-procname --no-orphans --logto $LOGTO --logdate

提交回复
热议问题