渠道故障排除
当渠道已连接但行为异常时,请使用此页面。
首先按顺序运行这些命令:
openclaw statusopenclaw gateway statusopenclaw logs --followopenclaw doctoropenclaw channels status --probe健康基线:
Runtime: runningConnectivity probe: okCapability: read-only、write-capable或admin-capable- 渠道探测显示传输已连接,并且在支持的情况下显示
works或audit ok
当 Telegram、iMessage、BlueBubbles 时代的配置或其他插件渠道在更新后消失时使用此方法。
openclaw status --allopenclaw doctor --fixopenclaw gateway restartopenclaw status --all查找 plugin load failed: dependency tree corrupted; run openclaw doctor --fix in openclaw status --all。这意味着渠道已配置,但插件设置/加载路径遇到了损坏的依赖树,而不是注册该渠道。openclaw doctor --fix 会删除过时的插件依赖暂存目录和过时的认证影子,然后 openclaw gateway restart 会重新加载干净的状态。
WhatsApp 故障特征
Section titled “WhatsApp 故障特征”| 症状 | 最快检查 | 修复 |
|---|---|---|
| 已连接但无私信回复 | openclaw pairing list whatsapp | 批准发件人或切换私信策略/允许列表。 |
| 群组消息被忽略 | 检查配置中的 requireMention + 提及模式 | 提及机器人或放宽该群组的提及策略。 |
| 二维码登录超时并显示 408 | 检查网关 HTTPS_PROXY / HTTP_PROXY 环境变量 | 设置一个可访问的代理;仅将 NO_PROXY 用于绕过。 |
| 随机断开连接/重新登录循环 | openclaw channels status --probe + 日志 | 即使当前已连接,最近的重新连接也会被标记;观察日志,重启网关,如果继续抖动则重新链接。 |
status=408 Request Time-out 循环 | 探测、日志、诊断,然后是网关状态 | 首先修复主机连接/时序问题;如果循环持续存在,请备份认证并重新链接账户。 |
| 回复晚到几秒/几分钟 | openclaw doctor --fix | 当验证过的陈旧本地 TUI 客户端降低了 Gateway(网关) 事件循环的性能时,Doctor 会将其停止。 |
完整故障排除:WhatsApp 故障排除
Telegram
Section titled “Telegram”Telegram 故障特征
Section titled “Telegram 故障特征”| 症状 | 最快检查 | 修复 |
|---|---|---|
/start 但没有可用的回复流 | openclaw pairing list telegram | 批准配对或更改私信策略。 |
| 机器人在线但群组保持静默 | 验证提及要求和机器人隐私模式 | 禁用隐私模式以实现群组可见性或提及机器人。 |
| 发送失败并伴有网络错误 | 检查日志中的 Telegram API 调用失败 | 修复指向 api.telegram.org 的 DNS/IPv6/代理路由。 |
启动时报告 getMe returned 401 | 检查配置的令牌源 | 重新复制或重新生成 BotFather 令牌并更新 botToken、tokenFile 或默认账户 TELEGRAM_BOT_TOKEN。 |
| 轮询停滞或重连缓慢 | openclaw logs --follow 用于轮询诊断 | 升级;如果重启是误报,请调整 pollingStallThresholdMs。持续停滞仍然指向代理/DNS/IPv6 问题。 |
启动时 setMyCommands 被拒绝 | 检查日志中的 BOT_COMMANDS_TOO_MUCH | 减少插件/技能/自定义 Telegram 命令或禁用原生菜单。 |
| 已升级且允许列表阻止了您 | openclaw security audit 和配置允许列表 | 运行 openclaw doctor --fix 或将 @username 替换为数字发送者 ID。 |
完整故障排除:Telegram 故障排除
Discord
Section titled “Discord”Discord 故障特征
Section titled “Discord 故障特征”| 症状 | 最快检查 | 修复 |
|---|---|---|
| 机器人在线但没有服务器回复 | openclaw channels status --probe | Allow guild/渠道 and verify message content intent. |
| Group messages ignored | Check logs for mention gating drops | Mention bot or set guild/渠道 requireMention: false. |
| Typing/token usage but no Discord message | Check whether this is an ambient room event or an opted-in message_tool room where the 模型 missed message(action=send) | Inspect the gateway verbose log for suppressed final payload metadata, verify messages.groupChat.unmentionedInbound, read Ambient room events, or keep messages.groupChat.visibleReplies: "automatic" for normal group requests. |
| 私信 replies missing | openclaw pairing list discord | Approve 私信 pairing or adjust 私信 policy. |
Full 故障排除: Discord 故障排除
Slack failure signatures
Section titled “Slack failure signatures”| 症状 | 最快检查 | 修复 |
|---|---|---|
| Socket mode connected but no responses | openclaw channels status --probe | Verify app token + bot token and required scopes; watch for botTokenStatus / appTokenStatus = configured_unavailable on SecretRef-backed setups. |
| 私信 blocked | openclaw pairing list slack | Approve pairing or relax 私信 policy. |
| Channel message ignored | Check groupPolicy and 渠道 allowlist | Allow the 渠道 or switch policy to open. |
Full 故障排除: Slack 故障排除
iMessage
Section titled “iMessage”iMessage failure signatures
Section titled “iMessage failure signatures”| Symptom | Fastest check | Fix |
|---|---|---|
imsg missing or fails on non-macOS | openclaw channels status --probe --channel imessage | Run OpenClaw on the Messages Mac or use an SSH wrapper for cliPath. |
| Can send but no receive on macOS | Check macOS privacy permissions for Messages automation | Re-grant TCC permissions and restart 渠道 process. |
| 私信 sender blocked | openclaw pairing list imessage | Approve pairing or update allowlist. |
Full 故障排除:
Signal
Section titled “Signal”Signal 故障特征
Section titled “Signal 故障特征”| 症状 | 最快检查 | 修复 |
|---|---|---|
| 守护进程可达但机器人无响应 | openclaw channels status --probe | 验证 signal-cli 守护进程 URL/账号和接收模式。 |
| 私信被拦截 | openclaw pairing list signal | 批准发送者或调整私信策略。 |
| 群组回复未触发 | 检查群组白名单和提及模式 | 添加发送者/群组或放宽限制。 |
完整故障排除:Signal 故障排除
QQ 机器人
Section titled “QQ 机器人”QQ 机器人故障特征
Section titled “QQ 机器人故障特征”| 症状 | 最快检查 | 修复 |
|---|---|---|
| 机器人回复“gone to Mars” | 验证配置中的 appId 和 clientSecret | 设置凭据或重启网关。 |
| 无传入消息 | openclaw channels status --probe | 在 QQ 开放平台上验证凭据。 |
| 语音未转写 | 检查 STT 提供商配置 | 配置 channels.qqbot.stt 或 tools.media.audio。 |
| 主动消息未到达 | 检查 QQ 平台交互要求 | 如果没有最近的交互,QQ 可能会阻止机器人发起的消息。 |
完整故障排除:QQ 机器人故障排除
Matrix
Section titled “Matrix”Matrix 故障特征
Section titled “Matrix 故障特征”| 症状 | 最快检查 | 修复 |
|---|---|---|
| 已登录但忽略房间消息 | openclaw channels status --probe | 检查 groupPolicy、房间白名单和提及限制。 |
| 私信未处理 | openclaw pairing list matrix | 批准发送者或调整私信策略。 |
| 加密房间失败 | openclaw matrix verify status | 重新验证设备,然后检查 openclaw matrix verify backup status。 |
| 备份恢复待处理/损坏 | openclaw matrix verify backup status | 运行 openclaw matrix verify backup restore 或使用恢复密钥重新运行。 |
| 交叉签名/引导程序显示异常 | openclaw matrix verify bootstrap | 一次性修复密钥存储、交叉签名和备份状态。 |
完整设置和配置:Matrix