diag: host diagnostics workflow
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user