Skip to main content

Platform API not ready

A Platform API, indexer, or Workflow Engine pod runs but is not Ready: how to read the pod's own diagnosis, which waits are normal, and when a restart helps.

A pod that is Running but not 1/1 Ready is alive and out of Service rotation, so Console screens and API calls fail while kubectl get pods looks healthy.

Read RESTARTS first, then inspect /readyz on the pod. A climbing restart count is a boot failure, draining is routine during rollouts, starting means the pod is still building, lane_check_pending on an indexer pod means its first lane check has not finished, and degraded names the verdict holding the pod out. Never restart a pod for a postgres verdict.

Symptoms

  • kubectl get pods shows a Platform API, indexer, Workflow Engine or scheduler pod Running but not 1/1 Ready.
  • A Helm install or upgrade hangs waiting for rollout readiness, then fails with a progress deadline error.
  • Console or API requests return connection errors or 503 responses while every pod shows Running.
Four checks route a not-Ready pod to its one real cause.A decision tree with four questions. First, is the restart count climbing? Yes means a boot failure: read the previous logs, because this is not a readiness problem. No leads to the second question: does /readyz report draining? Yes means an old pod leaving during a rollout, which is routine and needs no action. No leads to the third question: does /readyz report starting? Yes means the pod is still booting, and the reason field names the phase: building the graph gets up to 10 minutes, and a build past that limit exits the pod, so its restart count climbs. No leads to the final question: which verdict is unhealthy? Postgres means fix the database or the pooler in front of it. Durable means the work-scheduling cluster is down or shutting down. If postgres and indexer both read healthy, capture logs and restart the pod. Indexer means follow the indexing runbook, or on a Platform API pod, check the indexer pod it is waiting for.Four checks route a not-Ready pod to its one real cause.The same decision tree as the desktop variant, drawn portrait. Is the restart count climbing? Yes: a boot failure, read the previous logs. Does /readyz report draining? Yes: an old pod leaving during a rollout, no action. Does /readyz report starting? Yes: still booting, with up to 10 minutes for the graph build, after which the pod exits and its restart count climbs. Otherwise, which verdict is unhealthy: postgres means fix the database or the pooler, durable means the work-scheduling cluster is down or shutting down and a healthy postgres and indexer route to a restart, indexer means follow the indexing runbook or check the indexer pod.

Four checks sort a Platform API pod into a boot failure, a drain, a start in progress or a degraded verdict, and only one path ends in a manual restart.

Checks

  1. Locate pods by role and rule out a crash loop. List pods by app.kubernetes.io/component and inspect READY and RESTARTS:

    kubectl -n dalp get pods -l 'app.kubernetes.io/component in (api-v1,api-v2,indexer,indexer-rebuild,runner,scheduler)'

    Healthy value: a RESTARTS count that stays flat. A lightweight boot shell binds port 3001 immediately so startupProbe passes in milliseconds, while the Platform API allows up to 10 minutes to build its application graph before exiting. A climbing restart count means a boot failure, not a readiness problem: read the previous container logs first and stop investigating readiness until the pod stays up:

    kubectl -n dalp logs --previous <pod>
  2. Read /readyz on the failing pod. Forward the pod's HTTP port (3001 by default) and query /readyz:

    kubectl -n dalp port-forward pod/<pod> 13001:3001 &
    curl -i http://127.0.0.1:13001/readyz

    Route by role and status:

    • Platform API (api-v1, api-v2): draining goes to Check 3, starting goes to Check 4, and degraded goes to Check 5.
    • Indexer (indexer, indexer-rebuild): 503 with status: "lane_check_pending" means the pod's first lane check has not finished yet. Search its logs for Indexer lane check failed; retrying, where error_detail names the failing step as operation= plus the database error. 503 with draining is Check 3. Once the first lane check finishes, /readyz returns 200 (empty body) while running, even if a chain parks.
    • Workflow Engine (runner): returns 200 (ok) or 503 (draining). Read its logs and RESTARTS.
    • Scheduler (scheduler): returns 200 (ok), 503 (draining) or 503 (bank-fix-simulator-unavailable). In external bank rail mode, ok includes a bankFix summary (not-logged-on keeps the pod Ready and logs reconnect warnings).
  3. Check whether the pod is arriving or leaving. Compare pod age against status: "draining". A shutting-down pod marks itself not-Ready immediately to avoid racing a closing pool.

    Normal rollout limits: Platform API adds one surge pod before removing old pods, indexer replaces one pod at a time with a 90-second minReadySeconds wait, and Workflow Engine uses Recreate (briefly pausing durable work during boot). Having zero Ready Platform API replicas is a full serving outage: work Checks 1, 2 and 4 on the newest pod.

  4. Check the boot phase on a starting pod. Read reason alongside status: "starting". application-building is the graph build, capped at 10 minutes. If it wedges past 10 minutes, the pod exits and RESTARTS climbs (return to Check 1).

  5. Read the failing dependency verdict on a degraded Platform API pod. Check postgres, durable and indexer, plus their reasons tokens:

    • postgres: The probe uses a dedicated connection on the isolated dalp_probe PgBouncer alias that application traffic never shares. A failing verdict means Postgres or PgBouncer itself is impaired. Check PgBouncer pods and Postgres health (kubectl -n dalp get pods -l app.kubernetes.io/name=pgbouncer).
    • durable: The in-pod work-scheduling cluster backed by Postgres. runner_shutting_down or runner_unavailable outside an expected rollout indicates a wedged or shutting-down cluster.
    • indexer: The pod needs a servable indexed schema published by the indexer. serving_schema_unbound means the pod waits (with no timeout) for the indexer to publish one, including on a fresh install. bump_window_blocked means a release rebuild holds the bind. Inspect the indexer pod logs:
    kubectl -n dalp logs -l 'app.kubernetes.io/component in (indexer,indexer-rebuild)' --tail=200

Actions

  • Climbing RESTARTS: Fix the boot error from kubectl -n dalp logs --previous <pod> before looking at readiness.

  • Failing postgres verdict: Fix PostgreSQL or PgBouncer and do not restart the Platform API pod. It reconnects on its own and returns to rotation after one passing probe (up to 15 seconds after recovery, after removal takes about 45 seconds across three 15-second probes).

  • lane_check_pending stuck on an indexer pod: Read Indexer lane check failed; retrying in the indexer logs and repair the database or migration fault named in operation= and error_detail.

  • serving_schema_unbound on a Platform API pod: Diagnose the indexer pods (RESTARTS and logs), not the Platform API pod. Schema publication runs inside the indexer process, not in a Kubernetes Job (kubectl get jobs shows nothing for it), and restarting the Platform API pod only restarts the wait.

  • Parked chain while indexer pods stay Ready: Search indexer logs for EVM span chain parked; its siblings continue and follow Ledger indexing stalled. Restarting or scaling Platform API pods does not affect indexing.

  • Failing durable verdict while postgres and indexer are ok: Capture evidence first, then delete the wedged pod so Kubernetes replaces it:

    kubectl -n dalp describe pod <pod> > pod-describe.txt
    kubectl -n dalp logs <pod> > pod-logs.txt
    kubectl -n dalp delete pod <pod>
  • bank-fix-simulator-unavailable on a scheduler pod: Free bankFix.simulator.listenPort or fix listenHost, then restart the scheduler pod because the simulator does not retry binding the port.

Verify recovery

Confirm the pod reaches 1/1 Ready, /readyz returns 200, and Console and API requests succeed:

kubectl -n dalp get pods -l 'app.kubernetes.io/component in (api-v1,api-v2,indexer,indexer-rebuild,runner,scheduler)'

Escalate

If the same pod wedges again after a restart, escalate to your DALP support contact with pod-logs.txt, pod-describe.txt and the failing /readyz JSON payload. A repeating wedge points to a platform defect.

How readiness works by role

This runbook covers the four backend roles of a DALP instance: the Platform API (api-v1, api-v2), the Ledger Data indexer (indexer, indexer-rebuild), the Workflow Engine (runner) and the scheduler (scheduler).

  • Platform API: Reports boot phases (starting) and live dependency verdicts (postgres, durable, indexer) on /readyz.
  • Indexer: Returns 200 on /healthz while running. Returns 503 (lane_check_pending) on /readyz until its first lane check completes, whether that check starts or refuses its lanes, keeping old pods serving during rollouts. After the first check completes, /readyz returns 200 for the rest of the pod's life (switching to 503 draining on shutdown) and never reports chain lag or parked chains.
  • Workflow Engine (runner): Returns 200 (ok) while running and 503 (draining) while shutting down. Use RESTARTS and logs to diagnose failures.
  • Scheduler: Returns 200 (ok) or 503 (draining), plus two bank rail states. In simulator mode, bind failures return 503 (bank-fix-simulator-unavailable) with reason. In external mode, the active pod appends a bankFix object (sessions, loggedOn, status: "logged-on" or "not-logged-on"). A not-logged-on session keeps the pod Ready while the scheduler reconnects and logs The bank FIX session to the bank ended; reconnecting. (Set up a connection).

Frequently asked questions

Why does Kubernetes leave a not-Ready pod running instead of restarting it?

Readiness and liveness answer different questions. Readiness controls traffic routing for recoverable dependency waits so a brief database blip does not cold-start the fleet. Liveness detects a wedged process that only a restart can fix.

Platform API and indexer liveness probes check a dedicated heartbeat port (3002), failing when the heartbeat goes stale for 30 seconds. The Workflow Engine checks liveness from its main loop. On both workers, four failed probes 10 seconds apart trigger a restart. No liveness probe checks external dependencies.

Can I point the startup probe at the readiness endpoint to enforce the boot budget?

No. On a Platform API pod, the process already enforces its own 10-minute graph-build timeout, while /readyz checks Postgres and schema binding, so startupProbe checks /healthz to avoid restarting pods waiting on dependencies. On an indexer pod, /readyz returns 503 (lane_check_pending) until its first lane check finishes, so pointing startupProbe at /readyz would restart a pod waiting on the database instead of keeping old pods serving while the new pod waits out of rotation.

Why did my Helm upgrade fail on a deadline while every pod showed Running?

Rollout progress counts Ready pods and times out after progressDeadlineSeconds (25 minutes by default). Platform API rollouts keep old replicas serving while the new pod boots, so you can inspect the new pod's /readyz without service impact. Indexer rollouts take one pod down at a time and Workflow Engine rollouts stop all old pods first, so diagnose those promptly using the new pod's /readyz and logs before deciding whether to roll back.

Is it safe to poll the readiness endpoint myself?

Yes. The kubelet polls the same read-only endpoint, which uses in-memory state plus a persistent Postgres health session on the isolated dalp_probe pool (8-second query budget inside a 10-second probe timeout every 15 seconds). Avoid rapid loops during an incident. /readyz shows one pod's view only. For an instance-wide summary, open Platform Health in the Console.

Was this page helpful?