2026-09-24-代理节点轮换导致grok无响应.md

2026-09-24 代理节点轮换导致 grok WebUI「迟迟没反应」(含:自愈机制失效 2 天)

1. 现象与判定

检查结果
curl -x http://127.0.0.1:10809 https://www.google.com超时(12~15s 无响应)
curl -x socks5h://127.0.0.1:10808 …超时
本地监听 / 进程正常(v2ray pid 2221492,10808/10809 都在 LISTEN)
~/Downloads/v2ray-setup/v2ray.logfailed to process outbound traffic > proxy/shadowsocks: failed to find an available destination > dial tcp 176.122.134.43:6623 / 176.122.191.251:6623
x.ai 直连超时(预期,被墙)
WebUI 侧用户 23:17:54 发的消息一直没回复;grok agent 进程在,卡在请求上

→ 典型「节点轮换」:本地代理配置没错、端口能连,但出口节点已失效。

2. 修复动作

  1. chmod 700 ~/Downloads/v2ray-setup/{healthcheck,refresh-sub,restart-v2ray}.sh —— 见下节,这是本次真正的坑。
  2. 跑 ~/Downloads/v2ray-setup/refresh-sub.sh:拉订阅 → 逐个 TCP 探活 → 写入可达节点 → 重启 service。
    • 旧节点(失效):176.122.134.43 / 176.122.191.251
    • 新节点(在用):176.122.132.122:6623、176.122.191.185:6623
    • 验证:google 200、api.x.ai 401(可达)、下载 1430 KB/s
  3. 验证自愈链路:等定时器自然触发,v2ray-healthcheck.service 在 23:25:27 → status=0/SUCCESS。

3. 关键发现:自愈定时器「在跑但从没成功过」(2026-09-22 → 09-24)

Active: failed (Result: exit-code)
Process: ExecStart=/home/zyw/Downloads/v2ray-setup/healthcheck.sh (code=exited, status=203/EXEC)
[2026-09-24 23:22:29] 代理不通,触发订阅刷新
/home/zyw/Downloads/v2ray-setup/healthcheck.sh: 行 11: .../refresh-sub.sh: 权限不够
[2026-09-24 23:22:29] ❌ 自愈失败(订阅里也没有可达节点,需人工介入)

4. 后续注意

下载此文件