Help

Troubleshooting

Diagnose and fix the most common issues when running Idenplane in development and production.

1

Docker container fails to start

Docker

Container exits immediately with code 1

docker compose ps shows "Exited"

  1. 1

    Run docker compose logs app to see the startup error.

  2. 2

    Ensure DATABASE_URL is set and the PostgreSQL container has finished initialising (add a healthcheck).

  3. 3

    Confirm the PostgreSQL port (5432) is not blocked by another process.

2

Database connection refused

Database

PrismaClientInitializationError: Can't reach database

ECONNREFUSED on port 5432

  1. 1

    Verify DATABASE_URL matches your PostgreSQL host, port, user, and database name.

  2. 2

    When running with Docker Compose, use the service name as hostname (e.g. postgresql://idenplane:idenplane@db:5432/idenplane).

  3. 3

    Run npm run prisma:migrate if this is a fresh install.

3

Emails are not being sent

Email

Email verification link never arrives

Password reset silently fails

  1. 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. 2

    Use Send a Test Email on the realm’s Email tab to verify connectivity for whichever provider the realm is using.

  3. 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.

4

CORS errors in the browser

CORS

Access-Control-Allow-Origin missing

Preflight request blocked

  1. 1

    Ensure BASE_URL is set to your exact public URL (no trailing slash).

  2. 2

    Allowed CORS origins come from the Web Origins of all enabled clients (the server’s own origin is always allowed).

  3. 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).

5

Token validation failures

Auth

401 Unauthorized on protected API routes

JWT verification error

  1. 1

    Confirm the issuer in your SDK config matches the exact issuer in the Idenplane discovery document.

  2. 2

    Check that the token has not expired (exp claim). Tokens are short-lived by default (5 minutes).

  3. 3

    Fetch the realm’s keys from the JWKS endpoint (/realms/{realm}/protocol/openid-connect/certs) rather than pinning a key, and match tokens by kid.

6

LDAP connection issues

LDAP

LDAP sync shows 0 users imported

Connection timeout during federation

  1. 1

    Verify the LDAP host, port, and bind DN are correct in the realm's User Federation settings.

  2. 2

    Test connectivity from inside the Idenplane container: docker compose exec app ping ldap-host.

  3. 3

    Check that your LDAP server supports the connection type selected (LDAP on 389 or LDAPS on 636).

7

Custom theme not applied

Themes

Login page still shows default styling

Theme changes have no effect

  1. 1

    Themes are configured per-realm in the Admin Console, on the realm’s Theme tab or in the Theme Builder.

  2. 2

    Clear your browser cache after changing a theme — the CSS bundle is heavily cached.

  3. 3

    Ensure the realm is saved after selecting the new theme.

8

Migration failures on upgrade

Migrations

P1002 migration lock timeout

Migration failed: relation already exists

  1. 1

    The Docker image runs npx prisma migrate deploy on every start; for a source install, run npx prisma migrate deploy after pulling a new version (npm run prisma:migrate is migrate dev, for development only).

  2. 2

    If a migration is stuck, check for a _prisma_migrations row whose finished_at is empty and resolve it with npx prisma migrate resolve.

  3. 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.

9

Slow response times under load

Performance

Token endpoint p99 > 500 ms

High CPU on the Idenplane container

  1. 1

    Scale horizontally: add more Idenplane replicas behind the Nginx load balancer (see the Deployment guide).

  2. 2

    Set WEB_CONCURRENCY=auto to run one worker per usable CPU. If you add a PgBouncer pooler in transaction mode, also set CACHE_L1=off and LEADER_ELECTION=off.

  3. 3

    Tune THROTTLE_TTL and THROTTLE_LIMIT to prevent a single client from dominating.

10

Adjusting log verbosity

Logging

Too many verbose logs in production

Need more detail for debugging

  1. 1

    Set NODE_ENV=production to suppress debug-level logs automatically.

  2. 2

    To increase verbosity temporarily, set LOG_LEVEL=debug in your environment.

  3. 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.