uWSGI配置问题:uwsgi失败,没有任何错误消息。

时间:2012-10-07 15:43:41

标签: django nginx uwsgi

第一次配置uwsgi django应用程序时,我遇到了奇怪的错误。 NGIX(根据文档配置)以502 Bad Gateway response响应。

Uwsgi日志没有明显错误:

  Sun Oct  7 17:36:31 2012 - *** Starting uWSGI 1.2.3-debian (64bit) on [Sun Oct  7 17:36:31 2012] ***
  Sun Oct  7 17:36:31 2012 - compiled with version: 4.7.1 on 13 September 2012 19:07:14
  Sun Oct  7 17:36:31 2012 - detected number of CPU cores: 2
  Sun Oct  7 17:36:31 2012 - current working directory: /
  Sun Oct  7 17:36:31 2012 - writing pidfile to /run/uwsgi/app/lfitjcmsjb/pid
  Sun Oct  7 17:36:31 2012 - detected binary path: /usr/bin/uwsgi-core
  Sun Oct  7 17:36:31 2012 - setgid() to 33
  Sun Oct  7 17:36:31 2012 - setuid() to 33
  Sun Oct  7 17:36:31 2012 - your memory page size is 4096 bytes
  Sun Oct  7 17:36:31 2012 - detected max file descriptor number: 1024
  Sun Oct  7 17:36:31 2012 - lock engine: pthread robust mutexes
  Sun Oct  7 17:36:31 2012 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/lfitjcmsjb/socket fd 3
  Sun Oct  7 17:36:31 2012 - uwsgi socket 1 bound to UNIX address /tmp/lfitj.sock fd 5
  Sun Oct  7 17:36:31 2012 - your server socket listen backlog is limited to 100 connections
  Sun Oct  7 17:36:31 2012 - *** Operational MODE: preforking ***
  Sun Oct  7 17:36:31 2012 - *** no app loaded. going in full dynamic mode ***
  Sun Oct  7 17:36:31 2012 - *** uWSGI is running in multiple interpreter mode ***
  Sun Oct  7 17:36:31 2012 - spawned uWSGI master process (pid: 5141)
  Sun Oct  7 17:36:31 2012 - spawned uWSGI worker 1 (pid: 5144, cores: 1)
  Sun Oct  7 17:36:31 2012 - spawned uWSGI worker 2 (pid: 5145, cores: 1)
  Sun Oct  7 17:37:57 2012 - -- unavailable modifier requested: 0 --

1 个答案:

答案 0 :(得分:0)

uWSGI日志显示错误---它是:

 -- unavailable modifier requested: 0 --

这基本上意味着缺少python插件---你需要安装它。在debian上,您需要安装uwsgi-plugin-python