openclaw - 💡(How to fix) Fix ClawHub install for @openguardrails/moltguard fails with missing zip in /tmp [1 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#57949Fetched 2026-04-08 01:55:50
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0

Error Message

The package should download/extract/install successfully, or fail with a clearer package fetch error if the artifact is missing upstream.

Root Cause

Suspected Root Causes

Code Example

openclaw plugins install @openguardrails/moltguard

---

Resolving clawhub:@openguardrails/moltguard…
ClawHub code-plugin @openguardrails/moltguard@6.9.4 channel=community verification=source-linked
Compatibility: pluginApi=^2026.1.0
ClawHub package "@openguardrails/moltguard" is community; review source and verification before enabling.
ENOENT: no such file or directory, open '/tmp/openclaw-clawhub-package-.../@openguardrails/moltguard.zip'
RAW_BUFFERClick to expand / collapse

Bug Description

Installing the ClawHub plugin @openguardrails/moltguard fails after successful package resolution.

The CLI resolves metadata correctly, shows compatibility, and recognizes the package as a community code-plugin, but then fails trying to open the downloaded zip payload from /tmp.

Command

openclaw plugins install @openguardrails/moltguard

Actual Behavior

Output ends with:

Resolving clawhub:@openguardrails/moltguard…
ClawHub code-plugin @openguardrails/[email protected] channel=community verification=source-linked
Compatibility: pluginApi=^2026.1.0
ClawHub package "@openguardrails/moltguard" is community; review source and verification before enabling.
ENOENT: no such file or directory, open '/tmp/openclaw-clawhub-package-.../@openguardrails/moltguard.zip'

Expected Behavior

The package should download/extract/install successfully, or fail with a clearer package fetch error if the artifact is missing upstream.

Notes

  • Other ClawHub installs have worked on this machine before
  • This looks specific to this package or the code-plugin/source-linked install path
  • Resolution succeeds; the failure occurs at payload retrieval/open time

Environment

  • OpenClaw: 2026.3.28
  • OS: Ubuntu Linux 6.17.0-19
  • Node: v22.22.1

Suspected Root Causes

  • missing/malformed generated zip artifact for this package
  • bug in temp-path handling for source-linked community code-plugins
  • mismatch between resolved package metadata and actual artifact location

extent analysis

Fix Plan

To resolve the issue with installing the @openguardrails/moltguard plugin, we will attempt to fix the temporary path handling for source-linked community code-plugins.

  1. Verify the package metadata: Check the package metadata to ensure the artifact location is correct.
  2. Update the OpenClaw configuration: Update the OpenClaw configuration to use a custom temporary directory.
  3. Implement a custom download handler: Implement a custom download handler to handle the package download and extraction.

Example Code: Custom Download Handler

// custom-download-handler.js
const fs = require('fs');
const path = require('path');
const https = require('https');

const downloadPackage = (packageName, packageVersion) => {
  const url = `https://clawhub.com/packages/${packageName}/${packageVersion}.zip`;
  const tempDir = path.join(process.cwd(), 'tmp');
  const packagePath = path.join(tempDir, `${packageName}.zip`);

  return new Promise((resolve, reject) => {
    https.get(url, (res) => {
      const file = fs.createWriteStream(packagePath);
      res.pipe(file);

      file.on('finish', () => {
        file.close();
        resolve(packagePath);
      });
    }).on('error', (err) => {
      reject(err);
    });
  });
};

module.exports = downloadPackage;

Usage:

node custom-download-handler.js @openguardrails/moltguard 6.9.4

Then, use the downloaded package path to install the plugin:

openclaw plugins install --package-path /path/to/downloaded/package.zip

Verification

To verify the fix, attempt to install the plugin using the custom download handler and check the installation logs for any errors.

Extra Tips

  • Ensure the custom temporary directory has the necessary permissions for the OpenClaw process.
  • Consider implementing error handling and logging for the custom download handler.
  • If the issue persists, investigate the package metadata and artifact location for any discrepancies.

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