IMVEEDev Portal

Troubleshooting SOCSuite

Diagnosis and solutions for common issues when operating and developing SOCSuite.


Login & Authentication

Keycloak login fails

# Check Keycloak status
kubectl get pods -n imvee-dev | grep keycloak
kubectl logs -n imvee-dev deployment/keycloak --tail=50
CauseSolution
Keycloak pod not readyCheck pod logs, restart if necessary
Realm configuration missingRe-run init-keycloak.sh
JWKS endpoint unreachableIs auth.dev.imvee.de reachable?
SameSite=Strict on cookieCheck cookie config in backend (breaks OAuth redirect)

JIT provisioning fails

Symptom: Login successful, but user does not appear in SOCSuite.

# Check backend logs for provisioning errors
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 / high latency

# 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 latency live
curl -s http://localhost:8080/metrics | grep "http_request_duration_seconds"

:::warn [Target: p95 < 100 ms] Always analyse queries > 100 ms with EXPLAIN ANALYZE. :::

Redis connection error

kubectl exec -n imvee-dev deployment/backend -- \
  redis-cli -h redis ping

OpenSearch / SIEM

Index not found

# List existing indices
curl -s https://siem.dev.imvee.de/_cat/indices?v

# Sync detection rules
curl -s -X POST https://socsuite.dev.imvee.de/api/v1/detection-rules/sync

Cluster not healthy

curl -s https://siem.dev.imvee.de/_cluster/health | python3 -m json.tool
StatusMeaning
greenAll OK
yellowReplica shards not assigned (normal for single-node)
redPrimary shards missing — act immediately

Kubernetes / Deployment

Pod not starting (CrashLoopBackOff)

# Pod events
kubectl describe pod -n imvee-dev <pod-name>

# Logs from last crashed container
kubectl logs -n imvee-dev <pod-name> --previous

Image pull error

# Check pull secret
kubectl get secret gitlab-registry -n imvee-dev

# Re-create secret
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 stuck

# Check rollout status
kubectl rollout status deployment/backend -n imvee-dev

# Rollback
kubectl rollout undo deployment/backend -n imvee-dev

Local Development

make dev does not start

# Check prerequisites
go version      # ≥ 1.26
node --version  # ≥ 20 LTS
pnpm --version  # ≥ 9

# Reinstall dependencies
make install

# .env present?
ls -la .env

Tests failing

# Unit tests in isolation
make test-unit

# Integration tests (require running infrastructure)
kubectl apply -k infrastructure/k8s/overlays/dev
make test-integration

See Also

On this page