From 12102b8ae1c70be1c814760fdb63d3b82bb55cb0 Mon Sep 17 00:00:00 2001 From: DevOps Date: Tue, 16 Jun 2026 21:09:02 +0200 Subject: [PATCH] diag: host diagnostics workflow --- .gitea/workflows/diag.yaml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/diag.yaml diff --git a/.gitea/workflows/diag.yaml b/.gitea/workflows/diag.yaml new file mode 100644 index 0000000..8b9ef59 --- /dev/null +++ b/.gitea/workflows/diag.yaml @@ -0,0 +1,43 @@ +name: Host Diagnostics +run-name: 🔍 Host Diagnostics + +on: + workflow_dispatch: + +jobs: + diag: + runs-on: ubuntu-latest + steps: + - name: Docker PS + run: | + echo "=== docker ps ===" + docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" + echo "" + echo "=== docker ps -a (nexus) ===" + docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" --filter "name=nexus" + - name: Port 18880 check + run: | + echo "=== curl 127.0.0.1:18880 ===" + curl -sv --max-time 5 http://127.0.0.1:18880/ 2>&1 || true + echo "" + echo "=== curl 127.0.0.1:18880/health ===" + curl -sv --max-time 5 http://127.0.0.1:18880/health 2>&1 || true + - name: Port listeners + run: | + echo "=== ss -tlnp | grep 1888 ===" + ss -tlnp 2>/dev/null | grep 1888 || echo "ss not available, trying netstat" + netstat -tlnp 2>/dev/null | grep 1888 || echo "netstat not available" + - name: Nginx config check + run: | + echo "=== nginx -t ===" + nginx -t 2>&1 || echo "nginx not accessible" + echo "" + echo "=== nginx sites-enabled ===" + ls -la /etc/nginx/sites-enabled/ 2>/dev/null || echo "path not found" + - name: Container logs + run: | + echo "=== nexus-web-1 logs ===" + docker logs --tail 30 nexus-web-1 2>&1 || echo "cannot get logs" + echo "" + echo "=== nexus-api-1 logs ===" + docker logs --tail 10 nexus-api-1 2>&1 || echo "cannot get logs"