Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6159

Gunicorn service is not working (inactive)

$
0
0

i am trying to run gunicorn on ubuntu and its my first time,

User=riffmartWorkingDirectory=/home/riffmart/riffmartExecStart=/home/riffmart/riffmart/myprojectenv/bin/gunicorn \          --access-logfile /var/log/gunicorn/access.log \          --error-logfile /var/log/gunicorn/error.log \          --workers 3 \          --bind unix:/run/gunicorn.sock \          MCSERVICE.wsgi:application

now i get the error

May 07 18:50:38 ubuntu-s-1vcpu-1gb-amd-fra1-01 systemd[1]: gunicorn.socket: Unit has no Listen setting (ListenStream=, ListenDatagram=, ListenFIFO=, ...). Refusing.May 07 18:54:11 ubuntu-s-1vcpu-1gb-amd-fra1-01 systemd[1]: gunicorn.socket: Dependency After=gunicorn.socket is dropped.May 07 18:54:11 ubuntu-s-1vcpu-1gb-amd-fra1-01 systemd[1]: /etc/systemd/system/gunicorn.socket:6: Unknown section 'Service'. Ignoring.

while using the sudo systemctl status gunicorn.service line it gives the following output :

○ gunicorn.service - gunicorn daemon     Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; preset: enabled)     Active: inactive (dead)TriggeredBy: ● gunicorn.socket

i have tried restarting the services multiple times but to no avail

also while using the restart service line sudo systemctl restart gunicornit gives following:

Failed to restart gunicorn.service: Unit gunicorn.socket has a bad unit file setting.See system logs and 'systemctl status gunicorn.service' for details.

Viewing all articles
Browse latest Browse all 6159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>