另一个链接: Gunicorn主管启动错误 Here is my gonicorn.conf, but I can't seem to get the command right. The command Im trying is working when I type it in the command line, but not as an Supervisor command.[program:gunicorn]directory = /home/USER/.virtualenvs/SITE/myApp/command=/home/USER/.virtualenvs/SITE/bin/python /home/USER/.virtualenvs/SITE/myApp/manage.py run_gunicorn myApp.wsgi:application -c /home/USER/.virtualenvs/SITE/myApp/gunicorn.conf.pyuser = USERautostart = trueautorestart = trueredirect_stderr = truestdout_logfile = /home/USER/logs/gunicorn.logstderr_logfile = /home/USER/logs/gunicorn_err.logWhat is the correct command for gunicorn?Here is the error Im getting when I try to start gunicorn:/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/sorl/thumbnail/helpers.py:5: DeprecationWarning: django.utils.simplejson is deprecated; use json instead. from django.utils import simplejson2013-02-25 13:46:55 [3975] [INFO] Starting gunicorn 0.17.22013-02-25 13:46:55 [3975] [INFO] Listening at: http://127.0.0.1:8000 (3975)2013-02-25 13:46:55 [3975] [INFO] Using worker: sync2013-02-25 13:46:55 [3988] [INFO] Booting worker with pid: 39882013-02-25 13:46:55 [3988] [ERROR] Exception in worker process:Traceback (most recent call last): File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 485, in spawn_worker worker.init_process() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_process self.wsgi = self.app.wsgi() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 103, in wsgi self.callable = self.load() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/djangoapp.py", line 133, in load return mod.make_command_wsgi_application(self.admin_media_path) File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/django_wsgi.py", line 113, in make_command_wsgi_application reload_django_settings() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/django_wsgi.py", line 109, in reload_django_settings logging_config_func(settings.LOGGING) File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig dictConfigClass(config).configure() File "/usr/lib/python2.7/logging/config.py", line 503, in configure raise ValueError("dictionary doesn't specify a version")ValueError: dictionary doesn't specify a versionTraceback (most recent call last): File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 485, in spawn_worker worker.init_process() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 100, in init_process self.wsgi = self.app.wsgi() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 103, in wsgi self.callable = self.load() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/djangoapp.py", line 133, in load return mod.make_command_wsgi_application(self.admin_media_path) File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/django_wsgi.py", line 113, in make_command_wsgi_application reload_django_settings() File "/home/USERNAME/.virtualenvs/SITE/local/lib/python2.7/site-packages/gunicorn/app/django_wsgi.py", line 109, in reload_django_settings logging_config_func(settings.LOGGING) File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig dictConfigClass(config).configure() File "/usr/lib/python2.7/logging/config.py", line 503, in configure raise ValueError("dictionary doesn't specify a version")ValueError: dictionary doesn't specify a version 解决方案 [program:projectname_gunicorn_live]command=/home/myusername/projectname-live/bin/django run_gunicorn -b 127.0.0.1:1559directory=/home/myusername/projectname-live/user=myusernameautostart=Trueautorestart=Trueredirect_stderr=TrueLink: https://gist.github.com/oaksakal/1143612Another Link: Gunicorn Supervisor Startup Error 这篇关于为gunicorn创建监督脚本的正确方法? Django 1.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 06-29 05:24