title: django nginx gunicorn,, start: Job failed to start
body: <p>every one I am trying to deploying django project using nginx gunicorn,,but when I run </p>
  
  <p>sudo service gunicorn start,
  it said, 
   start: Job failed to start,</p>
  
  <p>here it the working path,,
  <a href="https://i.stack.imgur.com/AazH0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AazH0.png" alt="enter image description here"></a></p>
  
  <p>the gunicorn.conf file</p>
  
  <blockquote>
    <p>/etc/init/gunicorn.conf</p>
  </blockquote>
  
  <pre><code>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
  </code></pre>
  
  <p>when I run </p>
  
  <blockquote>
    <p>gunicorn --bind 0.0.0.0:8000 mysite.wsgi:application</p>
  </blockquote>
  
  <p>I can see  mysite running</p>
  
  <p><a href="https://i.stack.imgur.com/j46jK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j46jK.png" alt="enter image description here"></a></p>
  
  <p>but when I try </p>
  
  <blockquote>
    <p>sudo service gunicorn start</p>
  </blockquote>
  
  <p>fail,,,
  <a href="https://i.stack.imgur.com/t1lni.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t1lni.png" alt="enter image description here"></a>
  I just <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-14-04" rel="nofollow noreferrer">following the instruction here</a></p>
  
  <p>any one who can reply thank you very much</p>