S
S
ShudryD2017-02-23 23:41:39
Django
ShudryD, 2017-02-23 23:41:39

Django project not connecting, showing 404?

The django project does not connect, displays a 404 page from nginx.
Perhaps the problem is in gunicorn, because at startup it displays:
start: Unknown job: gunicorn
But at the same time, the logs are in gunicorn.conf The
supervisor log:

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"

Did according to the lesson: how toots

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-02-24
@sim3x

The Habré manual is 6 years out of date
when it was published it was already 2 years out of date
https://www.digitalocean.com/community/tutorials/h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question