502 Bad Gateway / gunicorn.socket: Failed with result 'service-start-limit-hit' | Django, Postgres, Nginx, Gunicorn ,Ubuntu 20.04

Я прошел через инструкцию - https://arctype.com/blog/install-django-ubuntu/

Результат 502 BadGateway

root@1104941-ch54462:~/django_project# systemctl status gunicorn.socket
● gunicorn.socket - gunicorn socket
     Loaded: loaded (/etc/systemd/system/gunicorn.socket; enabled; vendor preset: enabled)
     Active: failed (Result: service-start-limit-hit) since Tue 2022-11-15 16:21:55 MSK; 5s ago
   Triggers: ● gunicorn.service
     Listen: /run/gunicorn.sock (Stream)

Nov 15 16:21:37 1104941-ch54462.tmweb.ru systemd[1]: Listening on gunicorn socket.
Nov 15 16:21:55 1104941-ch54462.tmweb.ru systemd[1]: gunicorn.socket: Failed with result 'service-start-limit-hit'.
2022/11/15 16:17:35 [error] 11517#11517: *2 connect() to unix:/run/gunicorn.sock failed (111: Connection refused) while connecting to upstream, client: 195.224.49.226, server: 1104941-ch54462.tmweb.ru, request: "GET /admin HTTP/1.1", upstream: "http://unix:/run/gunicorn.sock:/admin", host: "1104941-ch54462.tmweb.ru"
2022/11/15 16:20:54 [error] 11517#11517: *5 connect() to unix:/run/gunicorn.sock failed (111: Connection refused) while connecting to upstream, client: 195.224.49.226, server: 1104941-ch54462.tmweb.ru, request: "GET /admin HTTP/1.1", upstream: "http://unix:/run/gunicorn.sock:/admin", host: "1104941-ch54462.tmweb.ru"
2022/11/15 16:21:07 [alert] 11517#11517: *7 open socket #14 left in connection 4
2022/11/15 16:21:07 [alert] 11517#11517: aborting
2022/11/15 16:21:55 [error] 11599#11599: *2 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 195.224.49.226, server: 1104941-ch54462.tmweb.ru, request: "GET /admin HTTP/1.1", upstream: "http://unix:/run/gunicorn.sock:/admin", host: "1104941-ch54462.tmweb.ru"

В чем проблема?

Вернуться на верх