journalctl -u nginx --since="-5min" --no-pager
edge-04 · ams
May 20 02:47:11[notice] worker process 18244 started
May 20 02:47:14[debug] config reload completed (workers=8)
May 20 02:47:18[info] client 198.51.x.x connected
May 20 02:47:18[info] tls 1.3 handshake completed (ALPN: h2)
May 20 02:47:18[info] dispatch GET /resource id=0xa1f3-2d9c
May 20 02:47:19[warn] upstream connect timeout (app-03.lan:8080)
May 20 02:47:20[warn] failover to app-02.lan:8080
May 20 02:47:21[error] upstream prematurely closed connection
May 20 02:47:21[error] no live upstreams available
May 20 02:47:21[crit] responding HTTP 502 to client
May 20 02:47:21[debug] connection closed (keepalive false)
HTTP 502 — Bad Gateway
Ошибка восходящего соединения. Шлюз не получил корректного ответа ни от одного из доступных backend-узлов. Запрос автоматически прерван — посетителю отправлено сообщение об ошибке.
# связанные команды
systemctl status nginx
journalctl -u nginx -f
nginx -t && systemctl reload nginx
systemctl status nginx
journalctl -u nginx -f
nginx -t && systemctl reload nginx