G
G
gromyko212020-10-01 14:15:19
Django
gromyko21, 2020-10-01 14:15:19

FATAL Exited too quickly (process log may have details) ngins?

Good afternoon. I'm trying to remove the port from the url address on the hosting and set up statics. I do everything according to the lesson https://www.youtube.com/watch?v=mp4rwP7Ny_A&t=1141s .
But an error occurred when I checked with the sudo supervisorctl status command (I did update beforehand)

FATAL Exited too quickly (process log may have details)

Everything works with the port, removing the port leaves Welcome to nginx!
gunicorn.conf.py
bind = '<id хостинга>:8000'
workers = 2
timeout = 60

supervisor file:
[program:tnmk]
command = /venv/bin/gunicorn tnmk.wsgi:application -c /tnmk/config/gunicorn.conf.py
directory = /tnmk
autorestart = true
redirect_stderr = true
stdout_logfile = /tnmk/logs/debug.logs

Settings in sudo nano /etc/nginx/sites-available/default command

server {
        listen 80;
        server_name <id сервера>;
        access_log /var/log/nginx/access.log;

        location /static/ {
                root /tnmk;
                expires 30d;
        }
        location /media/ {
                root /tnmk;
                expires 30d;
        }
        location / { proxy_pass http://127.0.0.1:8000;
                proxy_set_header Host $server_name;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}

There are suspicions that the error may be due to the fact that I did not create a user.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question