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| Cause | Solution |
|---|---|
| Keycloak pod not ready | Check pod logs, restart if necessary |
| Realm configuration missing | Re-run init-keycloak.sh |
| JWKS endpoint unreachable | Is auth.dev.imvee.de reachable? |
SameSite=Strict on cookie | Check 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.toolSlow 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 pingOpenSearch / 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/syncCluster not healthy
curl -s https://siem.dev.imvee.de/_cluster/health | python3 -m json.tool| Status | Meaning |
|---|---|
green | All OK |
yellow | Replica shards not assigned (normal for single-node) |
red | Primary 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> --previousImage 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-devLocal 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 .envTests failing
# Unit tests in isolation
make test-unit
# Integration tests (require running infrastructure)
kubectl apply -k infrastructure/k8s/overlays/dev
make test-integrationSee Also
- Operations & Monitoring — Health checks, metrics, alerting
- Authentication — Keycloak, OIDC, BFF pattern
- Dev Setup — Set up local development environment