Troubleshooting SOCSuite
Diagnose und Lösungen für häufige Probleme bei Betrieb und Entwicklung von SOCSuite.
Login & Authentifizierung
Keycloak-Login schlägt fehl
# Keycloak-Status prüfen
kubectl get pods -n imvee-dev | grep keycloak
kubectl logs -n imvee-dev deployment/keycloak --tail=50| Ursache | Lösung |
|---|---|
| Keycloak-Pod nicht bereit | Pod-Logs prüfen, ggf. neu starten |
| Realm-Konfiguration fehlt | init-keycloak.sh erneut ausführen |
| JWKS-Endpoint nicht erreichbar | auth.dev.imvee.de erreichbar? |
SameSite=Strict auf Cookie | Cookie-Konfiguration im Backend prüfen (bricht OAuth-Redirect) |
JIT-Provisioning schlägt fehl
Symptom: Login erfolgreich, aber User erscheint nicht in SOCSuite.
# Backend-Logs auf Provisioning-Fehler prüfen
kubectl logs -n imvee-dev deployment/backend --tail=100 | grep -i "provision\|jit\|user"API & Backend
502 / 503 Bad Gateway
# Pod-Status
kubectl get pods -n imvee-dev
# Backend-Logs
kubectl logs -n imvee-dev deployment/backend --tail=100
# Health-Endpoint
curl -s https://socsuite.dev.imvee.de/health | python3 -m json.toolSlow Queries / hohe Latenz
# PostgreSQL Slow Queries
kubectl exec -n imvee-dev deployment/postgres -- \
psql -U socsuite -c "SELECT query, mean_exec_time, calls FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 10;"
# API p95-Latenz live
curl -s http://localhost:8080/metrics | grep "http_request_duration_seconds":::warn [Ziel: p95 < 100 ms]
Queries > 100 ms immer mit EXPLAIN ANALYZE analysieren.
:::
Redis-Verbindungsfehler
kubectl exec -n imvee-dev deployment/backend -- \
redis-cli -h redis pingOpenSearch / SIEM
Index nicht gefunden
# Vorhandene Indizes auflisten
curl -s https://siem.dev.imvee.de/_cat/indices?v
# Detection Rules sync
curl -s -X POST https://socsuite.dev.imvee.de/api/v1/detection-rules/syncCluster nicht gesund
curl -s https://siem.dev.imvee.de/_cluster/health | python3 -m json.tool| Status | Bedeutung |
|---|---|
green | Alles OK |
yellow | Replica-Shards nicht zugewiesen (bei Single-Node normal) |
red | Primary-Shards fehlen — sofort handeln |
Kubernetes / Deployment
Pod startet nicht (CrashLoopBackOff)
# Pod-Events
kubectl describe pod -n imvee-dev <pod-name>
# Logs des letzten abgestürzten Containers
kubectl logs -n imvee-dev <pod-name> --previousImage-Pull-Fehler
# Pull-Secret prüfen
kubectl get secret gitlab-registry -n imvee-dev
# Secret neu anlegen
kubectl create secret docker-registry gitlab-registry \
--docker-server=registry.gitlab.com \
--docker-username=oauth2 \
--docker-password="<GITLAB_REGISTRY_TOKEN>" \
-n imvee-dev --dry-run=client -o yaml | kubectl apply -f -Rollout hängt
# Rollout-Status prüfen
kubectl rollout status deployment/backend -n imvee-dev
# Rollback
kubectl rollout undo deployment/backend -n imvee-devLokale Entwicklung
make dev startet nicht
# Voraussetzungen prüfen
go version # ≥ 1.26
node --version # ≥ 20 LTS
pnpm --version # ≥ 9
# Dependencies neu installieren
make install
# .env vorhanden?
ls -la .envTests schlagen fehl
# Unit Tests isoliert
make test-unit
# Integration Tests (brauchen laufende Infrastruktur)
kubectl apply -k infrastructure/k8s/overlays/dev
make test-integrationSiehe auch
- Betrieb & Monitoring — Health Checks, Metriken, Alerting
- Authentifizierung — Keycloak, OIDC, BFF-Pattern
- Dev-Setup — Lokale Entwicklungsumgebung aufsetzen