Gateway Troubleshooting
Common gateway issues and solutions.
Diagnostic Commands
bash
# Check status
openclaw status
# Run diagnostics
openclaw doctor
# View logs
openclaw logs --level errorCommon Issues
Gateway Won't Start
Port in use:
bash
# Check what's using the port
lsof -i :3000
# Use a different port
openclaw gateway start --port 8080Permission denied:
bash
# Check file permissions
ls -la ~/.config/openclaw/
# Fix permissions
chmod 755 ~/.config/openclaw/Connection Refused
Gateway not running:
bash
# Start gateway
openclaw gateway start
# Check status
openclaw gateway statusWrong address:
Ensure you're connecting to the correct host/port.
High Memory Usage
bash
# Check session count
openclaw sessions list --count
# Clear old sessions
openclaw sessions clear --older-than 7d
# Compact memory
openclaw memory compactSlow Responses
- Check model latency
- Reduce context window size
- Enable compaction
- Use a faster model for routing
Getting Help
- Check logs:
openclaw logs --level debug - Run diagnostics:
openclaw doctor --verbose - Search GitHub Issues
- Ask on Discord