openclaw - 💡(How to fix) Fix Gateway crash-loops when hooks.transformsDir points to workspace skill path [2 comments, 2 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#75853Fetched 2026-05-02 05:28:57
View on GitHub
Comments
2
Participants
2
Timeline
2
Reactions
2
Author
Timeline (top)
commented ×2

Error Message

  • Gateway failed to start: Error: Hook transformsDir module path must be within /home/clawuser/.openclaw/hooks/transforms: /home/clawuser/.openclaw/workspace/skills/linear-webhook
  • The gateway hard-fails startup instead of surfacing a clear config error with a recovery path.
  • refuse the config with a direct validation error before crash-looping, or
RAW_BUFFERClick to expand / collapse

OpenClaw gateway v2026.4.29 crash-loops on startup when the config contains a hooks.transformsDir outside ~/.openclaw/hooks/transforms.

Observed on a local install in WSL2:

  • The control UI/login page loads, but clicking Connect showed disconnected (1006): no reason.
  • openclaw gateway status --json showed repeated auto-restart / ECONNREFUSED while the gateway was failing to stay up.
  • The journal showed:
    • Gateway failed to start: Error: Hook transformsDir module path must be within /home/clawuser/.openclaw/hooks/transforms: /home/clawuser/.openclaw/workspace/skills/linear-webhook
    • repeated restart attempts from systemd.
  • Removing the hooks block from ~/.openclaw/openclaw.json and ~/.openclaw/openclaw.json.last-good allowed the gateway to reach ready and the webchat connection to succeed.

The problematic config was:

  • hooks.transformsDir: "/home/clawuser/.openclaw/workspace/skills/linear-webhook"
  • mapping transform module: ./openclaw-linear-transform.js

Why this looks like an OpenClaw regression rather than a user mistake:

  • The invalid path existed in both openclaw.json and openclaw.json.last-good.
  • The current runtime enforces containment under ~/.openclaw/hooks/transforms, but there is no migration or downgrade path for older configs that were previously accepted or written by OpenClaw.
  • The gateway hard-fails startup instead of surfacing a clear config error with a recovery path.

Expected behavior:

  • Either migrate old hooks.transformsDir values into the canonical hooks directory, or
  • refuse the config with a direct validation error before crash-looping, or
  • keep compatibility with older config paths that OpenClaw itself generated.

A small improvement in openclaw doctor or gateway status would also help: detect this specific invalid path and tell the user exactly how to fix it.

extent analysis

TL;DR

Update the hooks.transformsDir path in ~/.openclaw/openclaw.json to a directory within ~/.openclaw/hooks/transforms to resolve the crash-loop issue.

Guidance

  • Verify that the hooks.transformsDir path is within the allowed directory by checking the openclaw.json and openclaw.json.last-good files.
  • Update the hooks.transformsDir path to a valid directory, such as ~/.openclaw/hooks/transforms/linear-webhook.
  • Consider migrating existing transform modules to the new directory to maintain compatibility.
  • Check the openclaw doctor or gateway status output for any hints on resolving the issue, although a more informative error message is expected in future improvements.

Example

No code snippet is provided as the issue is related to configuration and directory paths.

Notes

The current implementation enforces a specific directory structure for hooks.transformsDir, which may not be compatible with older configurations. A migration or downgrade path is not available, and the gateway fails to start with an unclear error message.

Recommendation

Apply workaround: update the hooks.transformsDir path to a valid directory within ~/.openclaw/hooks/transforms, as this is the most straightforward solution to resolve the crash-loop issue.

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 crash-loops when hooks.transformsDir points to workspace skill path [2 comments, 2 participants]