502 Bad Gateway
Posted: Wed Jun 20, 2018 9:44 pm
Hello! There was a following problem, on several servers with the VestaCP panel.
The panel itself works, we can use console commands to work with it, but the web interface does not work, the logs have the following errors:
The file /var/run/vesta-php.sock present
With ports there are no problems, the connection does not deviate:
What could be the problem? It manifests itself massively, on several servers, with different operating systems.
Restarting the panel is a temporary solution, after which the web interface drops again.
More detailed logs:
We restart service vesta and after that the web interface down, after a certain time.
At the same time, there is free RAM, 1 GB is available.
The panel itself works, we can use console commands to work with it, but the web interface does not work, the logs have the following errors:
Code: Select all
2018/06/21 00:01:28 [error] 5184#0: *60 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "xx.xx.xx.xx:8083"
With ports there are no problems, the connection does not deviate:
Code: Select all
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 5182/vesta-nginx
What could be the problem? It manifests itself massively, on several servers, with different operating systems.
Restarting the panel is a temporary solution, after which the web interface drops again.
More detailed logs:
Code: Select all
2018/06/21 01:17:00 [notice] 30482#0: signal 17 (SIGCHLD) received
2018/06/21 01:17:00 [notice] 30482#0: worker process 30483 exited with code 0
2018/06/21 01:17:00 [notice] 30482#0: exit
2018/06/21 01:17:00 [notice] 30528#0: using the "epoll" event method
2018/06/21 01:17:00 [notice] 30528#0: nginx/1.12.0
2018/06/21 01:17:00 [notice] 30528#0: built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
2018/06/21 01:17:00 [notice] 30528#0: OS: Linux 4.9.0-6-amd64
2018/06/21 01:17:00 [notice] 30528#0: getrlimit(RLIMIT_NOFILE): 1024:4096
2018/06/21 01:17:00 [notice] 30529#0: start worker processes
2018/06/21 01:17:00 [notice] 30529#0: start worker process 30530
2018/06/21 01:17:10 [info] 30530#0: *1 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:10 [info] 30530#0: *2 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:10 [info] 30530#0: *3 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:10 [info] 30530#0: *6 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:10 [info] 30530#0: *7 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:15 [info] 30530#0: *8 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:15 [info] 30530#0: *4 client xx.xx.xx.xx closed keepalive connection
2018/06/21 01:17:25 [info] 30530#0: *10 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:25 [info] 30530#0: *11 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:25 [info] 30530#0: *9 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:25 [info] 30530#0: *12 client closed connection while waiting for request, client: xx.xx.xx.xx, server: 0.0.0.0:8083
2018/06/21 01:17:25 [error] 30530#0: *13 connect() to unix:/var/run/vesta-php.sock failed (111: Connection refused) while connecting to upstream, client: xx.xx.39.28, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host:xx.xx.xx.xx:8083"
2018/06/21 01:17:25 [info] 30530#0: *13 client xx.xx.xx.xx closed keepalive connection
At the same time, there is free RAM, 1 GB is available.
Code: Select all
total used free shared buff/cache available
Mem: 996M 181M 571M 18M 243M 658M
Swap: 1.0G 3.4M 1.0G
Code: Select all
ii vesta 0.9.8-21 amd64 Vesta
ii vesta-ioncube 0.9.8-21 amd64 ionCube Loader for Vesta
ii vesta-nginx 0.9.8-21 amd64 Vesta Nginx
ii vesta-php 0.9.8-21 amd64 Vesta php-fpm
ii vesta-softaculous 0.9.8-21 amd64 softaculous plugin for Vesta