Gunicorn Service no such file or directory

January 11, 2019 105 views
Django Ubuntu 18.04

Hello guys i followed the tutorial down to the teeth but still having this one error i can not get rid of

my gunicorn.service

[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
RequiresMountsFor=/home/tom/projects/muzilla/muzillaenv/bin

[Service]


User=tom
Group=www-data
WorkingDirectory=/home/tom/projects/muzilla
ExecStart=/home/tom/projects/muzilla/muzillaenv/gunicorn \
          --access-logfile - \
          --workers 3 \
          --bind unix:/run/gunicorn.sock \
          muzillat.wsgi:application


[Install]
WantedBy=multi-user.target

The error I'm getting

Jan 11 15:01:10 vmi234115.contaboserver.net systemd[1]: Started gunicorn daemon.
Jan 11 15:01:10 vmi234115.contaboserver.net systemd[10533]: gunicorn.service: Failed to execute command: No such file or directory
Jan 11 15:01:10 vmi234115.contaboserver.net systemd[10533]: gunicorn.service: Failed at step EXEC spawning /home/tom/projects/muzilla/muzillaenv/gunicorn: No such file or directory
Jan 11 15:01:10 vmi234115.contaboserver.net systemd[1]: gunicorn.service: Main process exited, code=exited, status=203/EXEC
Jan 11 15:01:10 vmi234115.contaboserver.net systemd[1]: gunicorn.service: Failed with result 'exit-code'.

1 Answer

Hey friend,

Interesting. What is the output of these commands, provided it's not sensitive data for you:

stat /home/tom/projects/muzilla/muzillaenv/gunicorn
ls /home/tom/projects/muzilla/muzillaenv/gunicorn

Jarland

Have another answer? Share your knowledge.