返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
g

gateway-auto-fix

Automatically monitor OpenClaw gateway status and fix when RPC probe fails. Uses OpenClaw cron system - just install and it works!

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.0.0
安全检测
已通过
472
下载量
0
收藏
概述
安装方式
版本历史

gateway-auto-fix

# Gateway Auto-Fix Skill ## Overview This skill automatically monitors the OpenClaw gateway and fixes it when the RPC probe fails. It uses OpenClaw's built-in cron system for scheduling. ## What It Does 1. Checks `openclaw gateway status` every minute 2. Detects "RPC probe: failed" in the output 3. Automatically runs: - `openclaw doctor --fix` to fix config issues - `openclaw gateway restart` to restart the gateway 4. Logs all actions to `/tmp/openclaw-auto-fix.log` ## Quick Install (Automatic) ```bash npx clawhub install gateway-auto-fix ``` That's it! The skill will: - ✅ Add OpenClaw cron job (every 1 minute) - ✅ Create the script - ✅ Start monitoring ## Manual Install (If ClawHub Not Available) ```bash # 1. Copy the script to workspace mkdir -p ~/.openclaw-it/workspace cp /path/to/gateway-auto-fix/openclaw-auto-fix.sh ~/.openclaw-it/workspace/ # 2. Make executable chmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh # 3. Add OpenClaw cron job openclaw cron add \ --name "gateway-auto-fix" \ --every "1m" \ --message "Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh" \ --no-deliver ``` ## Manual Uninstall ```bash # Remove cron job openclaw cron rm gateway-auto-fix # Remove script rm ~/.openclaw-it/workspace/openclaw-auto-fix.sh ``` ## Usage ### Check Cron Status ```bash openclaw cron list openclaw cron status ``` ### Check Logs ```bash tail -f /tmp/openclaw-auto-fix.log ``` ### Run Manually ```bash ~/.openclaw-it/workspace/openclaw-auto-fix.sh # Or via OpenClaw cron openclaw cron run gateway-auto-fix ``` ## Troubleshooting ### Check if cron is running: ```bash openclaw cron status ``` ### Check gateway: ```bash openclaw gateway status ``` ### Run manually: ```bash openclaw cron run gateway-auto-fix ``` ## Files Created - Script: `~/.openclaw-it/workspace/openclaw-auto-fix.sh` - Log: `/tmp/openclaw-auto-fix.log` - Cron: OpenClaw built-in (every 1 minute) ## Configuration ### Change Interval ```bash # Remove old job openclaw cron rm gateway-auto-fix # Add new job with different interval (e.g., 5 minutes) openclaw cron add \ --name "gateway-auto-fix" \ --every "5m" \ --message "Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh" \ --no-deliver ``` ## Complete Manual Setup Commands ```bash # Step 1: Create workspace mkdir -p ~/.openclaw-it/workspace # Step 2: Create the script cat > ~/.openclaw-it/workspace/openclaw-auto-fix.sh << 'EOF' #!/bin/bash LOG_FILE="/tmp/openclaw-auto-fix.log" echo "=== $(date) ===" >> $LOG_FILE STATUS_OUTPUT=$(openclaw gateway status 2>&1) echo "$STATUS_OUTPUT" >> $LOG_FILE if echo "$STATUS_OUTPUT" | grep -q "RPC probe: failed"; then echo "RPC probe FAILED! Running auto-fix..." >> $LOG_FILE openclaw doctor --fix 2>&1 >> $LOG_FILE openclaw gateway restart 2>&1 >> $LOG_FILE echo "Auto-fix completed at $(date)" >> $LOG_FILE else echo "Gateway is healthy" >> $LOG_FILE fi echo "---" >> $LOG_FILE EOF # Step 3: Make executable chmod +x ~/.openclaw-it/workspace/openclaw-auto-fix.sh # Step 4: Add OpenClaw cron job openclaw cron add \ --name "gateway-auto-fix" \ --every "1m" \ --message "Run: ~/.openclaw-it/workspace/openclaw-auto-fix.sh" \ --no-deliver # Step 5: Verify openclaw cron list ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gateway-auto-fix-1776291953 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gateway-auto-fix-1776291953 技能

通过命令行安装

skillhub install gateway-auto-fix-1776291953

下载 Zip 包

⬇ 下载 gateway-auto-fix v2.0.0

文件大小: 3.14 KB | 发布时间: 2026-4-16 18:16

v2.0.0 最新 2026-4-16 18:16
**Summary**: Version 2.0.0 migrates gateway health checks and auto-fix scheduling to the OpenClaw built-in cron system.

- Uses OpenClaw's built-in cron system instead of standard OS cron for scheduling.
- Updated setup and uninstall instructions to use `openclaw cron add` and `openclaw cron rm`.
- Simplified manual install steps and removed legacy OS-specific cron references.
- Clarified logging and health check instructions.
- Documentation and usage commands updated throughout for clarity and alignment with current OpenClaw conventions.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部