无法通过主管配置uwgi“uwsgi:uwsgi_00:ERROR(spawn error)”

我用uwsgi和nginx运行
django应用程序.我正在使用uwsgi
python包手动配置uwsgi.现在我需要切换到supervisor来运行uwsgi进程.我创建了supervisor配置并启动了uwsgi进程并且该站点正在运行但是当我使用supervisorctl命令启动uwsgi进程时出现以下错误

uwsgi:uwsgi_00: ERROR (spawn error)

但是在服务器中创建了8个进程.我不知道为什么我会收到这个错误.

我正在附加我的supervisor配置和uwsgi.ini文件

[program:uwsgi]
command=/var/www/django/virtual/bin/uwsgi --ini /var/www/django/uwsgi.ini 
user=root
process_name = %(program_name)s_%(process_num)02d
autostart=true
autorestart=true
stderr_logfile=/var/www/django/super.log
stdout_logfile=/var/www/django/super.log

Uwsgi.ini文件

[uwsgi]
 master          = true 
 socket          = /tmp/uwsgi.sock
 chmod-socket    = 666
 chdir           = /var/www/django/webserver_test
 wsgi-file       = /var/www/django/webserver_test/Django_app/wsgi.py
 virtualenv      = /var/www/django/virtual
 pythonpath      = /var/www/django/virtual/bin/python
 vacuum          = true
 enable-threads  = true
 daemonize= /var/www/django/uwsgi.log

主管错误日志:

2017-05-29 09:49:50,953 INFO spawned: ‘uwsgi_00’ with pid 20819
2017-05-29 09:49:50,978 INFO exited: uwsgi_00 (exit status 0; not expected)
2017-05-29 09:49:51,979 INFO gave up: uwsgi_00 entered FATAL state, too many start retries too quickly
2017-05-29 10:01:52,874 INFO spawned: ‘uwsgi_00’ with pid 20993
2017-05-29 10:01:52,906 INFO exited: uwsgi_00 (exit status 0; not expected)
2017-05-29 10:01:53,914 INFO spawned: ‘uwsgi_00’ with pid 20998
2017-05-29 10:01:53,932 INFO exited: uwsgi_00 (exit status 0; not expected)
2017-05-29 10:01:55,941 INFO spawned: ‘uwsgi_00’ with pid 21005
2017-05-29 10:01:55,966 INFO exited: uwsgi_00 (exit status 0; not expected)
2017-05-29 10:01:58,976 INFO spawned: ‘uwsgi_00’ with pid 21013
2017-05-29 10:01:58,994 INFO exited: uwsgi_00 (exit status 0; not expected)
2017-05-29 10:01:59,995 INFO gave up: uwsgi_00 entered FATAL state, too many start retries too quickly

服务器配置为1核,2GB RAM

最佳答案 找到了解决方案,我在uwsgi配置中给了daemonize.主管守护自己.所以uwsgi和主管之间存在冲突.我删除uwsgi配置的“daemonize = /var/www/django/uwsgi.log”,这解决了这个问题.

点赞