使用Django在Debian Linux上从Apache 2.2升级到2.4后的WSGI分段错误

时间:2018-03-28 04:23:40

标签: django apache mod-wsgi wsgi

在从debian 7.1到8.10运行dist-upgrade之后,WSI会在Apache日志中出现以下错误:

[Tue Mar 27 21:06:34.843952 2018] [core:notice] [pid 117022] AH00052: child pid 128687 exit signal Segmentation fault (11)
[Tue Mar 27 21:06:34.844011 2018] [wsgi:info] [pid 117022] mod_wsgi (pid=128687): Process 'icmlcc' has died, deregister and restart it.
[Tue Mar 27 21:06:34.844021 2018] [wsgi:info] [pid 117022] mod_wsgi (pid=128687): Process 'icmlcc' terminated by signal 11
[Tue Mar 27 21:06:34.844030 2018] [wsgi:info] [pid 117022] mod_wsgi (pid=128687): Process 'icmlcc' has been deregistered and will no longer be monitored.
[Tue Mar 27 21:06:53.989780 2018] [ssl:debug] [pid 128282] ssl_engine_io.c(1213): (70014)End of file found: [client 183.11.70.193:19265] AH02007: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!]

我正在寻找任何可以解决此问题的帮助。提前致谢。更多信息......

当我在浏览器中查看网站时,我看到了Django的内部服务器错误页面,但SSL证书已正确显示并受信任。

我偶尔会收到“在我的网站中从守护进程收到的截断或超大响应标头”error.log

我正在使用Debian提供的软件包:

libapache2-mod-wsgi/oldstable,now **4.3.0-1** amd64 [installed]
apache2-bin/oldstable,now 2.4.10-10+deb8u11 amd64 [installed,automatic]
python2.7/oldstable,now 2.7.9-2+deb8u1 amd64 [installed]

代码可以与开发服务器一起正常运行。 manage.py runserver工作。

我的.conf文件的相关部分:

SSLCertificateFile /etc/ssl/certs/icml.cc.crt
SSLCertificateKeyFile /etc/ssl/private/icml.cc.key
#SSLCertificateChainFile /etc/ssl/certs/gd_bundle-g2-g1.crt
SSLCACertificateFile  /etc/ssl/certs/gd_bundle-g2-g1.crt
<Directory /www/icml.cc/media>
  #Order deny,allow
  #Allow from all
  Require all granted
</Directory>
<Directory /www/icml.cc/admin>
  #Order deny,allow
  #Allow from all
  Require all granted
</Directory>
WSGIScriptAlias / /www/icml.cc/djnipscc/wsgi.py
WSGIDaemonProcess icmlcc home=/var/www python-path=/home.local/lee/.virtualenvs/nips/lib/python2.7/site-packages:/www/icml.cc processes=25 threads=10 maximum-requests=0
WSGIProcessGroup icmlcc

我尝试使用从源代码编译的python。我还没有尝试从源代码构建mod_wsgi。

非常感谢任何帮助。谢谢。

0 个答案:

没有答案