Страница 1 из 1

Постоянно выскакивает ошибка 502 Bad Gateway. Конфиг: Apache-PHP-7+Nginx-1.10

Добавлено: 13 сен 2017, 08:43
drwhite1987
Чуть ли не каждый раз ошибка 502 Bad Gateway.
Опытным путем выяснилось, что чем больше нагрузка, например у меня подгружаются данные с помощью ajax разными запросами(от 1 до 5 запросов), тем чаще это происходит, причем на страницах с 4+ ajax запросами шанс 502 ошибки 90%+ (крайне редко все отрабатывало успешно)
Логи:
Nginx
2017/09/13 08:24:11 [error] 17628#2620: *4 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/countries HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/countries", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:11 [error] 17628#2620: *10 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/districts HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/districts", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:11 [error] 17628#2620: *1 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /js/index.js.map HTTP/1.1", upstream: "http://127.0.0.1:8080/js/index.js.map", host: "crm"
2017/09/13 08:24:11 [error] 17628#2620: *5 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/cities HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/cities", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:11 [error] 17628#2620: *8 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/filials HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/filials", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:22 [error] 17628#2620: *1 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/countries HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/countries", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:22 [error] 17628#2620: *10 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/cities HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/cities", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:22 [error] 17628#2620: *5 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/districts HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/districts", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:22 [error] 17628#2620: *8 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/filials HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/filials", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:31 [error] 17628#2620: *8 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/districts HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/districts", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:31 [error] 17628#2620: *5 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/filials HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/filials", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:31 [error] 17628#2620: *1 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/cities HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/cities", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:24:31 [error] 17628#2620: *10 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/countries HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/countries", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:25:03 [error] 17628#2620: *8 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/cities HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/cities", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:25:03 [error] 17628#2620: *10 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/filials HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/filials", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:25:03 [error] 17628#2620: *1 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/districts HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/districts", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:25:03 [error] 17628#2620: *5 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /api/place/countries HTTP/1.1", upstream: "http://127.0.0.1:8080/api/place/countries", host: "crm", referrer: "http://crm/filial/create"
2017/09/13 08:26:51 [error] 17628#2620: *39 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /js/index.js.map HTTP/1.1", upstream: "http://127.0.0.1:8080/js/index.js.map", host: "crm"
2017/09/13 08:26:51 [error] 17628#2620: *37 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /js/jquery.min.map HTTP/1.1", upstream: "http://127.0.0.1:8080/js/jquery.min.map", host: "crm"
2017/09/13 08:28:19 [error] 17628#2620: *39 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /js/index.js.map HTTP/1.1", upstream: "http://127.0.0.1:8080/js/index.js.map", host: "crm"
2017/09/13 08:28:19 [error] 17628#2620: *37 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /js/jquery.min.map HTTP/1.1", upstream: "http://127.0.0.1:8080/js/jquery.min.map", host: "crm"
2017/09/13 08:28:19 [error] 17628#2620: *46 WSARecv() failed (10054: An existing connection was forcibly closed by the remote host) while reading response header from upstream, client: 127.0.0.1, server: crm, request: "GET /filials HTTP/1.1", upstream: "http://127.0.0.1:8080/filials", host: "crm", referrer: "http://crm/filial/1/edit"
Apache
[Wed Sep 13 08:23:47.818339 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:23:47.818339 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:23:47.818339 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:23:47.821342 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 9124
[Wed Sep 13 08:23:48.608366 2017] [mpm_winnt:notice] [pid 9124:tid 4] AH00354: Child: Starting 32 worker threads.
[Wed Sep 13 08:24:11.350375 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00428: Parent: child process 9124 exited with status 3221226356 -- Restarting.
[Wed Sep 13 08:24:11.689101 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:24:11.689602 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:24:11.689602 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:24:11.692608 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 1872
[Wed Sep 13 08:24:12.437130 2017] [mpm_winnt:notice] [pid 1872:tid 708] AH00354: Child: Starting 32 worker threads.
[Wed Sep 13 08:24:22.773722 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00428: Parent: child process 1872 exited with status 3221226356 -- Restarting.
[Wed Sep 13 08:24:23.117452 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:24:23.117452 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:24:23.117452 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:24:23.119954 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 10732
[Wed Sep 13 08:24:23.926039 2017] [mpm_winnt:notice] [pid 10732:tid 736] AH00354: Child: Starting 32 worker threads.
[Wed Sep 13 08:24:31.773694 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00428: Parent: child process 10732 exited with status 3221226356 -- Restarting.
[Wed Sep 13 08:24:32.120425 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:24:32.120425 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:24:32.120425 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:24:32.122928 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 6416
[Wed Sep 13 08:24:32.885966 2017] [mpm_winnt:notice] [pid 6416:tid 740] AH00354: Child: Starting 32 worker threads.
[Wed Sep 13 08:25:03.463072 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00428: Parent: child process 6416 exited with status 3221226356 -- Restarting.
[Wed Sep 13 08:25:03.790200 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:25:03.790200 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:25:03.790200 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:25:03.792701 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 13908
[Wed Sep 13 08:25:04.556023 2017] [mpm_winnt:notice] [pid 13908:tid 4] AH00354: Child: Starting 32 worker threads.
[Wed Sep 13 08:26:51.090176 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00428: Parent: child process 13908 exited with status 3221226356 -- Restarting.
[Wed Sep 13 08:26:51.433645 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:26:51.433645 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:26:51.433645 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:26:51.436148 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 1560
[Wed Sep 13 08:26:52.228166 2017] [mpm_winnt:notice] [pid 1560:tid 740] AH00354: Child: Starting 32 worker threads.
[Wed Sep 13 08:28:19.470085 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00428: Parent: child process 1560 exited with status 3221226356 -- Restarting.
[Wed Sep 13 08:28:19.895369 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00455: Apache/2.4.27 (Win32) configured -- resuming normal operations
[Wed Sep 13 08:28:19.895369 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00456: Apache Lounge VC14 Server built: Jul  9 2017 11:48:22
[Wed Sep 13 08:28:19.895369 2017] [core:notice] [pid 17568:tid 708] AH00094: Command line: 'C:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-PHP-7+Nginx-1.10 -f c:\\ospanel\\modules\\http\\Apache-PHP-7+Nginx-1.10\\conf\\httpd.conf'
[Wed Sep 13 08:28:19.897871 2017] [mpm_winnt:notice] [pid 17568:tid 708] AH00418: Parent: Created child process 2724
[Wed Sep 13 08:28:20.680043 2017] [mpm_winnt:notice] [pid 2724:tid 736] AH00354: Child: Starting 32 worker threads.
PHP пустой

Причем так же происходит и с другими конфигурациями.

Подскажите, куда копать?
З.Ы. На хостинге такой проблемы нет.

Спасибо!