IMVEEDev Portal

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
UrsacheLösung
Keycloak-Pod nicht bereitPod-Logs prüfen, ggf. neu starten
Realm-Konfiguration fehltinit-keycloak.sh erneut ausführen
JWKS-Endpoint nicht erreichbarauth.dev.imvee.de erreichbar?
SameSite=Strict auf CookieCookie-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.tool

Slow 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 ping

OpenSearch / 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/sync

Cluster nicht gesund

curl -s https://siem.dev.imvee.de/_cluster/health | python3 -m json.tool
StatusBedeutung
greenAlles OK
yellowReplica-Shards nicht zugewiesen (bei Single-Node normal)
redPrimary-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> --previous

Image-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-dev

Lokale 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 .env

Tests schlagen fehl

# Unit Tests isoliert
make test-unit

# Integration Tests (brauchen laufende Infrastruktur)
kubectl apply -k infrastructure/k8s/overlays/dev
make test-integration

Siehe auch

Auf dieser Seite