From 318fb64bce00aecf9eef538b88ce5c46b2a35489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=A8=E6=88=B7CI=20Test?= Date: Sat, 11 Jul 2026 22:26:25 +0800 Subject: [PATCH] temp: diagnostic workflow for CMD Agent --- .gitea/workflows/temp-cmd-agent-fix.yml | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/temp-cmd-agent-fix.yml diff --git a/.gitea/workflows/temp-cmd-agent-fix.yml b/.gitea/workflows/temp-cmd-agent-fix.yml new file mode 100644 index 000000000..161347589 --- /dev/null +++ b/.gitea/workflows/temp-cmd-agent-fix.yml @@ -0,0 +1,36 @@ +name: Temp CMD Agent Fix +on: + push: + branches: + - temp/cmd-agent-fix + +jobs: + fix-cmd-agent: + name: Fix CMD Agent Token + runs-on: host + steps: + - name: Diagnose CMD Agent + run: | + echo "=== 查找 CMD Agent 位置 ===" + find / -name "cmd-agent*" -type f 2>/dev/null | head -20 + echo "" + echo "=== systemd 服务 ===" + systemctl list-units --type=service | grep -i cmd || true + echo "" + echo "=== 进程检查 ===" + ps aux | grep -i "cmd.*agent\|cmdagent" | grep -v grep || true + echo "" + echo "=== /opt 目录 ===" + ls -la /opt/ 2>/dev/null || true + + - name: Find CMD Agent Config + run: | + echo "=== 查找配置文件 ===" + find /opt -name "*.json" -path "*cmd*" 2>/dev/null + find /opt -name "*.yaml" -path "*cmd*" 2>/dev/null + find /opt -name "*.yml" -path "*cmd*" 2>/dev/null + find /etc -name "*cmd*" 2>/dev/null + echo "" + echo "=== 找token相关 ===" + find /opt -name "*.env" -path "*cmd*" 2>/dev/null + grep -r "xsa-" /opt/cmd-agent/ 2>/dev/null || true