Почему uwsgi ругается и удаляет инстанции?

Я впервые пытаюсь запустить проект django на своем VPS. Я следовал пошаговому руководству в блоге (спасибо хорошему парню на канале #django на liberachat). Настройка включает в себя uWSGI и nginx. Файлы проекта django находятся по адресу /srv/www/site/*. Конфигурация uwsgi находится по адресу /etc/uwsgi.d/mysite.com.ini, а конфигурация nginx находится по адресу /etc/nginx/conf.d/mysite.com.conf.

Вот что происходит, когда я запускаю uwsgi (systemctl start uwsgi):

Jul 29 14:35:09 mysite.com uwsgi[6998]: [uWSGI] getting INI configuration from mysite.com.ini
Jul 29 14:35:09 mysite.com uwsgi[6318]: Fri Jul 29 14:35:09 2022 - [emperor] curse the uwsgi instance mysite.com.ini (pid: 6998)
Jul 29 14:35:09 mysite.com uwsgi[6318]: Fri Jul 29 14:35:09 2022 - [emperor] removed uwsgi instance mysite.com.ini

Как мне интерпретировать и исправить это?

содержание файла /etc/uwsgi.d/mysite.com.ini:

procname-master = demosite

# Now paths can be specified relative to here.
chdir = /srv/www/

# allow nginx
uid = 981
gid = 981
chmod-socket = 644

socket = server.sock
# Task management
; Max 4 processes
processes = 2
; Each running 4 threads
threads = 2
; Reduce to 1 process when quiet
cheaper = 1
; Save some memory per thread
thread-stack-size = 512

# Logging
plugin = logfile
; Log request details here
req-logger = file:logs/request.log
; Log other details here
logger = file:logs/error.log
log-x-forwarded-for = true

# Python app
plugin = python3
; Activate this virtualenv
virtualenv = venv/
; Add this dir to PYTHONPATH so Python can find our code
pythonpath = site/
; The WSGI module to load
module = mysite.wsgi

# Don't load the app in the Master - saves memory in quiet times
lazy-apps = true

содержание /etc/nginx/conf.d/mysite.conf:

# Allow gzip compression
gzip_types text/css application/json application/x-javascript;
gzip_comp_level 6;
gzip_proxied any;
# Look for files with .gz to serve pre-compressed data
gzip_static on;

server {
    listen 80;

    # The hostname(s) of my site
    server_name mysite.com;

    # Where to look for content (static and media)
    root    /srv/www/html/;

    # Defines the connection for talking to our Django app service
    location @proxy {
        # Pass other requests to uWSGI
        uwsgi_pass unix://srv/www/server.sock;
        include uwsgi_params;
    }

    # nginx docs recommend try_files over "if"
    location    /   {
        # Try to serve existing files first
        #try_files $uri @proxy =404;
        root /srv/www/html/;
    }
}

Что я пропустил?

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