Gunicorn fails to start - 'Job for gunicorn.socket failed'

I’m on Ubuntu 19.04 - is this the problem?

I’ve followed this tutorial:

And once I get to the part about starting Gunicorn, I’ve added the commands to gunicorn.socket and gunicorn.service, but following the ‘sudo systemctl start gunicorn.socket’ command, I get an error - 'Job for gunicorn.socket failed.

It asks me to check the status of the socket for details:

 gunicorn.socket - gunicorn socket
   Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled; vendor preset: enabled)
   Active: inactive (dead)
   Listen: /run/gunicorn.sock (Stream)


Description=gunicorn daemon

ExecStart=/home/phillyharper/versal/versalenv/bin/gunicorn \
          --access-logfile - \
          --workers 3 \
          --bind unix:/run/gunicorn.sock \



Description=gunicorn socket



Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I had the same issue with the 18.04 instructions. Try using the Systemd instructions on this page instead:

Hey I think I have fixed this.

So the problem was path related. I added one additional folder to working directory of gunicorn.service so it could find my module wsgi.


Same problem here… thanks for posting