Skip to content

Troubleshooting

  • Check Resend key / from-domain verification.
  • API still creates the DB row; logs say whether send failed.
  • Confirm BACKEND_URL / API_URL so the link host is reachable.

Form says invalid username/password

Playwright validation failed against the live portal. Check APIHC_BASE_URL, APIHC_DOMAIN, and that the portal account still works manually.

Sunday job skipped everyone

  • Not a biweekly Sunday relative to 2025-12-21.
  • Users have needs_password=true.
  • No credentials rows (admin alert should fire if Mailtrap is configured).

Decrypt / KMS errors on worker

  • Worker must use decrypt IAM keys, not encrypt-only.
  • Region must match the CMK (AWS_DEFAULT_REGION).
  • Key scheduled for deletion or wrong AWS_KMS_KEY_ID → decrypt fails; ciphertext is dead without the CMK.

Cookie is 30 minutes and tied to COOKIE_SECRET_KEY. Re-open a fresh magic link after secret rotation or expiry.

Playwright flaky in Celery

  • Prefer concurrency 1.
  • Increase timeouts; capture screenshots to bucket or local screenshots/ (do not commit PII).
  • Soft time limit ~4 minutes / hard ~5 minutes may kill long portal hangs.
Signoff archive • Material for MkDocs