Deploying a django project to my droplet I encounter a gunicorn issue:
curl --unix-socket /run/gunicorn.sock localhost curl: (56) Recv failure: Connection reset by peer
This error is raised when by the command:
curl --unix-socket /run/gunicorn.sock localhost
According to online forums, this issue is related to the path of my gunicon. gunicron-path
However, my gunicron is set exactly by this path:
That is the file -
sudo nano /etc/systemd/system/gunicorn.service
[Unit] Description=gunicorn daemon Requires=gunicorn.socket After=network.target [Service] User=nuser Group=www-data WorkingDirectory=/home/nuser/pipit ExecStart=/home/nuser/pipit/.venv/bin/gunicorn \ --access-logfile - \ --workers 3 \ --bind unix:/run/gunicorn.sock \ pipit.wsgi:application [Install] WantedBy=multi-user.target
Any advise as on how I can fix it would be highly appreciated.
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!
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.