Troubleshooting
Diagnose and fix the most common issues when running Idenplane in development and production.
Jump to issue
Docker container fails to start
DockerContainer exits immediately with code 1
docker compose ps shows "Exited"
- 1
Run
docker compose logs appto see the startup error. - 2
Ensure
DATABASE_URLis set and the PostgreSQL container has finished initialising (add a healthcheck). - 3
Confirm the PostgreSQL port (5432) is not blocked by another process.
Database connection refused
DatabasePrismaClientInitializationError: Can't reach database
ECONNREFUSED on port 5432
- 1
Verify
DATABASE_URLmatches your PostgreSQL host, port, user, and database name. - 2
When running with Docker Compose, use the service name as hostname (e.g.
postgresql://idenplane:idenplane@db:5432/idenplane). - 3
Run
npm run prisma:migrateif this is a fresh install.
Emails are not being sent
EmailEmail verification link never arrives
Password reset silently fails
- 1
Email delivery is configured per-realm in the Admin Console under the Email tab — not via environment variables. Each realm picks SMTP, Resend, SendGrid, Mailgun, or Postmark.
- 2
Use Send a Test Email on the realm’s Email tab to verify connectivity for whichever provider the realm is using.
- 3
If using SMTP: check that your provider allows connections from your server IP, and that the port/TLS settings match (587 with STARTTLS is most common). If using an API-based provider (Resend/SendGrid/Mailgun/Postmark): check that the API key is valid and the sending domain is verified.
CORS errors in the browser
CORSAccess-Control-Allow-Origin missing
Preflight request blocked
- 1
Ensure
BASE_URLis set to your exact public URL (no trailing slash). - 2
Allowed CORS origins come from the Web Origins of all enabled clients (the server’s own origin is always allowed).
- 3
In the Admin Console, verify the Web Origins field on the client includes your exact frontend origin (a
*wildcard is not used for CORS).
Token validation failures
Auth401 Unauthorized on protected API routes
JWT verification error
- 1
Confirm the
issuerin your SDK config matches the exact issuer in the Idenplane discovery document. - 2
Check that the token has not expired (
expclaim). Tokens are short-lived by default (5 minutes). - 3
Fetch the realm’s keys from the JWKS endpoint (
/realms/{realm}/protocol/openid-connect/certs) rather than pinning a key, and match tokens bykid.
LDAP connection issues
LDAPLDAP sync shows 0 users imported
Connection timeout during federation
- 1
Verify the LDAP host, port, and bind DN are correct in the realm's User Federation settings.
- 2
Test connectivity from inside the Idenplane container:
docker compose exec app ping ldap-host. - 3
Check that your LDAP server supports the connection type selected (LDAP on 389 or LDAPS on 636).
Custom theme not applied
ThemesLogin page still shows default styling
Theme changes have no effect
- 1
Themes are configured per-realm in the Admin Console, on the realm’s Theme tab or in the Theme Builder.
- 2
Clear your browser cache after changing a theme — the CSS bundle is heavily cached.
- 3
Ensure the realm is saved after selecting the new theme.
Migration failures on upgrade
MigrationsP1002 migration lock timeout
Migration failed: relation already exists
- 1
The Docker image runs
npx prisma migrate deployon every start; for a source install, runnpx prisma migrate deployafter pulling a new version (npm run prisma:migrateismigrate dev, for development only). - 2
If a migration is stuck, check for a
_prisma_migrationsrow whosefinished_atis empty and resolve it withnpx prisma migrate resolve. - 3
Always back up your database (and
WEBHOOK_SECRET_KEY/WEBHOOK_ENCRYPTION_SALT) before every upgrade, and read the release notes’ Before you upgrade section.
Slow response times under load
PerformanceToken endpoint p99 > 500 ms
High CPU on the Idenplane container
- 1
Scale horizontally: add more Idenplane replicas behind the Nginx load balancer (see the Deployment guide).
- 2
Set
WEB_CONCURRENCY=autoto run one worker per usable CPU. If you add a PgBouncer pooler in transaction mode, also setCACHE_L1=offandLEADER_ELECTION=off. - 3
Tune
THROTTLE_TTLandTHROTTLE_LIMITto prevent a single client from dominating.
Adjusting log verbosity
LoggingToo many verbose logs in production
Need more detail for debugging
- 1
Set
NODE_ENV=productionto suppress debug-level logs automatically. - 2
To increase verbosity temporarily, set
LOG_LEVEL=debugin your environment. - 3
Pipe logs to a structured aggregator (Loki, Datadog, CloudWatch) using Docker's log driver.
Still stuck?
Check the GitHub issues or open a new one — the community is happy to help.