返回 Bug 清单
BUG-1361project-53中已修复deploy-config
Next.js standalone rebuild 后 nginx upstream 指向旧 IP → 502
发现:2026-10-13验证:2026-10-29置信度:70%
症状
所有 /scenes/* 等前端页面返回 502 Bad Gateway
根因
docker compose build web + up -d 导致 web 容器重建,新容器获得新 IP,但 nginx 容器内存中缓存的 upstream 连接仍指向旧 IP
修复方案
docker restart clairie-nginx 刷新 upstream 连接池。nginx container_healthcheck 已用 --resolvers 自动解析,但已建立的连接池不会自动刷新
错误签名
connect() failed (113: Host is unreachable) while connecting to upstream, client: 172.22.0.1, server: _, upstream: "http://172.22.0.x:3000/"技术信息
来源项目
project-53
涉及文件
nginx.prod.conf, docker-compose.prod.yml
标签
project-53, mcp-reported, source-agent