Troubleshooting
Common issues and how to resolve them.
Runtime Issues
Auth service pod is not starting
Symptoms: casa-auth-service pod in Pending or CrashLoopBackOff state
Check:
kubectl -n casa-runtime describe pod -l app=casa-auth-service
kubectl -n casa-runtime logs -l app=casa-auth-service --previous
Common causes:
| Cause | Fix |
|---|---|
| PostgreSQL not ready | Wait for casa-postgres-auth pod to be ready, then restart the auth service pod |
| Wrong database credentials | Check authService.database.password in values matches the actual postgres password |
| Keycloak not ready | Check casa-keycloak pod status; auth service will retry but may crash first |
Keycloak pod is not starting
kubectl -n casa-runtime logs -l app=casa-keycloak
Common issue: postgres-keycloak not ready. Keycloak waits for the database, but check for connection errors:
FATAL: password authentication failed for user "keycloak"
Check that postgresKeycloak.password and keycloak.database.password (if overridden) match.
Auth service returns 500 on /health
curl -v http://localhost:8000/health
If the response is a 500, the auth service cannot connect to PostgreSQL or Keycloak. Check the pod logs:
kubectl -n casa-runtime logs deploy/casa-auth-service | tail -50