Skip to main content

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 account

The 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 error

openclaw: 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 output

If 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 messageWhat it means and how to fix it
EADDRINUSE or another gateway instance is already listeningThe 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.modeThe Gateway is set to remote mode, or the config is missing its local-mode setting. Run openclaw doctor --fix.
refusing to bind gateway ... without authYou're binding to a non-loopback address without a token or password. Add auth, or bind to 127.0.0.1.
Node version errorNode is too old. OpenClaw needs 24.16.0+ or 26.1.0+. Rerun the installer or upgrade Node, then retry.
Config won't loadRun 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 restart

Service 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 start

On 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 messageMeaning
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 allowedThe browser's origin isn't allowed for this Gateway.
device identity requiredYou opened the UI over plain HTTP from another machine. Use localhost, HTTPS or an SSH tunnel.
too many failed authentication attemptsToo 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 messageMeaning
pairing requestThe sender isn't approved yet. Approve them with openclaw pairing approve <channel> <CODE> or in the Control UI.
mention requiredA group message was ignored because the bot wasn't mentioned.
blocked / allowlistThe sender, room or group is filtered by your access policy.
not_in_channel, missing_scope, Forbidden, 401/403The channel token is missing a permission or the bot isn't in that channel.

WhatsApp

Not linked. Link it again by scanning the QR code:

openclaw channels login --channel whatsapp
openclaw channels status

Linked 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.

→ WhatsApp channel guide

Slack: not_in_channel

The bot isn't in that channel. Invite it from Slack with /invite @YourBotName.

→ Slack channel guide

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:

  1. Is the scheduler on? cron: scheduler disabled; jobs will not run automatically in the logs means cron is turned off.
  2. Was the Gateway running? Jobs only run inside a running Gateway. A sleeping laptop misses them.
  3. Is the schedule right? Schedules use cron syntax. Natural-language schedules aren't supported. Set the time zone with --tz and an IANA zone such as America/New_York.
  4. Old job files? Since 2026.6.1, jobs are stored in SQLite. If jobs.json or runs/*.jsonl files are still there from an old install, install 2026.9.7 and run openclaw doctor --fix before upgrading further.

Run a job now

openclaw automations run <jobId>

This runs the job right away, whatever its schedule says.

→ Module 6: Autonomous Tasks

Agent is missing tools

Check which tool profile is active with openclaw status --all.

tools.profileWhat it allows
minimalSession status and Gateway maintenance only
messagingNarrow, for chat-only agents
codingRepo, file, shell and runtime work
fullLocal 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.ask

By 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 --all

To 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 --fix

Config problems

openclaw config file       # where your config lives
openclaw config validate   # check it
openclaw doctor --fix      # repair and migrate

There 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

  1. Run openclaw triage to get a sanitized diagnosis you can share.
  2. Official support: community.openclaw.ai and the official troubleshooting guide.
  3. 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 100 and find the ERROR line. Then run openclaw doctor and openclaw gateway status. A healthy Gateway shows Runtime: running and 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 add export PATH="$(npm prefix -g)/bin:$PATH" to ~/.bashrc or ~/.zshrc and open a new terminal. Source: OpenClaw Node.js docs.
Why is my OpenClaw bot not replying?
Run openclaw channels status --probe to check the channel is connected, then openclaw pairing list --channel <channel> to see whether the sender is still waiting for approval. In the logs, pairing request means the sender isn't approved yet, and mention required means 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 whatsapp and scan the QR code. If it keeps reconnecting, back up ~/.openclaw/credentials/whatsapp/<accountId>, then run openclaw channels logout and openclaw channels login for that account. Source: OpenClaw WhatsApp docs.
Why are my OpenClaw cron jobs not firing?
Run openclaw automations status to confirm the scheduler is enabled and has a next run, then openclaw automations runs <jobId> --limit 20 to see recent results. The Gateway must be running at the scheduled time, and schedules use cron syntax with an IANA time zone (--tz). openclaw cron and openclaw automations are the same command. Sources: OpenClaw troubleshooting, automations CLI.
How do I reset my OpenClaw config?
There's no openclaw config reset command. Run openclaw config validate to find the problem, and openclaw doctor --fix to repair and migrate config. Source: OpenClaw config CLI.