uwsgi 抱怨未找到 python 应用程序

uwsgi 抱怨未找到 python 应用程序

看起来在 uWSGI 应用程序中相当常见,但仍然找不到任何有价值的解决方案。

我正在使用 uwsgi 1.0.3 和 python2.7 在 ubuntu 12.04 上工作

这是我的 config.ini 文件:

  [uwsgi]
  uid = www-data
  gid = www-data
  pythonpath = /path/to/my/application
  plugins = python27
  module = launcher.py
  workers = 2
  vacuum = True
  max-requests = 1000000
  harakiri = 120
  harakiri-verbose = true
  need-app = true
  buffer-size = 32768
  listen = 200
  master-as-root = true
  max-fd = 10240
  #memory-report = true
  #stats = /tmp/stats.socket
  chown-socket = www-data

我从日志文件中获得的信息如下:

  [uWSGI] getting INI configuration from /usr/share/uwsgi/conf/default.ini
  [uWSGI] getting INI configuration from /etc/uwsgi/apps-enabled/my_application.ini

我找不到任何手动启动它的方法(在前台,没有守护进程;我已经读过文档在这里但选项--wsgi-file来指定配置文件不起作用)或增加详细程度。

我花了几个小时解析谷歌和 uwsgi 文档来找到出路,任何帮助都将不胜感激。

编辑:

现在看起来 uwsgi 正在启动,并在后面加载 cherrypy 应用程序。但此时,它崩溃并显示错误消息:

CherryPy Checker:
The Application mounted at '' has an empty config.

[06/May/2014:14:40:57] ENGINE Started monitor thread 'Autoreloader'.
[06/May/2014:14:40:57] ENGINE Started monitor thread '_TimeoutMonitor'.
[06/May/2014:14:40:57] ENGINE Serving on 127.0.0.1:8080
[06/May/2014:14:40:57] ENGINE Bus STARTED
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x201c680 pid: 9890 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 9890)
spawned uWSGI worker 1 (pid: 9940, cores: 1)
spawned uWSGI worker 2 (pid: 9941, cores: 1)
metrics collector thread started
invalid signal timer syntax, must be: <signal> <seconds>
VACUUM: unix socket /run/uwsgi/app/uwsgi/socket removed.
root@test:/var/www/ce1sus# Tue May  6 14:40:57 2014 - uWSGI worker 1 screams: UAAAAAAH my master disconnected: i will kill myself !!!
Tue May  6 14:40:57 2014 - uWSGI worker 2 screams: UAAAAAAH my master disconnected: i will kill myself !!!

我运行这个命令:

uwsgi my_application.ini

我的uwsgi版本现在是2.0.4;

我是不是漏掉了什么步骤?非常感谢你的帮助

相关内容