我试图将uWSGI与进程和线程一起使用,但是当我启用线程时,我得到了这个错误(daemonize log):
Fatal Python error: PyEval_RestoreThread: NULL tstate
[deadlock-detector] a process holding a robust mutex died. recovering...
DAMN ! worker 1 (pid: 6617) died, killed by signal 6 :( trying respawn ...
我在Debian Jessie上使用Python 3.4.2和uWSGI 2.0.14。
uWSGI配置文件:
[uwsgi]
base = /home/test
chdir = %(base)
module = test.wsgi:application
home = /home/user/.pyenv/test-3.4.2
master = true
processes = 4
threads = 5 ;I enabled this line
pidfile = %(base)/test.pid
harakiri = 30
post-buffering = 8000
min-worker-lifetime = 60
die-on-term = true
stats = %(base)/stats.sock
thunder-lock = true
socket = %(base)/test.sock
chmod-socket = 777
vacuum = true
max-requests = 5000
logto = /var/log/uwsgi/test.log
daemonize = /var/log/uwsgi/daemonize.log