После установки личного кабинета 404 Not Found

MaxRAF

Member
Здравствуйте.

По инструкции установил личный кабинет

Bash:
[root@centos-2gb-hel1-1 html]# systemctl status cabinet cabinet_ipinfo cabinet_attack_nottification cabinet_vts
● cabinet.service - Init script for the Nemesida WAF Personal Cabinet
   Loaded: loaded (/usr/lib/systemd/system/cabinet.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-10-06 03:28:54 CEST; 23h ago
 Main PID: 929 (uwsgi)
    Tasks: 5
   Memory: 0B
   CGroup: /system.slice/cabinet.service
           ├─ 929 /var/www/app/venv/bin/uwsgi --ini /var/www/app/cabinet.ini
           ├─1575 /var/www/app/venv/bin/uwsgi --ini /var/www/app/cabinet.ini
           ├─1576 /var/www/app/venv/bin/uwsgi --ini /var/www/app/cabinet.ini
           ├─1577 /var/www/app/venv/bin/uwsgi --ini /var/www/app/cabinet.ini
           └─1578 /var/www/app/venv/bin/uwsgi --ini /var/www/app/cabinet.ini

Oct 06 03:28:54 centos-2gb-hel1-1 systemd[1]: Started Init script for the Nemesida WAF Personal Cabinet.
Oct 06 03:28:54 centos-2gb-hel1-1 cabinet[929]: [uWSGI] getting INI configuration from /var/www/app/cabinet.ini

● cabinet_ipinfo.service - Cabinet ip information Service
   Loaded: loaded (/usr/lib/systemd/system/cabinet_ipinfo.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-10-06 03:28:58 CEST; 23h ago
 Main PID: 1601 (python3)
    Tasks: 1
   Memory: 0B
   CGroup: /system.slice/cabinet_ipinfo.service
           └─1601 /var/www/app/venv/bin/python3 /var/www/app/main/eventloop/mem_ip.py

Oct 06 03:28:58 centos-2gb-hel1-1 systemd[1]: Started Cabinet ip information Service.

● cabinet_attack_nottification.service - Attack notify
   Loaded: loaded (/usr/lib/systemd/system/cabinet_attack_nottification.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-10-06 03:28:58 CEST; 23h ago
 Main PID: 1607 (python3)
    Tasks: 1
   Memory: 0B
   CGroup: /system.slice/cabinet_attack_nottification.service
           └─1607 /var/www/app/venv/bin/python3 /var/www/app/main/eventloop/attack_notify.py

Oct 06 03:28:58 centos-2gb-hel1-1 systemd[1]: Started Attack notify.

● cabinet_vts.service - VTS Service
   Loaded: loaded (/usr/lib/systemd/system/cabinet_vts.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-10-06 03:28:58 CEST; 23h ago
 Main PID: 1599 (python3)
    Tasks: 1
   Memory: 0B
   CGroup: /system.slice/cabinet_vts.service
           └─1599 /var/www/app/venv/bin/python3 /var/www/app/main/eventloop/vtsr.py

Ввожу https://95.216.212.203/waf/personal/ и получаю 404 Not Found. error.log ссылает на несуществующий путь
Bash:
2020/10/07 03:18:02 [error] 4617#4617: *360 "/etc/nginx/html/waf/personal/index.html" is not found (2: No such file or directory), client: xx.xx.xx.xx, server: max-ko.site, request: "GET /waf/personal/ HTTP/1.1", host: "95.216.212.203"
Помогите пожалуйста разобраться в причине.
 

support

Well-known member
Staff member
Добрый день,

покажите пожалуйста файл настроек виртуального хоста для Личного кабинета Nemesida WAF.
 
Last edited:

MaxRAF

Member
Добрый день.

cabinet.conf
NGINX:
##########################################
## Nemesida WAF Cabinet
##########################################

## Cabinet proxy
server {

        listen  0.0.0.0:80;
        charset utf-8;


        location / {
                return 301 /waf/personal/;
        }

        location /waf/personal/static/ {
                alias /var/www/app/main/static/;
        }

        location /waf/personal/ {
                proxy_pass      http://127.0.0.1:8888/;
                include         proxy_params;
        }

}
##########################################


##########################################
## Cabinet upstream
##########################################

server {

        listen  127.0.0.1:8888;

        location / {
                uwsgi_pass      django;
                include         uwsgi_params;
        }

}

upstream django {
        server unix:/var/www/app/cabinet.sock;
 

support

Well-known member
Staff member
Добрый день,

вы обращаетесь к HTTPS (443 порт), в файле настроек виртуального хоста для Личного кабинета Nemesida WAF у вас настроен HTTP (80 порт).
 

MaxRAF

Member
Здравствуйте.

В любом случае nginx пытается обращаться по пути

Bash:
2020/10/12 06:31:44 [error] 20345#20345: *320 "/etc/nginx/html/waf/personal/index.html" is not found (2: No such file or directory), client: 31.200.xx.xx, server: localhost, request: "GET /waf/personal/ HTTP/1.1", host: "cp201.xxxx.ru"
 

support

Well-known member
Staff member
Здравствуйте.

В любом случае nginx пытается обращаться по пути

Bash:
2020/10/12 06:31:44 [error] 20345#20345: *320 "/etc/nginx/html/waf/personal/index.html" is not found (2: No such file or directory), client: 31.200.xx.xx, server: localhost, request: "GET /waf/personal/ HTTP/1.1", host: "cp201.xxxx.ru"
Добрый день,
у вас настроены еще виртуальные хосты на 80 порт? Обращение в вашем логе идет по пути /etc/nginx/html/, в cabinet.conf такой путь не задан.
 

MaxRAF

Member
Да, хостов на 80 и 443 порту много.

Буду признателен, если подскажете решение с путями.
 

support

Well-known member
Staff member
Да, хостов на 80 и 443 порту много.

Буду признателен, если подскажете решение с путями.
В файле виртуального хоста для Личного кабинета Nemesida WAF определите доменное имя, воспользовавшись параметром server_name. Сочетание значений параметров server_name и listen, должно быть уникально для сервера.
 

MaxRAF

Member
На форуме длина сообщения не более 1000 символов, поэтому логи разместил на pastebin.

[root@cp201 app]# systemctl status nginx.service nwaf_update.service nw-api cabinet cabinet_ipinfo cabinet_attack_nottification cabinet_vts


Логи после перезапуска этих сервисов [root@cp201 conf.d]# tail -f /var/log/nginx/error.log

cabinet.conf

nwaf-api.conf

nwaf.conf

settings.py

Я понимаю, что где-то сделал неправильно, потому что если устанавливать всё по вашему мануалу на чистый хост, то всё отлично работает. Но вот на рабочем хосте такие загвоздки.
 

support

Well-known member
Staff member
На форуме длина сообщения не более 1000 символов, поэтому логи разместил на pastebin.

[root@cp201 app]# systemctl status nginx.service nwaf_update.service nw-api cabinet cabinet_ipinfo cabinet_attack_nottification cabinet_vts


Логи после перезапуска этих сервисов [root@cp201 conf.d]# tail -f /var/log/nginx/error.log

cabinet.conf

nwaf-api.conf

nwaf.conf

settings.py

Я понимаю, что где-то сделал неправильно, потому что если устанавливать всё по вашему мануалу на чистый хост, то всё отлично работает. Но вот на рабочем хосте такие загвоздки.
Добрый день,

опишите пожалуйста, что у вас не работает.
 

MaxRAF

Member
Я попадаю на страницу личного кабинета. Всё хорошо - работает. Но после ввода логина и пароля, а затем нажатия на LOGIN получаю ошибку Server Error (500)

Скриншот https://yadi.sk/i/P3CX8CO_223aGg
 

support

Well-known member
Staff member
Я попадаю на страницу личного кабинета. Всё хорошо - работает. Но после ввода логина и пароля, а затем нажатия на LOGIN получаю ошибку Server Error (500)

Скриншот https://yadi.sk/i/P3CX8CO_223aGg
Воспроизведите пожалуйста ошибку и пришлите после этого лог /var/log/uwsgi/cabinet/app.log.
 

MaxRAF

Member
Воспроизвёл ошибку, если вас правильно понял, то зашел на страницу ввода логина и пароля, ввёл логин и пароль, затем нажал LOGIN и появилась страница с ошибкой
Server Error (500)

В лог при этом ничего не записалось:
Bash:
# tail -f /var/log/uwsgi/cabinet/app.log
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x13b1c60 pid: 1147
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 11476)
spawned uWSGI worker 1 (pid: 11483, cores: 1)
spawned uWSGI worker 2 (pid: 11484, cores: 1)
spawned uWSGI worker 3 (pid: 11485, cores: 1)
spawned uWSGI worker 4 (pid: 11486, cores: 1)
Полный лог

Bash:
]# cat /var/log/uwsgi/cabinet/app.log
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Oct 12 06:21:01 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x2530c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x2530c60 pid: 19054 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 19054)
spawned uWSGI worker 1 (pid: 19141, cores: 1)
spawned uWSGI worker 2 (pid: 19142, cores: 1)
spawned uWSGI worker 3 (pid: 19143, cores: 1)
spawned uWSGI worker 4 (pid: 19144, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket /var/www/app/cabinet.sock removed.
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Oct 12 06:24:34 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x1334c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1334c60 pid: 19763 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 19763)
spawned uWSGI worker 1 (pid: 19769, cores: 1)
spawned uWSGI worker 2 (pid: 19770, cores: 1)
spawned uWSGI worker 3 (pid: 19771, cores: 1)
spawned uWSGI worker 4 (pid: 19772, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket /var/www/app/cabinet.sock removed.
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Oct 12 06:50:40 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x10b8c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x10b8c60 pid: 24945 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 24945)
spawned uWSGI worker 1 (pid: 24949, cores: 1)
spawned uWSGI worker 2 (pid: 24950, cores: 1)
spawned uWSGI worker 3 (pid: 24951, cores: 1)
spawned uWSGI worker 4 (pid: 24952, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket /var/www/app/cabinet.sock removed.
*** Starting uWSGI 2.0.19.1 (64bit) on [Tue Oct 13 04:04:35 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x13b1c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x13b1c60 pid: 11476 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 11476)
spawned uWSGI worker 1 (pid: 11483, cores: 1)
spawned uWSGI worker 2 (pid: 11484, cores: 1)
spawned uWSGI worker 3 (pid: 11485, cores: 1)
spawned uWSGI worker 4 (pid: 11486, cores: 1)
 
Last edited:

support

Well-known member
Staff member
Воспроизвёл ошибку, если вас правильно понял, то зашел на страницу ввода логина и пароля, ввёл логин и пароль, затем нажал LOGIN и появилась страница с ошибкой
Server Error (500)

В лог при этом ничего не записалось:
Bash:
# tail -f /var/log/uwsgi/cabinet/app.log
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x13b1c60 pid: 1147
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 11476)
spawned uWSGI worker 1 (pid: 11483, cores: 1)
spawned uWSGI worker 2 (pid: 11484, cores: 1)
spawned uWSGI worker 3 (pid: 11485, cores: 1)
spawned uWSGI worker 4 (pid: 11486, cores: 1)
Полный лог

Bash:
]# cat /var/log/uwsgi/cabinet/app.log
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Oct 12 06:21:01 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x2530c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x2530c60 pid: 19054 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 19054)
spawned uWSGI worker 1 (pid: 19141, cores: 1)
spawned uWSGI worker 2 (pid: 19142, cores: 1)
spawned uWSGI worker 3 (pid: 19143, cores: 1)
spawned uWSGI worker 4 (pid: 19144, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket /var/www/app/cabinet.sock removed.
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Oct 12 06:24:34 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x1334c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1334c60 pid: 19763 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 19763)
spawned uWSGI worker 1 (pid: 19769, cores: 1)
spawned uWSGI worker 2 (pid: 19770, cores: 1)
spawned uWSGI worker 3 (pid: 19771, cores: 1)
spawned uWSGI worker 4 (pid: 19772, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket /var/www/app/cabinet.sock removed.
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Oct 12 06:50:40 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x10b8c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x10b8c60 pid: 24945 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 24945)
spawned uWSGI worker 1 (pid: 24949, cores: 1)
spawned uWSGI worker 2 (pid: 24950, cores: 1)
spawned uWSGI worker 3 (pid: 24951, cores: 1)
spawned uWSGI worker 4 (pid: 24952, cores: 1)
SIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
worker 2 buried after 1 seconds
worker 3 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
VACUUM: unix socket /var/www/app/cabinet.sock removed.
*** Starting uWSGI 2.0.19.1 (64bit) on [Tue Oct 13 04:04:35 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 October 2020 03:20:56
os: Linux-3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019
nodename: cpxx.yyyyyy.ru
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /var/www/app
detected binary path: /var/www/app/venv/bin/uwsgi
your processes number limit is 127562
your memory page size is 4096 bytes
*** WARNING: you have enabled harakiri without post buffering. Slow upload could be rejected on post-unbuffered webservers ***
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/www/app/cabinet.sock fd 8
Python version: 3.6.8 (default, Apr  2 2020, 13:34:55)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x13b1c60
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 364600 bytes (356 KB) for 4 cores
*** Operational MODE: preforking ***
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x13b1c60 pid: 11476 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 11476)
spawned uWSGI worker 1 (pid: 11483, cores: 1)
spawned uWSGI worker 2 (pid: 11484, cores: 1)
spawned uWSGI worker 3 (pid: 11485, cores: 1)
spawned uWSGI worker 4 (pid: 11486, cores: 1)
Попробуйте установить параметр "DEBUG = True" в файле /var/www/app/cabinet/settings.py и перезапустить сервисы. Также проверьте что указанный пользователь для базы данных имеет доступ к таблицам.
 

MaxRAF

Member
Добрый день.

Результат:
Code:
Environment:


Request Method: GET
Request URL: http://nwaf-cabinet.xxxx.ru/

Django Version: 2.2.9
Python Version: 3.6.8
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'main',
 'fadmin',
 'report']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'fadmin.middleware.AclMiddleware']



Traceback:

File "/var/www/app/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/var/www/app/venv/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  115.                 response = self.process_exception_by_middleware(e, request)

File "/var/www/app/venv/lib64/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  113.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/var/www/app/venv/lib64/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)

File "./main/decorators.py" in wrapper
  21.             return func(request, start_date, end_date, *args, **kwargs)

File "./main/views.py" in home
  256.         main = get_main_logs(main, ml_table, waf_mode, mcache)

File "./main/common.py" in get_main_logs
  125.         get_location_from_remote(mcache, ip)

File "./main/common.py" in get_location_from_remote
  249.         c = mcache.get(i)

File "/var/www/app/venv/lib64/python3.6/site-packages/pymemcache/client/base.py" in get
  496.         return self._fetch_cmd(b'get', [key], False).get(key, default)

File "/var/www/app/venv/lib64/python3.6/site-packages/pymemcache/client/base.py" in _fetch_cmd
  861.                 self._connect()

File "/var/www/app/venv/lib64/python3.6/site-packages/pymemcache/client/base.py" in _connect
  296.             sock.connect(self.server)

Exception Type: ConnectionRefusedError at /
Exception Value: [Errno 111] Connection refused
 

MaxRAF

Member
Если нужна сохраненная страница полностью, то скажите куда можно её отправить.
 

support

Well-known member
Staff member
Добрый день,

мы не смогли воспроизвести вашу проблему, проверьте пожалуйста не блокируются ли на сервере обращения к Memcache (127.0.0.1:11211).
 
Last edited:
Top