<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PM2 显示 online，但用户访问全是 502]]></title><description><![CDATA[<p dir="auto">PM2 list 全是 online，<code>pm2 logs</code> 也没明显报错，但 Nginx 返回 502。这个状态到底信谁？</p>
]]></description><link>https://localaihub.com/topic/174/pm2-显示-online-但用户访问全是-502</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:16:28 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/174.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 May 2026 13:47:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 13:54:00 GMT]]></title><description><![CDATA[<p dir="auto">复盘里写清：进程状态、端口状态、业务状态是三层，不能混用。</p>
]]></description><link>https://localaihub.com/post/1861</link><guid isPermaLink="true">https://localaihub.com/post/1861</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Wed, 13 May 2026 13:54:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 11:15:00 GMT]]></title><description><![CDATA[<p dir="auto">还要 Nginx upstream fail timeout 配合理，不然短抖动会放大。</p>
]]></description><link>https://localaihub.com/post/1860</link><guid isPermaLink="true">https://localaihub.com/post/1860</guid><dc:creator><![CDATA[阿航]]></dc:creator><pubDate>Wed, 13 May 2026 11:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 09:36:00 GMT]]></title><description><![CDATA[<p dir="auto">已改成 Redis 不可用时启动失败，并让 PM2 重启告警。</p>
]]></description><link>https://localaihub.com/post/1859</link><guid isPermaLink="true">https://localaihub.com/post/1859</guid><dc:creator><![CDATA[橘子汽水]]></dc:creator><pubDate>Wed, 13 May 2026 09:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 09:11:00 GMT]]></title><description><![CDATA[<p dir="auto">但别把维护页当修复。502 根因还是 readiness 和依赖。</p>
]]></description><link>https://localaihub.com/post/1858</link><guid isPermaLink="true">https://localaihub.com/post/1858</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Wed, 13 May 2026 09:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 06:28:00 GMT]]></title><description><![CDATA[<p dir="auto">用户看到 502，也说明错误页没兜住。至少要有维护页或稍后重试提示。</p>
]]></description><link>https://localaihub.com/post/1857</link><guid isPermaLink="true">https://localaihub.com/post/1857</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Wed, 13 May 2026 06:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 05:10:00 GMT]]></title><description><![CDATA[<p dir="auto">那 PM2 状态就是典型假阳性。依赖连不上时，应用应该不要对外宣称 ready。</p>
]]></description><link>https://localaihub.com/post/1856</link><guid isPermaLink="true">https://localaihub.com/post/1856</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Wed, 13 May 2026 05:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 03:26:00 GMT]]></title><description><![CDATA[<p dir="auto">端口没错。看日志发现启动卡在 Redis 连接重试。</p>
]]></description><link>https://localaihub.com/post/1855</link><guid isPermaLink="true">https://localaihub.com/post/1855</guid><dc:creator><![CDATA[橘子汽水]]></dc:creator><pubDate>Wed, 13 May 2026 03:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Wed, 13 May 2026 00:23:00 GMT]]></title><description><![CDATA[<p dir="auto">Nginx upstream 配的是旧端口吗？我踩过 PM2 env 改了端口，Nginx 没改。</p>
]]></description><link>https://localaihub.com/post/1854</link><guid isPermaLink="true">https://localaihub.com/post/1854</guid><dc:creator><![CDATA[小周]]></dc:creator><pubDate>Wed, 13 May 2026 00:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Tue, 12 May 2026 21:49:00 GMT]]></title><description><![CDATA[<p dir="auto">配 <code>wait_ready</code> 或启动探针可以减少误判，但仍要有外部健康检查。</p>
]]></description><link>https://localaihub.com/post/1853</link><guid isPermaLink="true">https://localaihub.com/post/1853</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Tue, 12 May 2026 21:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Tue, 12 May 2026 19:05:00 GMT]]></title><description><![CDATA[<p dir="auto">看应用是不是启动后才绑定端口。PM2 可能进程在线，但应用还在初始化或卡住。</p>
]]></description><link>https://localaihub.com/post/1852</link><guid isPermaLink="true">https://localaihub.com/post/1852</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Tue, 12 May 2026 19:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Tue, 12 May 2026 18:06:00 GMT]]></title><description><![CDATA[<p dir="auto">本机 curl 端口有时通，有时 connection refused。</p>
]]></description><link>https://localaihub.com/post/1851</link><guid isPermaLink="true">https://localaihub.com/post/1851</guid><dc:creator><![CDATA[橘子汽水]]></dc:creator><pubDate>Tue, 12 May 2026 18:06:00 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 显示 online，但用户访问全是 502 on Tue, 12 May 2026 15:12:00 GMT]]></title><description><![CDATA[<p dir="auto">信用户路径。PM2 online 只说明进程没退出，不说明端口监听、路由、依赖都正常。</p>
]]></description><link>https://localaihub.com/post/1850</link><guid isPermaLink="true">https://localaihub.com/post/1850</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Tue, 12 May 2026 15:12:00 GMT</pubDate></item></channel></rss>