#Gateway issie
1 messages ยท Page 1 of 1 (latest)
Let me check the actual docs first so I don't guess.
Need one more pass through the docs/code for likely update regressions around Telegram sessions.
Since cron messages still arrive, Telegram itself is probably fine. This usually points to the interactive agent run/session path, not the Telegram transport.
Iโd try this in order:
- In Telegram, send:
/new
If that fixes it, the upgrade likely left an old session in a bad state.
- On the host, run:
openclaw --version
openclaw status --all
openclaw doctor --fix
openclaw sessions cleanup --enforce --fix-missing
openclaw gateway restart
- Then retry from Telegram. If it still fails, tail logs while sending one message:
openclaw logs --follow
Two common causes Iโd specifically look for:
- stale/broken session state after upgrade
- Active Memory timing out before reply, which can surface exactly as this generic error
If you see active-memory: ... status=timeout in logs, temporarily disable it and test again:
/active-memory off
Docs:
- FAQ: https://docs.openclaw.ai/help/faq
- Troubleshooting: https://docs.openclaw.ai/gateway/troubleshooting
- Sessions cleanup: https://docs.openclaw.ai/cli/sessions
- Active Memory: https://docs.openclaw.ai/concepts/active-memory
If you paste:
openclaw --version- the output of
openclaw status --all - the first error lines from
openclaw logs --followright after a failed Telegram message
โฆI can narrow it down pretty fast.
ham2sexy@Mac-mini .openclaw % openclaw --version
OpenClaw 2026.4.21 (f788c88)
ham2sexy@Mac-mini .openclaw % openclaw status --all
๐ฆ OpenClaw 2026.4.21 (f788c88)
Powered by open source, sustained by spite and good documentation.
โ
OpenClaw status --all
Overview
โ Item โ Value
โ Version โ 2026.4.21 โ
โ OS
โ Node โ 22.20.0 โ Tailscale โ off default) โ
โ Update โ pnpm ยท npm update 2026.4.22 โ
โ Gateway โ local ยท ws://127.0.0.1:18789 (local loopback) ยท unreachable โ
โ โ (unauthorized: gateway token mismatch (provide gateway auth โ
โ โ token)) โ
โ Security โ Run: openclaw security audit --deep โ
โ Gateway self โ unknown โ
โ Gateway service โ LaunchAgent installed ยท loaded ยท running (pid 35501, state โ
โ โ active) โ
โ Node service โ LaunchAgent not installed โ
โ Agents โ 1 total ยท 1 bootstrapping ยท 1 active ยท 41 sessions โ
โ Secrets โ none
Channels
โ Channel โ Enabled โ State โ
โ Telegram โ ON โ OK โ token config (sha256:80359197 ยท len 46) ยท accounts โ
โ โ โ โ 1/1
โ Account โ Status โ Notes
Diagnosis (read-only)
Gateway connection details:
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /Users/ham2sexy/.openclaw/openclaw.json
Bind: loopback
๐ฆ OpenClaw 2026.4.21 (f788c88)
I don't have opinions about tabs vs spaces. I have opinions about everything else.
gateway connect failed: GatewayClientRequestError: unauthorized: gateway token mismatch (set gateway.remote.token to match gateway.auth.token)
Gateway not reachable. Is it running and accessible?
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /Users/ham2sexy/.openclaw/openclaw.json
Bind: loopback
Hint: run openclaw doctor.
ham2sexy@Mac-mini .openclaw %
Nice, your status --all already shows the main clue:
Gateway ... unauthorized: gateway token mismatch
So this looks less like a Telegram problem, and more like your CLI and the running LaunchAgent are using different gateway auth/config. That also explains why cron can still post, while normal chat runs are weird.
Iโd do this first:
openclaw gateway status --deep
openclaw gateway install --force
openclaw gateway restart
openclaw status --all
Important: run that from the same shell/profile/env you want the service to use. If you use --profile or OPENCLAW_PROFILE, use it consistently there too.
Why: the docs call out that when Config (cli) and Config (service) drift, the fix is to reinstall the gateway service from the desired profile/env:
https://docs.openclaw.ai/help/faq#why-does-openclaw-gateway-status-show-config-cli-and-config-service-different
After that, if Telegram still throws the generic error, do:
openclaw doctor --fix
openclaw sessions cleanup --enforce --fix-missing
openclaw logs --follow
Then send one Telegram message and watch the logs.
Two extra clues from your output:
1 bootstrappingis suspicious, so I want to see whether the agent is stuck during startup- because your CLI currently cannot auth to the gateway, session cleanup / doctor may have been targeting the wrong runtime until the service drift is fixed
If the logs show active-memory ... timeout, try this in Telegram and test again:
/active-memory off
If you paste back:
openclaw gateway status --deep- the first error lines from
openclaw logs --followright after one failed Telegram message
โฆI can probably pinpoint it fast.
Docs: https://docs.openclaw.ai/gateway/troubleshooting
Yep, this is the real problem now: local gateway auth drift.
Your CLI is trying to connect to the local gateway with the wrong token:
unauthorized: gateway token mismatch
So Iโd fix gateway auth first, then retest Telegram.
Run these:
openclaw config get gateway.mode
openclaw config get gateway.auth.token
openclaw config get gateway.remote.token
If gateway.mode is local, then gateway.remote.token is usually just stale noise. Remove it:
openclaw config unset gateway.remote.token
openclaw config unset gateway.remote.password
Then reinstall the service so the LaunchAgent and CLI use the same config/env again:
openclaw gateway install --force
openclaw gateway restart
openclaw status --all
If gateway.auth.token is empty/missing, generate one first:
openclaw doctor --generate-gateway-token
openclaw gateway install --force
openclaw gateway restart
What I expect after that:
openclaw status --allshould stop showinggateway token mismatch- then Telegram chat replies should usually start working again
If it still fails after the token mismatch is gone, then do:
openclaw logs --follow
and send one Telegram message. At that point weโll be looking at the actual reply error instead of the gateway auth drift.