openclaw - 💡(How to fix) Fix Regression: layered OPENCLAW_PLUGIN_STAGE_DIR reinstalls full bundled runtime deps into writable root in 2026.4.29 [1 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#75500Fetched 2026-05-02 05:33:51
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
2
Timeline (top)
closed ×1commented ×1cross-referenced ×1mentioned ×1

Root Cause

This adds about 60-70 seconds to first gateway startup and writes ~795MB into the persistent data volume, even though the deps are already baked into the image.

This is especially painful for provisioned gateway flows where the expected value is a ready gateway in a few minutes.

Code Example

/opt/openclaw/plugin-runtime-deps:/data/plugin-runtime-deps

---

OPENCLAW_PLUGIN_STAGE_DIR=/opt/openclaw/plugin-runtime-deps:/data/plugin-runtime-deps

---

/opt/openclaw/plugin-runtime-deps/openclaw-2026.4.29-f53b52ad6d21

---

/data/plugin-runtime-deps/openclaw-2026.4.29-f53b52ad6d21

---

declared root deps: 45
missing root deps: 0

---

root deps: 45
diffs: 0

---

[plugins] acpx staging bundled runtime deps (45 specs): ...
[plugins] acpx installed bundled runtime deps in 70158ms: ...

---

/data/plugin-runtime-deps 795M
/opt/openclaw/plugin-runtime-deps 795M

---

[plugins] acpx installed bundled runtime deps in 58994ms: ...
/data/plugin-runtime-deps 860M
RAW_BUFFERClick to expand / collapse

Summary

This looks like a regression of #72396.

OPENCLAW_PLUGIN_STAGE_DIR is configured as a layered path list:

/opt/openclaw/plugin-runtime-deps:/data/plugin-runtime-deps

Docs say OpenClaw should resolve bundled plugin runtime deps left-to-right, treat earlier roots as preinstalled/read-only layers, and install/repair only missing deps into the final writable root.

In 2026.4.29, OpenClaw still installs the full bundled runtime deps set into the rightmost writable root, even though the left root already contains the expected hashed folder and all required root deps.

Environment

  • OpenClaw image: ghcr.io/openclaw/openclaw:2026.4.29-amd64
  • Custom image: registry.fly.io/mountapps-openclaw-fly-image:b0501-r0429-pd3-amd64
  • Runtime: Fly.io machine, Linux amd64, Node 24.14.0
  • State dir: /data
  • Stage env:
OPENCLAW_PLUGIN_STAGE_DIR=/opt/openclaw/plugin-runtime-deps:/data/plugin-runtime-deps

What was verified

The image contains the expected hashed folder:

/opt/openclaw/plugin-runtime-deps/openclaw-2026.4.29-f53b52ad6d21

The fresh machine creates the same hashed folder under /data:

/data/plugin-runtime-deps/openclaw-2026.4.29-f53b52ad6d21

The /opt folder contains all 45 declared root deps:

declared root deps: 45
missing root deps: 0

Root dep versions were compared between /opt and /data after install:

root deps: 45
diffs: 0

So this does not look like a missing or mismatched root dependency.

Actual behavior

On a fresh 2026.4.29 machine, OpenClaw still staged and installed the full bundled runtime deps into /data:

[plugins] acpx staging bundled runtime deps (45 specs): ...
[plugins] acpx installed bundled runtime deps in 70158ms: ...

After startup:

/data/plugin-runtime-deps 795M
/opt/openclaw/plugin-runtime-deps 795M

A previous run showed the same behavior:

[plugins] acpx installed bundled runtime deps in 58994ms: ...
/data/plugin-runtime-deps 860M

Expected behavior

Because /opt/openclaw/plugin-runtime-deps/openclaw-2026.4.29-f53b52ad6d21 already contains all required root deps, OpenClaw should reuse it and avoid installing the full 45-dep set into /data.

Only deps missing from earlier roots should be installed into the final writable root.

Why this matters

This adds about 60-70 seconds to first gateway startup and writes ~795MB into the persistent data volume, even though the deps are already baked into the image.

This is especially painful for provisioned gateway flows where the expected value is a ready gateway in a few minutes.

Related

  • Looks like regression of #72396
  • Related multi-path lookup issue: #73815

extent analysis

TL;DR

The most likely fix is to update OpenClaw to a version where the regression of #72396 is resolved, as the current version 2026.4.29 does not correctly reuse preinstalled dependencies from earlier roots in the OPENCLAW_PLUGIN_STAGE_DIR path.

Guidance

  • Verify that the leftmost path in OPENCLAW_PLUGIN_STAGE_DIR indeed contains all required dependencies and that their versions match the expected ones.
  • Check if there are any known issues or fixes related to #72396 and #73815 that could be applied to the current version of OpenClaw.
  • Consider reaching out to the OpenClaw community or maintainers for guidance on how to properly configure OPENCLAW_PLUGIN_STAGE_DIR to achieve the expected behavior of reusing preinstalled dependencies.
  • Review the documentation for any specific requirements or constraints on the directory structure or contents of the paths listed in OPENCLAW_PLUGIN_STAGE_DIR.

Notes

The provided information suggests a regression in OpenClaw's handling of layered paths, which was previously fixed but seems to have resurfaced in version 2026.4.29. Without direct access to the codebase or further details on the internal workings of OpenClaw, the best course of action is to seek an update or patch that addresses this regression.

Recommendation

Apply a workaround by manually managing dependencies or waiting for an update that fixes the regression of #72396, as the current behavior significantly impacts startup time and data volume usage.

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…

FAQ

Expected behavior

Because /opt/openclaw/plugin-runtime-deps/openclaw-2026.4.29-f53b52ad6d21 already contains all required root deps, OpenClaw should reuse it and avoid installing the full 45-dep set into /data.

Only deps missing from earlier roots should be installed into the final writable root.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING