Skip to content

Troubleshooting

Ingress returns 404 or invalid cert

  • Make sure the TLS secret custom-ingress-cert exists in the srdp namespace (kubectl get secret custom-ingress-cert -n srdp).
  • For production, Traefik uses Let's Encrypt via the ACME TLS challenge; verify the certResolver and ACME email are set in values-prod.yaml.
  • Regenerate with mkcert if the hostnames or IP changed (local dev).
  • On a cluster other than kind, confirm that DNS (or your hosts file) points the hostnames to the Traefik IP. *.srdp.localhost needs no entries.

kind create cluster fails with "port is already allocated"

  • deploy/kubernetes/kind-config.yaml maps host ports 80 and 443, which deploy/docker/docker-compose.yml also publishes.
  • Stop the Compose stack (just docker-down) and create the cluster again.
  • If the error stays, check what holds the port with lsof -i :443.

Pods stuck in Pending

  • Check storage and DB connectivity: kubectl describe pod <name> -n srdp.
  • PostgreSQL runs in-cluster; verify the service is up and its PVC is bound:
  • Local (standalone): service db-postgresql, PVC data-db-postgresql-0
  • Production (replication): service db-postgresql-primary, PVC data-db-postgresql-primary-0

LoadBalancer stays in Pending

  • Traefik needs a LoadBalancer-capable environment. Verify your Scaleway account quotas and that the service type is LoadBalancer (see values-prod.yaml).

OAuth login loops or 401s

  • Ensure global.domain, zitadel.zitadel.configmapConfig.ExternalDomain, and the oauth2-proxy.extraArgs cookie/whitelist domains all match the URL you are using.
  • Re-check the Zitadel client ID/secret and redirect URIs.

Browser rejects the self-signed cert

  • Run just docker-tls or just local-tls again, which installs mkcert's local CA into your system trust store, and restart the browser.
  • Firefox keeps its own trust store, so it may need certutil (NSS tools) installed before mkcert can add the CA there.

ACME errors / rate limits

  • Let's Encrypt blocks nip.io frequently and requires public reachability on ports 80/443. Open those ports on the load balancer/security group, or temporarily point Traefik to the staging CA until production issuance succeeds.

Zitadel restarts a few times on the first Kubernetes install

  • Cause: Helm starts the Zitadel pod before the hooks that create its tables have run, so it exits with relation "queue.river_queue" does not exist and Kubernetes restarts it.
  • Fix: none needed. It starts once zitadel-init and zitadel-setup have completed, usually after 1 to 3 restarts. Check the hooks with kubectl -n srdp get jobs.
  • Compose is not affected, because depends_on orders the steps.

Zitadel login-client missing

  • If the Postgres DB already contains Zitadel data, the login-client PAT will not be recreated. Use a fresh database (or drop the existing schema) before re-running the chart.

Dagster or Zitadel fails with password authentication failed

  • Cause: The role's password doesn't match its Secret, for example dagster and srdp-dagster (key postgresql-password), zitadel and srdp-zitadel (key db-password), or ducklake_writer and ducklake_reader with srdp-ducklake-pg-writer and srdp-ducklake-pg-reader (key password), or the srdp-setup Job that creates and re-syncs it didn't run or failed.
  • Check the Job's logs with kubectl -n srdp logs job/srdp-setup. The Job stays until the next install or upgrade, so its logs show the last run, failed or successful. A missing SETUP_PASSWORDS__<ROLE> fails the Job before it touches Postgres.
  • Fix: rerun helm upgrade (or just local-deploy). The Job creates any missing role or database and resets every configured role's password, keeping existing data.
  • If the pods don't recover on their own, run kubectl -n srdp rollout restart deploy/srdp-dagster-webserver deploy/srdp-dagster-webserver-read-only deploy/srdp-dagster-daemon deploy/srdp-dagster-user-deployments-srdp-etl.

An app fails with permission denied for table ducklake_metadata

  • Cause: The ducklake_reader role has no SELECT on the catalog tables, because the srdp-setup Job or service did not run or failed.
  • Fix: Check the logs of the setup Job (kubectl -n srdp logs job/srdp-setup) or service (docker logs srdp-setup) and rerun the deploy. Setup grants the rights and creates the catalog tables on every run.
  • With setup.manageDatabases: false, grant the rights yourself, as the deployment page describes.

Updated container image not picked up after rebuild

  • Cause: The default imagePullPolicy is IfNotPresent. If you rebuild an image with the same tag, Kubernetes keeps using the cached version. Local builds use the dev tag with imagePullPolicy: Never, so just kind-load-images followed by a pod restart picks up a rebuild.
  • Fix: Bump the image tag in both the build command and values-prod.yaml, then redeploy. Alternatively, set imagePullPolicy: Always in your values file, but this is slower for routine deployments.

Orphaned Scaleway Load Balancer blocks tofu destroy

  • Symptom: tofu destroy fails with Private Network must be empty to be deleted.
  • Cause: Kapsule creates a Scaleway-managed Load Balancer when a type: LoadBalancer service (Traefik) is deployed via Helm. This LB is not tracked by OpenTofu, so it remains attached to the private network after the cluster is deleted.
  • Fix: The updated just prod-destroy handles this automatically. If you already hit this error, delete the LB via the Scaleway API:
    source ./secrets.sh
    curl -s -H "X-Auth-Token: $SCW_SECRET_KEY" "https://api.scaleway.com/lb/v1/zones/nl-ams-1/lbs" | python3 -m json.tool
    curl -X DELETE -H "X-Auth-Token: $SCW_SECRET_KEY" "https://api.scaleway.com/lb/v1/zones/nl-ams-1/lbs/<LB_ID>?release_ip=true"
    
    Wait ~30 seconds, then retry tofu destroy.

Traefik stuck in Init

  • The Traefik PVC is ReadWriteOnce; if an old pod still holds it, new pods stay in Init with a multi-attach warning. Delete the old Traefik pod (or the PVC if needed) so the new pod can mount /data.

Zitadel project and apps missing after a restart (Docker Compose)

  • Cause: you ran docker compose down -v, which removes all persistent volumes.
  • Fix: use docker compose down (without -v) to stop the stack. Only use -v when you intend to reset all data.