Page 1 of 1

Падает vestapanel каждую минуту. Сервер nginx+php-fpm

Posted: Wed Sep 26, 2018 6:39 pm
by Jano
Vesta падает каждую минуту, приходится вводить service vesta restart и она работает какое-то время, потом ошибка "502 Bad Gateway
nginx"

Сервер мощный, всех ресурсов хватает. Нагрузка нулевая.

Подскажите что делать, всё перепробовал в логах вот что:

Code: Select all

PHP message: PHP Notice:  Use of undefined constant VESTA_CMD - assumed 'VESTA_CMD' in /usr/local/vesta/web/softaculous/index.php on line 65
PHP message: PHP Notice:  Use of undefined constant VESTA_CMD - assumed 'VESTA_CMD' in /usr/local/vesta/web/softaculous/index.php on line 76
PHP message: PHP Warning:  array_keys() expects parameter 1 to be array, null given in /usr/local/vesta/web/softaculous/index.php on line 85" while reading response header from upstream, client: 127.0.0.1, server: _, request: "POST /softaculous/index.php?act=cp_api&api=serialize HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "127.0.0.1:8083"
2018/09/25 10:10:02 [error] 158044#0: *76 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: _SESSION in /usr/local/vesta/web/softaculous/index.php on line 27
PHP message: PHP Notice:  Undefined variable: _SESSION in /usr/local/vesta/web/softaculous/index.php on line 32
PHP message: PHP Notice:  Undefined variable: _SESSION in /usr/local/vesta/web/softaculous/index.php on line 35
PHP message: PHP Notice:  Undefined variable: _SESSION in /usr/local/vesta/web/softaculous/index.php on line 60
PHP message: PHP Notice:  Use of undefined constant VESTA_CMD - assumed 'VESTA_CMD' in /usr/local/vesta/web/softaculous/index.php on line 65
PHP message: PHP Notice:  Use of undefined constant VESTA_CMD - assumed 'VESTA_CMD' in /usr/local/vesta/web/softaculous/index.php on line 76
PHP message: PHP Warning:  array_keys() expects parameter 1 to be array, null given in /usr/local/vesta/web/softaculous/index.php on line 85" while reading response header from upstream, client: 127.0.0.1, server: _, request: "POST /softaculous/index.php?act=cp_api&api=serialize HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "127.0.0.1:8083"
2018/09/25 10:11:37 [error] 158044#0: *80 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8083", referrer: "https://1.1.1.1(myserverip):8083/list/web/"
2018/09/25 10:11:38 [error] 158044#0: *80 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8083", referrer: "https://1.1.1.1(myserverip):8083/list/web/"
2018/09/25 10:11:39 [error] 158044#0: *80 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /list/web/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8083", referrer: "https://1.1.1.1(myserverip):8083/list/web/"
2018/09/25 10:12:43 [error] 158044#0: *88 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /list/web-log/?domain=mydomain.com&type=access HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8083", referrer: "https://1.1.1.1(myserverip):8083/list/web/"
2018/09/25 10:15:02 [error] 158044#0: *90 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: _, request: "POST /softaculous/index.php?act=cp_api&api=serialize HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "127.0.0.1:8083"
2018/09/25 10:20:02 [error] 158044#0: *92 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: _, request: "POST /softaculous/index.php?act=cp_api&api=serialize HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "127.0.0.1:8083"
2018/09/25 10:25:02 [error] 158044#0: *94 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: _, request: "POST /softaculous/index.php?act=cp_api&api=serialize HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "127.0.0.1:8083"
2018/09/25 10:31:39 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:42 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:43 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:44 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:44 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:45 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:46 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:46 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:46 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
2018/09/25 10:31:46 [error] 162955#0: *58 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /softaculous/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/edit/server/"
---

2018/09/25 10:48:25 [error] 165333#0: *123 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: 2.2.2.2(my ip), server: _, request: "GET /list/package/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "1.1.1.1(myserverip):8089", referrer: "https://1.1.1.1(myserverip):8089/list/web/"
День убил и никакое решение не помогает. ;(((

Re: Падает vestapanel каждую минуту. Сервер nginx+php-fpm

Posted: Tue Oct 09, 2018 10:49 pm
by hookz
Абсолютно тоже самое, все работало стабильно, и вот со вчерашнего дня та же самая картина.

Re: Падает vestapanel каждую минуту. Сервер nginx+php-fpm

Posted: Wed Oct 10, 2018 8:38 am
by Stesh
Самое первое - это включить access-лог, это в конфиге /usr/local/vesta/nginx/conf/nginx.conf строку

Code: Select all

access_log          /dev/null  main;
заменить например на

Code: Select all

access_log          /usr/local/vesta/log/nginx-access.log  main;
И посмотреть что туда долбит.
Лог можно в студию.