为什么我用Django Mezzanine收到[CRITICAL] WORKER TIMEOUT gunicorn?

时间:2018-10-18 17:22:40

标签: django gunicorn mezzanine

我正在使用Django Mezzanine博客引擎。 今天突然我开始收到Nginx 502错误的网关错误。我查看了其中的错误日志:

  File "/home/username/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
    worker.init_process()
  File "/home/username/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 134, in init_process
    self.run()
  File "/home/username/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 124, in run
    self.run_for_one(timeout)
  File "/home/username/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 83, in run_for_one
    self.wait(timeout)
  File "/home/username/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 35, in wait
    ret = select.select(self.wait_fds, [], [], timeout)
TypeError: argument must be an int, or have a fileno() method.
[2018-08-19 15:44:41 +0000] [766] [CRITICAL] WORKER TIMEOUT (pid:788)
[2018-08-19 15:44:41 +0000] [766] [CRITICAL] WORKER TIMEOUT (pid:783)

我尝试fab deploy来检查问题是否解决,但是出现以下错误:

$ kill -HUP `cat /home/username/mezzanine/problog/gunicorn.pid` ->

[204.12.226.162] out: /bin/bash: line 0: kill: (677) - Operation not permitted
[204.12.226.162] out: 

Fatal error: run() received nonzero return code 1 while executing!

Requested: kill -HUP `cat /home/username/mezzanine/problog/gunicorn.pid`
Executed: /bin/bash -l -c "kill -HUP \`cat /home/username/mezzanine/problog/gunicorn.pid\`"

我的问题是:首先,此错误的可能原因是什么?您如何建议我修复它?

0 个答案:

没有答案