Gunicorn工作人员在日志文件中抛出晦涩的错误

时间:2016-09-10 01:43:09

标签: django gunicorn

托管我的Django Web应用程序的虚拟机最近表现不正常(使用gunicorn + nginx反向代理设置)。服务器在高负载(大约85%CPU利用率)下几分钟不可用是不稳定的。我查看了var / log / upstart / gunicorn.log,我在日志的某些部分看到了以下内容。谁能告诉我这是什么?

From cffi callback From cffi callback <function _osrandom_rand_bytes at 0x7fe2dd2b9b18>:
Traceback (most recent call last):
  File "/home/myuser/.allenvs/myenv/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 66, in _osra$
<function _osrandom_rand_bytes at 0x7fe2dcc079b0>    @ffi_callback("int (*)(unsigned char *, int)",
  File "/home/myuser/.allenvs/myenv/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 159, in handle_abort
:
Traceback (most recent call last):
      File "/home/myuser/.allenvs/myenv/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 66, in _$
sys.exit(1)
SystemExit: 1
    @ffi_callback("int (*)(unsigned char *, int)",
  File "/home/myuser/.allenvs/myenv/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 159, in handle_abort
    sys.exit(1)
SystemExit: 1

我找不到关于此错误的大量文档。提前谢谢。

/etc/init/gunicorn.conf的内容是:

description "Gunicorn application server handling myproject"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
setuid myuser
setgid www-data
chdir /home/myuser/projfolder/myproject/

exec /home/myuser/..allenvs/myenv/bin/gunicorn --chdir=/home/myuser/projfolder/ -w 17 --bind unix:/home/myuser/projfolder/myproject/myproject.sock -e ON_AZURE=1 -e HTTPS=on -e awsaccesskeyid=<some_id> -e awssecretkey=<some_key> myproject.wsgi:application

0 个答案:

没有答案