Page 1 of 2

При открытии панели 504 ошибка [решено]

Posted: Sat Mar 04, 2017 4:32 pm
by clevermaks
Уже более года пользуюсь, все отлично. А вот впоймал ошибку, решение которой пока не нашел... Подскажите, где копать?
Возникает 504 ошибка при открытии панели.

В лог файле, vesta/nginx-error.log

Code: Select all

2017/03/04 19:28:54 [error] 28383#0: *9 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23.
229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"

Re: При открытии панели 504 ошибка

Posted: Sun Mar 05, 2017 8:47 pm
by skurudo
И все? Больше никаких ошибок в логе?

Re: При открытии панели 504 ошибка

Posted: Mon Mar 06, 2017 5:55 pm
by clevermaks
nginx-error

Code: Select all

2017/03/04 19:37:33 [error] 28383#0: *19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 19:38:50 [error] 28383#0: *19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 19:53:31 [error] 28383#0: *25 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 19:58:24 [error] 28383#0: *29 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 20:00:40 [error] 28383#0: *33 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 20:04:45 [error] 28383#0: *37 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 22:07:39 [error] 28383#0: *41 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 22:17:47 [error] 28383#0: *45 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 22:52:34 [error] 28383#0: *49 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 08:35:31 [error] 28383#0: *53 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 12:41:21 [error] 28383#0: *57 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 14:55:51 [error] 28383#0: *61 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 20:53:34 [error] 28383#0: *65 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 22:09:46 [error] 28383#0: *69 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/06 10:22:46 [error] 28383#0: *74 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 195.2
09.115.138, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/06 14:26:59 [error] 28383#0: *78 open() "/usr/local/vesta/web/robots.txt" failed (2: No such file or directory), client: 77.88.47.121, ser
ver: _, request: "GET /robots.txt HTTP/1.1", host: "websokol.ru:8083"
2017/03/06 14:27:44 [error] 28383#0: *79 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_
start() in /usr/local/vesta/web/inc/main.php on line 3
PHP message: PHP Notice:  Undefined index: HTTP_CLIENT_IP in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14" while reading response header from upst
ream, client: 5.255.250.63, server: _, request: "GET /reset/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "websokol.ru:80
83"
это все

Re: При открытии панели 504 ошибка

Posted: Mon Mar 06, 2017 6:13 pm
by Mr.Erbutw
clevermaks wrote:Уже более года пользуюсь, все отлично. А вот впоймал ошибку, решение которой пока не нашел... Подскажите, где копать?
Возникает 504 ошибка при открытии панели.

В лог файле, vesta/nginx-error.log

Code: Select all

2017/03/04 19:28:54 [error] 28383#0: *9 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23.
229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
Сколько у вас RAM ? установлено ли clamav & spamassassin ?
viewtopic.php?p=54046#p54046

Re: При открытии панели 504 ошибка

Posted: Mon Mar 06, 2017 6:58 pm
by clevermaks
Оперативки 4 Гб.
Установлено

Re: При открытии панели 504 ошибка

Posted: Mon Mar 06, 2017 7:00 pm
by clevermaks
spamassassin пытался остановить, не помогало.
Уже думал про память, видел этот пост.

Re: При открытии панели 504 ошибка

Posted: Tue Mar 07, 2017 8:52 am
by skurudo
clevermaks wrote:nginx-error
кодShow

Code: Select all

2017/03/04 19:37:33 [error] 28383#0: *19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 19:38:50 [error] 28383#0: *19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 19:53:31 [error] 28383#0: *25 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 19:58:24 [error] 28383#0: *29 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 20:00:40 [error] 28383#0: *33 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 20:04:45 [error] 28383#0: *37 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 22:07:39 [error] 28383#0: *41 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 22:17:47 [error] 28383#0: *45 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/04 22:52:34 [error] 28383#0: *49 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 08:35:31 [error] 28383#0: *53 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 12:41:21 [error] 28383#0: *57 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 14:55:51 [error] 28383#0: *61 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 20:53:34 [error] 28383#0: *65 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/05 22:09:46 [error] 28383#0: *69 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23
.229.106, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/06 10:22:46 [error] 28383#0: *74 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 195.2
09.115.138, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"
2017/03/06 14:26:59 [error] 28383#0: *78 open() "/usr/local/vesta/web/robots.txt" failed (2: No such file or directory), client: 77.88.47.121, ser
ver: _, request: "GET /robots.txt HTTP/1.1", host: "websokol.ru:8083"
2017/03/06 14:27:44 [error] 28383#0: *79 FastCGI sent in stderr: "PHP message: PHP Notice:  A session had already been started - ignoring session_
start() in /usr/local/vesta/web/inc/main.php on line 3
PHP message: PHP Notice:  Undefined index: HTTP_CLIENT_IP in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14" while reading response header from upst
ream, client: 5.255.250.63, server: _, request: "GET /reset/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "websokol.ru:80
83"
это все
проблема может быть и в том, что /etc/sudoers.d/admin
не содержит вот этот код

Code: Select all

# Created by vesta installer
Defaults env_keep="VESTA" 
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty
PS: https://bugs.vestacp.com/issues/464
PS2: service vesta restart -- тоже нужно будет сделать.

Re: При открытии панели 504 ошибка

Posted: Tue Mar 07, 2017 12:32 pm
by clevermaks
такое уже есть

Re: При открытии панели 504 ошибка

Posted: Tue Mar 07, 2017 2:00 pm
by skurudo
Перезапустите Весту или весь сервер и снова давайте посмотрим на логи.

Re: При открытии панели 504 ошибка

Posted: Wed Mar 08, 2017 7:21 pm
by clevermaks
очистил лог, перезапустил, обновил страницу.

Code: Select all

2017/03/08 22:20:27 [error] 8663#0: *3 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 31.23.1
87.126, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "207.154.236.124:8083"