TOPIC / RESOURCE

OpenClaw troubleshooting: triage before you fix

Triage installation, model, channel, auth, and Docker issues systematically. Start with doctor, repair, and gateway restart before guessing at root causes.

Best for

  • 安装好了但不能用,或者不确定坏在哪一层
  • 想先把问题缩成安装、模型、渠道、认证或 Docker
  • 希望先用 doctor 和最小动作收敛,而不是直接重装

Before reinstalling, narrow the layer

The first useful action is not a reinstall. Determine whether the problem is in installation, model, channel, auth, doctor, or Docker.

Minimal diagnostic commands

Memorize these first:

openclaw doctor
openclaw doctor --repair
openclaw gateway restart
openclaw logs --follow

Basic checks:

node -v
npm -v
python3 -m json.tool openclaw.json

Common issues

IssueSymptomsFirst action
Install failureDependencies fail, version mismatchCheck system requirements and Node
Port conflictService won't start, "port in use"lsof -i :8080 — kill or change port
Version mismatchOld commands fail, config differsCheck current version and docs
Env varsModel key set but missingecho $ANTHROPIC_API_KEY — fix if empty
Model issuesChat works, real tasks fail"No model" vs "visible but unusable"?
Channel not triggeringBot visible, no/inconsistent replyMinimal message loop only
Auth problemsEntry unstable, unauthorized accessCheck gateway auth before model
Docker issuesPaths, env, permissions mixedConfirm container paths match
Host from Dockerlocalhost failsUse host.docker.internal
File rulesAGENTS.md/SOUL.md ignoredCheck case, location, restart reload

Triage order

  1. Narrow the layer: install / model / channel / auth / Docker
  2. Run doctor
  3. Try repair
  4. Restart gateway if needed
  5. Consider reinstall only if nothing else works

External links

FAQ

Topic FAQ

The first step is to narrow the problem layer, not search through hundreds of similar errors.

Not always. It helps you locate and narrow issues, not guarantee a full repair.