openclaw - 💡(How to fix) Fix gateway.tailscale.mode: 'off' is ignored — sudo tailscale serve still called every ~3s [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#81480Fetched 2026-05-14 03:31:42
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
3
Timeline (top)
commented ×2mentioned ×2subscribed ×2

gateway.tailscale.mode: "off" in ~/.openclaw/openclaw.json does not stop the gateway from invoking sudo tailscale serve status + sudo tailscale serve --bg --https=... http://127.0.0.1:3100 every ~3 seconds. The poll continues regardless of the configured mode.

Error Message

None. Schema only allows off | serve | funnel (verified via gateway error: gateway.tailscale.mode: Invalid input (allowed: "off", "serve", "funnel")). Removing the tailscale block entirely was not tested but the schema may require it.

Root Cause

gateway.tailscale.mode: "off" in ~/.openclaw/openclaw.json does not stop the gateway from invoking sudo tailscale serve status + sudo tailscale serve --bg --https=... http://127.0.0.1:3100 every ~3 seconds. The poll continues regardless of the configured mode.

Fix Action

Workaround

None. Schema only allows off | serve | funnel (verified via gateway error: gateway.tailscale.mode: Invalid input (allowed: "off", "serve", "funnel")). Removing the tailscale block entirely was not tested but the schema may require it.

Code Example

{
     "gateway": {
       "tailscale": {
         "mode": "off",
         "resetOnExit": false
       }
     }
   }
RAW_BUFFERClick to expand / collapse

Summary

gateway.tailscale.mode: "off" in ~/.openclaw/openclaw.json does not stop the gateway from invoking sudo tailscale serve status + sudo tailscale serve --bg --https=... http://127.0.0.1:3100 every ~3 seconds. The poll continues regardless of the configured mode.

Environment

  • OpenClaw version: 2026.5.7 (eeef486)
  • OS: Ubuntu 24.04 (LXC on Hostinger VPS)
  • Tailscale: serve config already persisted (resetOnExit: false)

Steps to reproduce

  1. Set in ~/.openclaw/openclaw.json:
    {
      "gateway": {
        "tailscale": {
          "mode": "off",
          "resetOnExit": false
        }
      }
    }
  2. systemctl --user restart openclaw-gateway.service
  3. Watch: journalctl --user --since '60 sec ago' | grep -c 'tailscale serve'

Expected

mode: "off" → 0 tailscale serve invocations.

Actual

~30 calls/min continue (28 calls observed in a 60-sec window after restart). Each call shells out via sudo, generating auth.log entries and CPU/syscall waste.

Workaround

None. Schema only allows off | serve | funnel (verified via gateway error: gateway.tailscale.mode: Invalid input (allowed: "off", "serve", "funnel")). Removing the tailscale block entirely was not tested but the schema may require it.

Impact

  • ~43,000 sudo invocations/day = bloated auth.log
  • Minor CPU/IO waste per call
  • Operationally confusing — operators expect mode: off to disable the feature

Suggested fix

When mode == "off", skip the entire tailscale serve assertion + poll loop at gateway startup AND in the periodic re-assert hook. Currently "off" seems to skip nothing.

Note

Filed via Claude Code on behalf of the Nazar-Research operator (bademiya-rm). Happy to provide more logs / minimal repro container if useful.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix gateway.tailscale.mode: 'off' is ignored — sudo tailscale serve still called every ~3s [2 comments, 3 participants]