30.4 故障排查
30.4.1 Doctor 命令架构
openclaw doctor
│
├── doctor-update.ts — 版本更新检查
├── doctor-ui.ts — UI 协议版本兼容性
├── doctor-install.ts — 源码安装问题检测
├── doctor-platform-notes.ts — 平台特定问题(macOS launchd 覆盖等)
├── doctor-config-flow.ts — 配置文件迁移与修复
├── doctor-auth.ts — 认证配置(OAuth、API 密钥)
├── doctor-legacy-config.ts — 旧配置格式检测
├── doctor-state-integrity.ts — 状态目录完整性
├── doctor-state-migrations.ts — 状态数据迁移
├── doctor-sandbox.ts — 沙箱镜像检查
├── doctor-security.ts — 安全审计
├── doctor-gateway-services.ts — Gateway 服务配置
├── doctor-gateway-daemon-flow.ts — 守护进程管理
├── doctor-gateway-health.ts — Gateway 健康探测
├── doctor-workspace.ts — 工作空间检查
├── doctor-workspace-status.ts — 工作空间状态
├── doctor-completion.ts — Shell 自动补全
└── doctor-prompter.ts — 交互式提示器执行流程
两种运行模式
30.4.2 关键检查项详解
Gateway 认证修复
安全审计
沙箱镜像检查
守护进程管理
30.4.3 日志系统
日志级别
级别
用途
启用方式
子日志器
常见问题诊断
症状
可能原因
诊断命令
调试环境变量
变量
作用
30.4.4 状态恢复
本节小结
Last updated