Skip to content

Connection Issues

Clients can’t connect, or connections drop intermittently. Work through the checks below to isolate the problem.

Connection path

Where failures happen

Client
Connection refused Port, firewall
Network / Firewall
503 Service Unavailable Starting up, not ready
IdentityScribe
Intermittent timeouts Pool exhaustion, backend down
LDAP Backend
Database errors Auth, connectivity, SSL
PostgreSQL
Terminal window
# Service health
curl http://localhost:8080/readyz
# Channel status
curl -s http://localhost:8080/observe/channels | jq
# Database connectivity
curl -s http://localhost:8080/observe/doctor | jq '.checks[] | select(.name | startswith("db"))'
Terminal window
curl -s http://localhost:8080/observe/channels | jq '.ldap'

Expected: enabled: true, running: true

If disabled: Set channels.ldap.enabled = true in config.

Terminal window
curl -s http://localhost:8080/observe/channels | jq '.ldap.bindings[].actualPort'

The actual port may differ from the configured port when using ephemeral ports.

Verify traffic is allowed to the LDAP port:

Terminal window
nc -zv identity-scribe-host 10389
Terminal window
curl http://localhost:8080/startedz

If not started: Check logs for startup errors.

Terminal window
curl -s http://localhost:8080/observe/doctor | jq '.checks.db'
Terminal window
curl http://localhost:8080/readyz?verbose

Readiness requires initial sync to complete.

Terminal window
curl -s http://localhost:8080/metrics | grep -E "hikari.*(pending|active)"

If pending > 0 frequently: Increase pool sizes.

Check ingest lag:

Terminal window
curl -s http://localhost:8080/observe/stats/ingest | jq '.entry_types[].lag_seconds'

High lag points to source LDAP problems.

Increase timeouts if the network is slow:

ldap.soTimeout = 30000
database.queryHttpAcquisitionTimeout = 10s
CheckCommand
PostgreSQL runningpg_isready -h localhost -p 5432
Credentials correctCheck SCRIBE_DATABASE_USER/PASSWORD
SSL requiredSet ?sslmode=require in URL
Network reachablenc -zv db-host 5432
Pool not exhaustedCheck hikaricp_connections_pending