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