django nginx gunicorn,, start: Job failed to start -


every 1 trying deploying django project using nginx gunicorn,,but when run

sudo service gunicorn start, said, start: job failed start,

here working path,, enter image description here

the gunicorn.conf file

/etc/init/gunicorn.conf

description "gunicorn application server handling myproject"  start on runlevel [2345] stop on runlevel [!2345]  respawn setuid user setgid www-data chdir /home/parallels/books/mysite   exec myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/parallels/books/mysite/mysite.sock mysite.wsgi:application 

when run

gunicorn --bind 0.0.0.0:8000 mysite.wsgi:application

i can see mysite running

enter image description here

but when try

sudo service gunicorn start

fail,,, enter image description here following instruction here

any 1 can reply thank much

i know late, in case:

  1. in gunicorn.conf see setuid user there user parallels in prompt (it depends of bash settings, name of curent user).
  2. there chdir /home/parallels/books/mysite , exec myprojectenv/bin/gunicorn , guess gunicorn location not /home/parallels/books/mysite/myprojectenv/bin/gunicorn. need use appropriate path run gunicorn.

check gunicorn log file find out problems. should here /var/log/upstart/gunicorn.log


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -