@ShudryD

Не подключается django проект, выводит 404?

Не подключается django проект, выводит страницу 404 с nginx.
Возможно проблема в gunicorn, так как при запуске выводит:
start: Unknown job: gunicorn
Но при этом логи есть в gunicorn.conf

Лог supervisor`a :
2017-02-23 15:00:50,393 CRIT Supervisor running as root (no user in config file)
2017-02-23 15:00:50,393 WARN Included extra file "/etc/supervisor/conf.d/Shudry_Project.conf" during parsing
2017-02-23 15:00:50,393 INFO RPC interface 'supervisor' initialized
2017-02-23 15:00:50,393 WARN cElementTree not installed, using slower XML parser for XML-RPC
2017-02-23 15:00:50,394 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2017-02-23 15:00:50,394 INFO supervisord started with pid 850
2017-02-23 15:00:51,395 INFO spawned: 'Shudry_Project' with pid 1289
2017-02-23 15:00:51,902 INFO exited: Shudry_Project (exit status 1; not expected)
2017-02-23 15:00:52,903 INFO spawned: 'Shudry_Project' with pid 1296
2017-02-23 15:00:53,593 INFO exited: Shudry_Project (exit status 1; not expected)
2017-02-23 15:00:55,596 INFO spawned: 'Shudry_Project' with pid 1301
2017-02-23 15:00:56,102 INFO exited: Shudry_Project (exit status 1; not expected)
2017-02-23 15:00:59,914 INFO spawned: 'Shudry_Project' with pid 1310
2017-02-23 15:01:00,474 INFO exited: Shudry_Project (exit status 1; not expected)
2017-02-23 15:01:01,476 INFO gave up: Shudry_Project entered FATAL state, too many start retries too quickly


Log nginx:


2017/02/23 14:22:59 [error] 438#0: *14 connect() failed (111: Connection refused) while connecting to upstream, client: %IP_ADRESS%, server: shudry.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:12345/", host: "shudry.com"
2017/02/23 14:27:19 [error] 438#0: *18 connect() failed (111: Connection refused) while connecting to upstream, client: %IP_ADRESS%, server: shudry.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:12345/", host: "shudry.com"
2017/02/23 14:29:36 [error] 438#0: *21 connect() failed (111: Connection refused) while connecting to upstream, client: %IP_ADRESS%, server: shudry.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:12345/", host: "shudry.com"
2017/02/23 14:30:27 [error] 446#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: %IP_ADRESS%, server: shudry.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:12345/", host: "shudry.com"
2017/02/23 14:30:27 [error] 446#0: *1 no live upstreams while connecting to upstream, client: %IP_ADRESS%, server: shudry.com, request: "GET / HTTP/1.1", upstream: "http://shudry.com/", host: "shudry.com"


Делал по уроку: как тутс
  • Вопрос задан
  • 295 просмотров
Пригласить эксперта
Ответы на вопрос 1
sim3x
@sim3x
мануал на хабре устарел на 6 лет
когда он был опубликован он уже устарел на 2 года

https://www.digitalocean.com/community/tutorials/h...
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы