gateway/troubleshooting.md
本页面是深度运行手册。 如果你想先走快速分诊流程,请从 /help/troubleshooting 开始。命令阶梯
按以下顺序首先运行这些命令:openclaw gateway status显示Runtime: running且RPC probe: ok。openclaw doctor报告没有阻塞性的配置/服务问题。openclaw channels status --probe
消息未触发
如果频道已启动但没有任何响应,在重新连接任何内容之前,请先检查路由和策略。- Pairing pending for DM senders.
- Group mention gating (
requireMention,mentionPatterns). - Channel/group allowlist mismatches.
drop guild message (mention required→ group message ignored until mention.pairing request→ sender needs approval.blocked/allowlist→ sender/channel was filtered by policy.
Dashboard control ui connectivity
When dashboard/control UI will not connect, validate URL, auth mode, and secure context assumptions.- Correct probe URL and dashboard URL.
- Auth mode/token mismatch between client and gateway.
- HTTP usage where device identity is required.
device identity required→ non-secure context or missing device auth.unauthorized/ reconnect loop → token/password mismatch.gateway connect failed:→ wrong host/port/url target.
服务运行但端口未监听
服务已安装但没有运行Runtime: stoppedwith exit hints.Config (cli): ...和Config (service): ...通常应该匹配。- Port/listener conflicts.
- “Gateway start blocked: set gateway.mode=local” openclaw config set gateway.mode local 如果你使用专用的
openclaw用户通过 Podman 运行 OpenClaw,配置文件位于~openclaw/.openclaw/openclaw.json。 - 如果
Last gateway error:提到”refusing to bind … without auth” another gateway instance is already listening/EADDRINUSE→ port conflict.
Channel connected messages not flowing
If channel state is connected but message flow is dead, focus on policy, permissions, and channel specific delivery rules.- DM policy (
pairing,allowlist,open,disabled). - Group allowlist and mention requirements.
- Missing channel API permissions/scopes.
mention required→ message ignored by group mention policy.pairing/ pending approval traces → sender is not approved.missing_scope,not_in_channel,Forbidden,401/403→ channel auth/permissions issue.
- 特定提供商的快捷方式:/channels/troubleshooting
- 参见 WhatsApp 设置。
- /channels/telegram
- 参见 流式传输。
Cron and heartbeat delivery
If cron or heartbeat did not run or did not deliver, verify scheduler state first, then delivery target.- Cron enabled and next wake present.
- Job run history status (
ok,skipped,error). - Heartbeat skip reasons (
quiet-hours,requests-in-flight,alerts-disabled).
cron: scheduler disabled; jobs will not run automatically→ cron disabled.cron: timer tick failed→ scheduler tick failed; check file/log/runtime errors.heartbeat skippedwithreason=quiet-hours→ outside active hours window.heartbeat: unknown accountId→ invalid account id for heartbeat delivery target.
Node paired tool fails
If a node is paired but tools fail, isolate foreground, permission, and approval state.- Node online with expected capabilities.
- OS permission grants for camera/mic/location/screen.
- Exec approvals and allowlist state.
NODE_BACKGROUND_UNAVAILABLE→ node app must be in foreground.*_PERMISSION_REQUIRED/LOCATION_PERMISSION_REQUIRED→ missing OS permission.SYSTEM_RUN_DENIED: approval required→ exec approval pending.SYSTEM_RUN_DENIED: allowlist miss→ command blocked by allowlist.
Browser tool fails
Use this when browser tool actions fail even though the gateway itself is healthy.- Valid browser executable path.
- CDP profile reachability.
- Extension relay tab attachment for
profile="chrome".
- 如果你看到
"Failed to start Chrome CDP on port 18800": browser.executablePath not found→ configured path is invalid.Chrome extension relay is running, but no tab is connected→ 扩展中继未附加。Browser attachOnly is enabled ... not reachable→ 仅附加配置没有可达目标。
如果你升级后突然出现故障
大多数升级后的故障是由于配置漂移或现在开始强制执行更严格的默认值。1. 认证和 URL 覆盖行为已更改
- 如果你设置了
gateway.mode=remote,CLI 默认使用远程 URL。服务可能仍在本地运行,但你的 CLI 可能在探测错误的位置。使用openclaw gateway status查看服务解析的端口 + 探测目标(或传递--url)。 - Explicit
--urlcalls do not fall back to stored credentials.
gateway connect failed:→ URL 目标错误。unauthorized→ 端点可达,但认证错误。
2. 绑定和认证防护更严格了
- Non-loopback binds (
lan,tailnet,custom) need auth configured. gateway.token被忽略;使用gateway.auth.token。
- Gateway 网关卡在”Starting…” without auth` → 绑定与认证不匹配。
RPC probe: failed且运行时仍在运行 → 网关存活,但以当前认证/URL 无法访问。
3. 配对和设备身份状态已更改
- 仪表板/节点存在待批准的设备。
- 策略或身份更改后,存在待批准的 DM 配对。
device identity required→ 设备认证未满足。pairing required→ 发送方/设备必须获批。