uWSGI配置问题:uwsgi失败,没有任何错误消息。 [英] uWSGI configuration issue: uwsgi fails without any error message.

查看:1127
本文介绍了uWSGI配置问题:uwsgi失败,没有任何错误消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When configuring uwsgi django application for first time i had weird error. NGIX (configured as per documentation) responded with 502 Bad Gateway response.

Uwsgi日志没有明显的错误:

Uwsgi logs give no apparent error:

  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 --


推荐答案

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

uWSGI logs show error --- it is:

 -- unavailable modifier requested: 0 --

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

which basically means that python plugin is missing --- you need to install it. On debian you need to install uwsgi-plugin-python.

这篇关于uWSGI配置问题:uwsgi失败,没有任何错误消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆