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

前端 未结 2 584
醉酒成梦
醉酒成梦 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

    The actual answer to this question appears to be this Ubuntu-specific bug:

    https://bugs.launchpad.net/ubuntu/+source/libjpeg-turbo/+bug/1031718

    You can work around the problem by putting the lines

    setuid uwsgiuser
    setgid uwsgiuser
    

    into your upstart configuration file, and deleting the uid and gid settings from your uwsgi configuration.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题