Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Help with gunicorn.service file setup on Ubuntu 18.04?
Hi there, I have been following the Gunicorn/Django tutorial to set up the Gunicorn service on Ubuntu 18.04 and keep getting errors. The gunicorn.service file contains as set out below:
–access-logfile - \
–workers 3 \
–bind unix:/run/gunicorn.sock \
However, when doing a systemctl status gunicorn check results in the following errors:
● gunicorn.service - gunicorn daemon
Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-11-17 09:10:07 UTC; 38s ago
Process: 18487 ExecStart=/home/garryjw/bin/gunicorn –access-logfile - –workers 3 –bind unix:/run/gunicorn.sock portfolio.wsgi:application (code=exited, status
Main PID: 18487 (code=exited, status=203/EXEC)
Nov 17 09:10:07 djangowalaw systemd: Started gunicorn daemon.
Nov 17 09:10:07 djangowalaw systemd: gunicorn.service: Failed to execute command: No such file or directory
Nov 17 09:10:07 djangowalaw systemd: gunicorn.service: Failed at step EXEC spawning /home/garryjw/bin/gunicorn: No such file or directory
Nov 17 09:10:07 djangowalaw systemd: gunicorn.service: Main process exited, code=exited, status=203/EXEC
Nov 17 09:10:07 djangowalaw systemd: gunicorn.service: Failed with result ‘exit-code’.
Nov 17 09:10:07 djangowalaw systemd: gunicorn.service: Start request repeated too quickly.
Nov 17 09:10:07 djangowalaw systemd: gunicorn.service: Failed with result 'exit-code’.
Nov 17 09:10:07 djangowalaw systemd: Failed to start gunicorn daemon.
Anyone able to help?
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.×