Troubleshooting
This guide covers common issues and their solutions.
Diagnostic Commands
Before troubleshooting, gather system information:
bash
# Check OpenClaw status
openclaw status
# Run diagnostics
openclaw doctor
# View recent logs
openclaw logsCommon Issues
Gateway Won't Start
Symptoms: Gateway fails to start or immediately crashes.
Solutions:
Check port availability:
bashlsof -i :3000If the port is in use, either stop the other process or configure a different port.
Verify configuration:
bashopenclaw doctorCheck logs for errors:
bashopenclaw logs --level error
Model API Errors
Symptoms: "API key invalid" or "Rate limit exceeded" errors.
Solutions:
Verify API key:
bashopenclaw models listCheck API key configuration:
bashopenclaw models configTest model connectivity:
bashopenclaw models test
Channel Connection Issues
Symptoms: Messages not being received or sent.
Solutions:
Check channel status:
bashopenclaw channels statusRe-authenticate if needed:
bashopenclaw channels setup <channel-name>Verify QR code pairing (for WhatsApp):
bashopenclaw channels qr whatsapp
Memory/Performance Issues
Symptoms: High CPU or memory usage, slow responses.
Solutions:
Check session count:
bashopenclaw sessions listClear old sessions:
bashopenclaw sessions clear --older-than 7dCompact memory:
bashopenclaw memory compact
Getting More Help
If issues persist:
- Join the Discord community
- Search GitHub Issues
- Create a detailed bug report with logs and system info