跳转到内容

Node 故障排除

当节点在状态中可见但节点工具失败时,请使用此页面。

Terminal window
openclaw status
openclaw gateway status
openclaw logs --follow
openclaw doctor
openclaw channels status --probe

然后运行特定于节点的检查:

Terminal window
openclaw nodes status
openclaw nodes describe --node <idOrNameOrIp>
openclaw approvals get --node <idOrNameOrIp>

健康信号:

  • 节点已连接并已针对角色 node 完成配对。
  • nodes describe 包含您正在调用的功能。
  • Exec 批准显示预期的模式/允许列表。

canvas.*camera.*screen.* 在 iOS/Android 节点上仅限前台运行。

快速检查和修复:

Terminal window
openclaw nodes describe --node <idOrNameOrIp>
openclaw nodes canvas snapshot --node <idOrNameOrIp>
openclaw logs --follow

如果您看到 NODE_BACKGROUND_UNAVAILABLE,请将节点应用置于前台并重试。

功能iOSAndroidmacOS 节点应用典型故障代码
camera.snap, camera.clip相机(用于剪辑音频的 + 麦克风)相机 (+ 剪辑音频需麦克风)相机 (+ 剪辑音频需麦克风)*_PERMISSION_REQUIRED
screen.record屏幕录制(+ 麦克风可选)屏幕录制提示(+ 麦克风可选)屏幕录制*_PERMISSION_REQUIRED
location.get使用时或始终(取决于模式)基于模式的前台/后台位置位置权限LOCATION_PERMISSION_REQUIRED
system.run不适用(节点主机路径)不适用 (节点主机路径)需要 Exec 批准SYSTEM_RUN_DENIED

这些是不同的关卡:

  1. 设备配对:此节点能否连接到 Gateway?
  2. Gateway(网关) 节点命令策略:Gateway(网关) 命令 ID 是否被 gateway.nodes.allowCommands / denyCommands 和平台默认设置允许?
  3. Exec 批准:此节点能否在本地运行特定的 Shell 命令?

快速检查:

Terminal window
openclaw devices list
openclaw nodes status
openclaw approvals get --node <idOrNameOrIp>
openclaw approvals allowlist add --node <idOrNameOrIp> "/usr/bin/uname"

如果缺少配对,请先批准节点设备。 如果 nodes describe 缺少命令,请检查 Gateway 节点命令策略以及该节点在连接时是否实际声明了该命令。 如果配对正常但 system.run 失败,请修复该节点上的 Exec 批准/允许列表。

Node pairing is an identity/trust gate, not a per-command approval surface. For system.run, the per-node policy lives in that node’s exec approvals file (openclaw approvals get --node ...), not in the gateway pairing record.

For approval-backed host=node runs, the gateway also binds execution to the prepared canonical systemRunPlan. If a later caller mutates command/cwd or 会话 metadata before the approved run is forwarded, the gateway rejects the run as an approval mismatch instead of trusting the edited payload.

  • NODE_BACKGROUND_UNAVAILABLE → app is backgrounded; bring it foreground.
  • CAMERA_DISABLED → camera toggle disabled in node settings.
  • *_PERMISSION_REQUIRED → OS permission missing/denied.
  • LOCATION_DISABLED → location mode is off.
  • LOCATION_PERMISSION_REQUIRED → requested location mode not granted.
  • LOCATION_BACKGROUND_UNAVAILABLE → app is backgrounded but only While Using permission exists.
  • SYSTEM_RUN_DENIED: approval required → exec request needs explicit approval.
  • SYSTEM_RUN_DENIED: allowlist miss → command blocked by allowlist mode. On Windows node hosts, shell-wrapper forms like cmd.exe /c ... are treated as allowlist misses in allowlist mode unless approved via ask flow.
Terminal window
openclaw nodes status
openclaw nodes describe --node <idOrNameOrIp>
openclaw approvals get --node <idOrNameOrIp>
openclaw logs --follow

If still stuck:

  • Re-approve device pairing.
  • Re-open node app (foreground).
  • Re-grant OS permissions.
  • Recreate/adjust exec approval policy.