initial COM2 system snapshot

This commit is contained in:
gitea
2026-03-06 15:22:40 +00:00
commit 9c0fa49baf
4377 changed files with 273033 additions and 0 deletions

31
COM2_CAUSE_DOCTOR_ONE_SHOT.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -euo pipefail
cd /opt/hx-ki/com2-stack
echo "=== COM2 CAUSE DOCTOR (one-shot) ==="
echo
echo "[1] Status"
docker ps --format 'NAME={{.Names}} STATUS={{.Status}} PORTS={{.Ports}}' | egrep 'hxki-|hx-caddy' || true
echo
echo "[2] Logs (n8n/mautic/postgres/mariadb) letzte 80"
for c in hxki-n8n hxki-mautic hxki-postgres hxki-mariadb; do
echo; echo "--- $c ---"
docker logs --tail=80 "$c" 2>&1 || true
done
echo
echo "[3] Listen-Check im Container (muss LISTEN zeigen)"
docker exec -it hxki-n8n sh -lc '(ss -lntp 2>/dev/null || true) | egrep "(:5678\\b|LISTEN)" || true'
docker exec -it hxki-postgres sh -lc '(ss -lntp 2>/dev/null || true) | egrep "(:5432\\b|LISTEN)" || true'
docker exec -it hxki-mariadb sh -lc '(ss -lntp 2>/dev/null || true) | egrep "(:3306\\b|LISTEN)" || true'
docker exec -it hxki-mautic sh -lc '(ss -lntp 2>/dev/null || true) | egrep "(:80\\b|LISTEN)" || true'
echo
echo "[4] Caddy -> Upstreams (nur Test, kein Fix)"
docker exec -it hx-caddy sh -lc 'wget -qO- http://hxki-n8n:5678/ >/dev/null && echo OK_CADDY_TO_N8N || echo FAIL_CADDY_TO_N8N'
docker exec -it hx-caddy sh -lc 'wget -qO- http://hxki-mautic/ >/dev/null && echo OK_CADDY_TO_MAUTIC || echo FAIL_CADDY_TO_MAUTIC'
echo
echo "=== ENDE ==="