#502-Bad-Gateway
共 6 篇文章
Nginx 返回 502 Bad Gateway 且提示 Connection refused:排查后端服务假死与端口
生产反向代理 Nginx 突然向所有访问用户抛出 502 Bad Gateway 错误白屏,错误日志提示连接上游后端遭遇 Connection refused。全面排查后端微服务进程崩溃、端口未监听、SELinux 拦截以及上游域名解析失效的根治手段。
Nginx 报错 upstream sent invalid chunked response 排障与传输调优
Nginx 反向代理向客户端返回 502 Bad Gateway 并在错误日志记录 upstream sent invalid chunked response。本文深入剖析上游分块编码缺陷、gzip 压缩冲突与 proxy_http_version 调优实战。
Nginx upstream sent too big header 502 错误排查与缓冲区调优
分析 Nginx 反向代理收到后端超大 Response Header(如大 Cookie、JWT、OAuth2 认证头)时抛出 502 Bad Gateway 的根因,提供 proxy_buffer 调优指南。
Nginx upstream prematurely closed connection 502 报错排查
深入排查 Nginx 反向代理提示 upstream prematurely closed connection while reading response header 导致的 502 Bad Gateway,分析后端 JVM 崩溃、OOM 强杀与超时断开实战。
K8s Ingress-Nginx 报 upstream sent too big header 502 错误排障
用户请求通过 Kubernetes Ingress 时偶发 502 Bad Gateway,日志提示 upstream sent too big header while reading response header。本文深入剖析缓冲区机制与 Annotations 调优配置。
Nginx 反代报错 recv() failed (104: Connection reset by peer) 排障
Nginx 频繁抛出 502 Bad Gateway 且日志记录 recv() failed (104: Connection reset by peer) while reading response header。本文深入剖析后端崩溃、OOM 强杀与网络截断定位流程。


