OpenClaw Troubleshooting: Common Fixes
Fix OpenClaw when the gateway won't start, a bot stops replying, WhatsApp disconnects or cron jobs don't fire. Exact commands for each fix.
Most OpenClaw problems show up in the Gateway logs. Run openclaw logs --limit 100 and find the ERROR line. If nothing stands out, run openclaw doctor and then openclaw gateway status.
Update first
Many older bugs are already fixed in newer releases. Check openclaw --version, update OpenClaw, and make sure you're on a supported Node version (24.16.0+ or 26.1.0+, see System Requirements) before you dig deeper.
The 60-second check
Run these in order. Each one narrows down where the problem is.
openclaw logs --limit 100 # recent log lines; add --follow to stream
openclaw status # configured channels, auth errors
openclaw gateway status # expect "Runtime: running"
openclaw doctor # config and service problems
openclaw channels status --probe # live state per channel accountThe official docs also list openclaw triage, which writes a sanitized diagnosis you can share when asking for help, and openclaw status --all for a full report.
openclaw logs takes --limit (default 200), --follow, --json and --plain. It has no --tail or --filter flag. To filter, pipe the output through grep:
openclaw logs --limit 500 --plain | grep -i erroropenclaw: command not found
This is almost always a PATH problem: npm's global bin directory isn't on your shell's PATH.
npm prefix -g # find npm's global prefix
echo "$PATH" # look for <prefix>/bin in the outputIf it's missing, add this line to ~/.bashrc (Bash) or ~/.zshrc (zsh), then open a new terminal:
export PATH="$(npm prefix -g)/bin:$PATH"On Windows, add the output of npm prefix -g to your PATH under Settings > System > Environment Variables. If you see EACCES errors on npm install -g on Linux, point npm's global prefix at a folder you own:
mkdir -p "$HOME/.npm-global"
npm config set prefix "$HOME/.npm-global"
export PATH="$HOME/.npm-global/bin:$PATH"Gateway won't start
openclaw gateway status
openclaw logs --follow
openclaw doctor| Log message | What it means and how to fix it |
|---|---|
EADDRINUSE or another gateway instance is already listening | The port (default 18789) is taken. Stop the other process, or move OpenClaw to another port (below). |
Gateway start blocked: set gateway.mode=local or existing config is missing gateway.mode | The Gateway is set to remote mode, or the config is missing its local-mode setting. Run openclaw doctor --fix. |
refusing to bind gateway ... without auth | You're binding to a non-loopback address without a token or password. Add auth, or bind to 127.0.0.1. |
| Node version error | Node is too old. OpenClaw needs 24.16.0+ or 26.1.0+. Rerun the installer or upgrade Node, then retry. |
| Config won't load | Run openclaw config validate to find the bad key or syntax. openclaw.json is JSON5, so use config validate rather than a strict JSON checker. |
Change the port
openclaw config set gateway.port 18790
openclaw gateway restartService installed but not running
openclaw gateway status should show Service: ... (loaded) and Runtime: running. If it doesn't, reinstall and start the service:
openclaw gateway install
openclaw gateway startOn Windows, a disabled Scheduled Task is reported by openclaw gateway status. Run openclaw gateway start or openclaw doctor --fix to re-enable it.
Dashboard won't connect
Open it with openclaw dashboard. openclaw gateway status prints the dashboard URL.
| Log message | Meaning |
|---|---|
gateway connect failed: | The UI points at the wrong URL or port, or the Gateway isn't running. |
unauthorized (repeated) | Wrong token or password, or a stale paired device token. |
origin not allowed | The browser's origin isn't allowed for this Gateway. |
device identity required | You opened the UI over plain HTTP from another machine. Use localhost, HTTPS or an SSH tunnel. |
too many failed authentication attempts | Too many failed logins from that browser. Wait and retry. |
Bot not replying
openclaw channels status --probe
openclaw pairing list --channel <channel>
openclaw logs --follow| Log message | Meaning |
|---|---|
pairing request | The sender isn't approved yet. Approve them with openclaw pairing approve <channel> <CODE> or in the Control UI. |
mention required | A group message was ignored because the bot wasn't mentioned. |
blocked / allowlist | The sender, room or group is filtered by your access policy. |
not_in_channel, missing_scope, Forbidden, 401/403 | The channel token is missing a permission or the bot isn't in that channel. |
Not linked. Link it again by scanning the QR code:
openclaw channels login --channel whatsapp
openclaw channels statusLinked but keeps reconnecting. Check connectivity first with openclaw channels status --probe, openclaw doctor and openclaw logs --follow. If the loop continues, back up the account's auth folder and re-link:
cp -a ~/.openclaw/credentials/whatsapp/<accountId> \
~/.openclaw/credentials/whatsapp/<accountId>.bak
openclaw channels logout --channel whatsapp --account <accountId>
openclaw channels login --channel whatsapp --account <accountId>QR login times out behind a proxy (status=408). Make sure the Gateway process has your HTTPS_PROXY settings and that NO_PROXY doesn't match mmg.whatsapp.net.
Reply shows in the transcript but not in WhatsApp. Look for auto-reply delivery failed in the logs.
Slack: not_in_channel
The bot isn't in that channel. Invite it from Slack with /invite @YourBotName.
Cron jobs and automations not firing
openclaw cron and openclaw automations are the same command.
openclaw automations status # scheduler enabled? next wake?
openclaw automations list
openclaw automations runs <jobId> --limit 20
openclaw automations show <jobId>Check:
- Is the scheduler on?
cron: scheduler disabled; jobs will not run automaticallyin the logs means cron is turned off. - Was the Gateway running? Jobs only run inside a running Gateway. A sleeping laptop misses them.
- Is the schedule right? Schedules use cron syntax. Natural-language schedules aren't supported. Set the time zone with
--tzand an IANA zone such asAmerica/New_York. - Old job files? Since 2026.6.1, jobs are stored in SQLite. If
jobs.jsonorruns/*.jsonlfiles are still there from an old install, install 2026.9.7 and runopenclaw doctor --fixbefore upgrading further.
Run a job now
openclaw automations run <jobId>This runs the job right away, whatever its schedule says.
Agent is missing tools
Check which tool profile is active with openclaw status --all.
tools.profile | What it allows |
|---|---|
minimal | Session status and Gateway maintenance only |
messaging | Narrow, for chat-only agents |
coding | Repo, file, shell and runtime work |
full | Local onboarding default, no core filtering |
Per-agent settings under agents.entries.*.tools can narrow or widen this for one agent. Change the profile, restart the Gateway, then check openclaw status --all again.
Exec suddenly asks for approval
openclaw config get tools.exec.host
openclaw config get tools.exec.security
openclaw config get tools.exec.askBy default, security is full and ask is off on the Gateway, so approval prompts mean a stricter policy was set somewhere. If you want review on unknown commands only, a safer option is security=allowlist with ask=on-miss.
Plugins blocked or stale after an update
If plugins show blocked by install policy or were disabled after an update:
openclaw doctor --deep
openclaw plugins update --all
openclaw status --allTo check a disabled plugin before turning it back on:
openclaw plugins inspect <plugin-id> --runtime --json
openclaw plugins enable <plugin-id>blocked plugin candidate: suspicious ownership means the plugin files belong to a different user than the one running OpenClaw. In Docker, the container runs as node (uid 1000):
sudo chown -R 1000:1000 /path/to/openclaw-config /path/to/openclaw-workspace
openclaw doctor --fixConfig problems
openclaw config file # where your config lives
openclaw config validate # check it
openclaw doctor --fix # repair and migrateThere is no openclaw config reset. Use openclaw config unset <key> to remove a single setting, or openclaw doctor --fix to repair.
Memory: dreaming
Dreaming (background memory consolidation) is on by default. Check it from chat with the /dreaming status slash command. It's a chat command, not a CLI command. /dreaming on and /dreaming off need owner rights.
To turn it off in config:
{
"plugins": {
"entries": {
"memory-core": {
"config": {
"dreaming": { "enabled": false }
}
}
}
}
}Dreaming runs as a managed cron job (default 0 3 * * *), so it won't run if the cron scheduler is disabled. To preview what would be promoted to MEMORY.md, run openclaw memory promote, and run openclaw memory status --deep for details.
Slow responses
- Check your AI provider's status page.
- Try a smaller or faster model from your provider.
- For local models, see the local models docs on memory and context size.
Getting help
- Run
openclaw triageto get a sanitized diagnosis you can share. - Official support: community.openclaw.ai and the official troubleshooting guide.
- Bugs: OpenClaw GitHub issues.
When you ask for help, include openclaw status --all and openclaw logs --limit 50. Check them for tokens and phone numbers first.
FAQ
- What should I check first when OpenClaw stops working?
- Run
openclaw logs --limit 100and find theERRORline. Then runopenclaw doctorandopenclaw gateway status. A healthy Gateway showsRuntime: runningand a successful connectivity check. Sources: OpenClaw logs CLI, OpenClaw troubleshooting. - Why do I get 'openclaw: command not found' after installing?
- It's almost always a PATH problem: npm's global bin directory isn't on your shell's PATH. Run
npm prefix -g, then addexport PATH="$(npm prefix -g)/bin:$PATH"to~/.bashrcor~/.zshrcand open a new terminal. Source: OpenClaw Node.js docs. - Why is my OpenClaw bot not replying?
- Run
openclaw channels status --probeto check the channel is connected, thenopenclaw pairing list --channel <channel>to see whether the sender is still waiting for approval. In the logs,pairing requestmeans the sender isn't approved yet, andmention requiredmeans a group message was ignored because the bot wasn't mentioned. Source: OpenClaw troubleshooting. - How do I fix a WhatsApp disconnection in OpenClaw?
- If the channel says it isn't linked, run
openclaw channels login --channel whatsappand scan the QR code. If it keeps reconnecting, back up~/.openclaw/credentials/whatsapp/<accountId>, then runopenclaw channels logoutandopenclaw channels loginfor that account. Source: OpenClaw WhatsApp docs. - Why are my OpenClaw cron jobs not firing?
- Run
openclaw automations statusto confirm the scheduler is enabled and has a next run, thenopenclaw automations runs <jobId> --limit 20to see recent results. The Gateway must be running at the scheduled time, and schedules use cron syntax with an IANA time zone (--tz).openclaw cronandopenclaw automationsare the same command. Sources: OpenClaw troubleshooting, automations CLI. - How do I reset my OpenClaw config?
- There's no
openclaw config resetcommand. Runopenclaw config validateto find the problem, andopenclaw doctor --fixto repair and migrate config. Source: OpenClaw config CLI.