Skip to content

node: the capacity-bond registry resync warning logs only its outer context, so the RPC cause is lost #2255

Closed

Description

@altanoruc

Summary

capacity-bond registry resync failed; keeping current projections logs only the outermost context of its error, so the cause is lost. Every instance on testnet today reads just:

error="getRegisteredNodes(offset=0, limit=100)"

crates/node/src/dht/capacity_bond_registry.rs ~L609 logs error = %err. On an anyhow::Error that prints only the top context, added at ~L692 (.with_context(|| format!("getRegisteredNodes(offset={offset}, limit={PAGE_SIZE})"))). The nodeIdOf warning in the same file (~L341) uses sanitize_err_chain(&err) and keeps the chain.

Why it matters

DecdnCapacityBondRegistryResyncFailing fired on ash1 and bcl on 2026-09-30 (from 18:12–18:13 UTC, cleared by 21:14). Its runbook says to "check the RPC provider's eth_call path". But the log can't say whether a failure was a dRPC code 19 (#2253), a timeout, a rate limit or a decode error. ash1 and bcl both failed in the same second (17:56:59), which points at the provider, but nothing in the logs confirms it.

Proposed

  • Log error = %sanitize_err_chain(&err) at L609, like L341.
  • Check the other warn!(error = %err, …) sites whose error carries with_context for the same loss. The blacklist watcher's periodic re-enumeration failed already uses sanitize_err_chain (blacklist_watcher.rs ~L650).

🤖 Generated with Claude Code

Activity

  1. added
    kind:bug
    rust
    prio:low
    area:node
    on Sep 30, 2026
  2. self-assigned this
    on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:nodekind:bugprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions