Всем здравия!
Возникла проблема:
service uwsgi status project_name
* could not access PID file for uwsgi
В чём может быть проблема и способы решения? :)
/etc/uwsgi/apps-avalible/project_name.ini :
[uwsgi]
workers = 4
processes = 4
master = true
autoload = true
chmod-socket = 660
socket = /run/uwsgi/project_name.sock
pidfile = /run/uwsgi/project_name.pid
pythonpath = /home/www/project_name
module = project_name.wsgi
env = DJANGO_SETTINGS_MODULE=project_name.settings
harakiri = 30
no-orphans = true
reload-mercy = 8
max-requests = 5000
buffer-size = 32768
daemonize = /var/log/uwsgi/project_name.log
log-date = true
uid = www-data
gid = www-data
/etc/nginx/sites-avalible/project_name :
server {
listen 80;
server_name pre.project_name.ru www.pre.project_name.ru;
access_log /var/log/nginx/project_name-access.log;
error_log /var/log/nginx/project_name-error.log;
root /home/www/project_name/;
location /
{
uwsgi_pass unix:///run/uwsgi/project_name.sock;
include uwsgi_params;
uwsgi_buffers 8 128k;
}
location /static/ {
alias /home/www/project_name/static/;
expires 30d;
}
location /media/ {
alias /home/www/project_name/media/;
}
location /admin/ {
uwsgi_pass unix:///run/uwsgi/project_name.sock;
include uwsgi_params;
access_log /var/log/nginx/project_name-admin-access.log;
}
}