📦 Openclaw Gateway Fd Fix — 修复文件句柄耗尽

v1.0.0

一键修复 OpenClaw Gateway 因文件描述符耗尽导致的“spawn EBADF”“RPC probe failed”“EMFILE too many open files”等报错,自动清理冗余句柄并优化上限配置,恢复服务稳定。

0· 581·1 当前·1 累计
thomaszhang2661 头像by @thomaszhang2661 (Jian Zhang)
下载技能包
最后更新
2026/4/22
0
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
安全
high confidence
NULL
评估建议
This skill appears to do what it says, but it performs destructive and persistent actions: it may delete .venv/node_modules directories and will edit and reload your LaunchAgent plist. Before running: (1) Inspect fix.sh yourself (it's included). (2) Let the script list candidate directories and only approve deletion if you understand which items will be removed — consider moving rather than deleting. (3) Verify the plist backup ($PLIST.bak.<timestamp>) exists before any change. (4) Be aware the ...
详细分析 ▾
用途与能力
The skill claims to detect and repair FD exhaustion for the OpenClaw Gateway on macOS. The included fix.sh finds large dependency directories in ~/.openclaw/workspace, optionally deletes them, updates the user's LaunchAgent plist to raise NumberOfFiles, and restarts the gateway—these actions align with the stated goal.
指令范围
Instructions are narrowly focused on the gateway issue and reference only workspace, the LaunchAgent plist, and gateway commands. They do perform destructive actions (rm -rf of .venv/node_modules) and modify ~/Library/LaunchAgents/ai.openclaw.gateway.plist then restart the service. The script prompts for confirmation before deletion and backs up the plist. Minor safety issues: some variables used with rm -rf are unquoted (possible word-splitting/edge-case deletion problems), and the script assumes the presence of 'openclaw' and macOS tools.
安装机制
No install spec; the skill is instruction-only with an included shell script. Nothing is downloaded or installed automatically.
凭证需求
The skill requests no environment variables, credentials, or unrelated config paths. It only touches user-owned files under $HOME, which are relevant to the task.
持久化与权限
The script modifies the user's LaunchAgent plist and uses launchctl to unload/load the agent (user-level service changes). This is expected for changing FD limits, but it is a persistent change to user service configuration and requires user consent; there is no 'always: true' privilege escalation.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/2/20

NULL

可疑

安装命令

点击复制
官方npx clawhub@latest install openclaw-gateway-fd-fix
镜像加速npx clawhub@latest install openclaw-gateway-fd-fix --registry https://cn.longxiaskill.com
数据来源ClawHub ↗ · 中文优化:龙虾技能库