Skip to main content

Ledger indexing stalled

Ledger Data stops advancing on a chain: tell catch-up from a stall, find which of three signatures decides the fix, and spot a quarantined contract.

Console, the API or reports have stopped reflecting new on-chain activity on one or more chains while indexer pods remain Ready. Read the chain's indexed position first: a moving position is a backlog, a frozen position means ingest failed, and an absent position means the chain never started.

If the chain advances while one contract freezes, follow Indexer contract quarantined. If an indexer pod is not 1/1 Ready, start with Platform API not ready.

Ledger Data is the indexed database projection of every network a DALP instance follows. Console, API reads and reports query these records rather than the live chain, so a stall freezes those surfaces at the last indexed block while blocks keep arriving on-chain.

Symptoms

  • Console screens, API responses or reports stop reflecting new on-chain activity while the network produces blocks.
  • Platform status shows a chain out of sync under Indexing, or its Data freshness panel shows fewer “Chains in sync” and a rising “Delay now”.
  • The gap between chain head and indexed position grows (dalp_didx_watermark_lag_blocks climbs).
  • Indexer pods still report 1/1 Ready: once a pod's first lane check finishes, /readyz returns 200 regardless of chain lag or parked chains. Inspect indexer logs rather than pod status.

Checks

  1. Confirm the chain is frozen rather than catching up. Check Platform status (“Chains in sync” and “Delay now”) or query dalp_didx_watermark_lag_blocks per network. A shrinking lag is a healthy backlog. A flat lag means ingest matches block rate without closing the gap.

    DALP marks indexing degraded at 10 blocks behind or 5 minutes without progress, and critical past 100 blocks or 15 minutes. Three non-stall states look similar: an upgrade rebuild (“Reindexing”), a single quarantined contract (Indexing scope shows “Attention”, see Indexer contract quarantined), and an idle chain with zero lag (on-demand blockchains skip the no-progress timer).

  2. Read logs across every indexer pod for chain_id. List pods and search both host.didx.evm-span and host.didx.canton-driver:

    kubectl -n dalp get pods -l 'app.kubernetes.io/component in (indexer,indexer-rebuild)'
    kubectl -n dalp logs -l 'app.kubernetes.io/component in (indexer,indexer-rebuild)' --tail=500 \
      | grep -E 'EVM span (attempt failed|chain parked|attempt stopped|quarantined)|Canton driver|Chain lease renewal'

    Match the log line:

    • EVM span attempt failed; retrying from the committed watermark (warning): transient failure (often RPC). The loop retries from the last committed watermark automatically.
    • EVM span chain parked; its siblings continue (error, often beside EVM span attempt stopped): the chain stopped on a non-retryable failure while sibling chains keep indexing. Read failure_tag and error_detail. The indexer retries every 5 minutes (keeping IndexerChainParked firing while the cause lasts). If failure_tag is repair, switch to Indexer chain parked.
    • Canton driver parked a network or Canton driver loop ended on a defect; the chain is parked while its siblings continue: parked Canton network, also retried every 5 minutes.
    • EVM span quarantined a contract; the chain keeps indexing without it: single-contract quarantine, not a chain stall (Indexer contract quarantined).
  3. Check network registration when no position or log line exists. Verify the chain is enabled in your networks configuration and check every indexer replica for lease ownership in Check 4.

  4. Check lease handoff after a rollout or replica change. Live ingest for a network is a fenced singleton guarded by a database lease with an expiry and epoch. During a healthy handoff, the departing pod logs Chain lease renewal found the lease lapsed or taken; the lane acquires it again on its next span attempt while the new owner continues from the committed cursor with zero data loss.

    Check all indexer replicas before concluding no pod owns a chain. Also verify no ad hoc process outside the Helm release shares the same PostgreSQL database and holds the chain lease.

Actions

  • Behind but advancing (backlog): Monitor dalp_didx_watermark_lag_blocks and estimate catch-up time from its rate of decrease. Raise RPC provider limits if catch-up is too slow. Do not scale indexer replicas for per-chain speed: extra replicas add failover and spread multiple chains, never single-chain throughput.

  • Database or configuration error in the log line: Repair the database fault (missing table, constraint or permission) or fix the chain's networks configuration and roll out. A failed span rolls back cleanly with no data loss. Parked chains resume on the next 5-minute retry or immediately on an indexer restart.

  • RPC provider outage or rate limit: Wait for the provider to recover or fix the endpoint (RPC upstreams failing over). A handler read error containing read failed in error_detail parks the chain for 5-minute retries rather than quarantining the contract (whereas deterministic contract reverts quarantine the contract).

  • Missing-state or pruned-history error during a rebuild: Point the network's RPC pool at an archive-capable endpoint (What RPC provider does a rebuild need?). The rebuild resumes on the next 5-minute retry.

  • Handler park without read failed or failure_tag=discovery: Escalate to your DALP support contact as a platform defect with the chain ID, held block, event name and full park log line. Retries and restarts repeat the park without losing indexed data until a fixed release deploys.

  • failure_tag=chain-generation: The database holds data from a replaced chain (such as a reset test network), so DALP halts indexing and refuses reads. Have a platform administrator trigger a full reindex:

    curl -X POST "https://<console-host>/api/v2/admin/operator/blockchain-monitoring/reindexes" \
      -H "Authorization: Bearer <admin-token>" \
      -H "Content-Type: application/json" \
      -d '{"chainId": <chain id>}'

    A reindex rebuilds every configured network into a new dataset and can take hours on long histories.

  • External process holding leases: Stop any non-managed process connected to the same PostgreSQL database.

Verify recovery

The chain's indexed position advances, Platform status shows the chain in sync, and dalp_didx_watermark_lag_blocks drops toward zero.

Escalate

Escalate to your DALP support contact with the chain ID, the failed-attempt or parked log line, the last block that advanced, and whether you saw a backlog, a stop or an absent position.

Frequently asked questions

What happens to a chain removed from the networks configuration and added back?

Removing the entry stops ingest on the next rollout without deleting indexed data. Adding it back starts a new singleton that acquires the lease and resumes from the stored watermark, indexing missed blocks as long as your RPC provider still serves them.

How fast does a chain recover once the cause is fixed?

A lagging chain recovers at your RPC provider's throughput with no restart needed. Retrying chains recover on the next attempt, and parked chains recover on the next 5-minute retry (or immediately after restarting the indexer).

Contract discoveries commit in bounded batches within the same transaction as the checkpoint, requiring no operator tuning. Watch the advancing watermark and falling lag to confirm recovery.

Why does Platform status show degraded while the pod is still Ready?

Platform status checks chain lag against the thresholds in Check 1. Once an indexer pod's first lane check finishes, /readyz reports process state only and stays 200 during chain lag or parks. Use the indexer logs (Check 2) to tell lag from a parked chain.

What RPC provider does a rebuild need?

An archive-capable provider that retains historical state, logs and block headers from the chain's start block for the duration of the rebuild. Live indexing needs only recent state while lag stays inside a full node's retention window, whereas a deep stall or upgrade rebuild queries old blocks.

Three rebuild reads require historical state:

  • External-token balances: reads total supply and tracked wallet balances at the block tracking started.
  • Deployment-block search: searches between block 0 and head for Directory contract code when indexing.startBlock is unset.
  • Event handling: executes contract reads at each historical event's block.

Without historical state or logs, the provider returns a missing-state or pruned-history error and stalls the rebuild. Setting indexing.startBlock in your networks entry removes only the deployment-block search.

Why does a network show that new-token detection is off?

The network's RPC provider refused address-less log queries used to detect transfers of unknown tokens into managed wallets. Known tokens, identity events and settlement events continue indexing per contract, while deposits of unseen tokens are not auto-detected.

DALP rechecks the provider every 10 minutes (indexer.evmFetchMode.recheckIntervalMs). Point the network's RPC pool at a provider that accepts address-less eth_getLogs calls. Once restored, DALP automatically backfills the missed window for every watched managed wallet.

Was this page helpful?