Skip to content

feat(nethermind): report the sync phase through the healthcheck - #96

Open
3alpha wants to merge 2 commits into
mainfrom
feat/node-status-report
Open

3alpha wants to merge 2 commits into
mainfrom
feat/node-status-report

Conversation

@3alpha

@3alpha 3alpha commented Nov 30, 2026

Copy link
Copy Markdown
Member

Context

The dappmanager dashboard shows each node's sync status. It decides by itself whether the node is synced (latest block recent), waiting for the consensus client or stalled, and it computes the time left. What only the client knows is which sync phase it is in and how far along. That used to be parsed inside the dappmanager from client-specific fields and metrics, which broke whenever upstream changed them. It now lives in the package, next to the client version it describes, so a fix ships with the upstream bump.

The dappmanager side is in dappnode/DNP_DAPPMANAGER#2520 and the shared shell helpers in dappnode/staker-package-scripts#12.

Approach

  • Manifest: a nodes field declares the nethermind service as an execution node with its JSON-RPC and Engine API ports and report: healthcheck. Each variant manifest adds only its network.
  • Healthcheck: nethermind/node-status.sh runs as the service's Docker healthcheck and prints one JSON line with the phase, progress, latest block and peers. It exits 0 while starting or syncing, so a syncing node is not "unhealthy".
  • Image: installs jq, adds node_status_tools.sh from staker-package-scripts and the script as /usr/local/bin/node-status.
  • Shared scripts: STAKER_SCRIPTS_VERSION moves to v0.1.3, the release that will carry the helpers.

What it reports

Checked against the Nethermind source at 2.2.2.

Report Signal
starting The JSON-RPC does not answer
synced eth_syncing is false
"Downloading block headers", nothing to sync towards yet currentBlock and highestBlock are both 0
"Downloading headers and state", no percentage currentBlock 0 and highestBlock above 0
"Downloading state" with a percentage, then "Healing state" warpChunksProcessed / warpChunksAmount, which only exist from 2.3
"Catching up", measured in blocks currentBlock more than 8 blocks behind highestBlock
Background: "Downloading old blocks and receipts" Still an object within 8 blocks of the highest block
Issues: "Consensus client not connected", "Low disk space" health_nodeStatus errors ClUnavailable and LowDiskSpace

At 2.2.2 eth_syncing only has startingBlock, currentBlock and highestBlock, so the state download shows without a percentage until the package moves to 2.3. SyncDegraded is not reported: a node that was only waiting for its consensus client raised it.

Merge order

This cannot build until dappnode/staker-package-scripts#12 is merged and released as v0.1.3: the Dockerfile downloads node_status_tools.sh from that release, and the new CI workflow checks out that repo's default branch for the same file.

Test instructions

  • sh test/node_status_test.sh (77 checks). Passes under dash and inside the pinned image (Ubuntu, jq 1.8).
  • shellcheck is clean.
  • Run against nethermind/nethermind:2.2.2 on Hoodi with no consensus client attached, using the package image built with the helper copied in: the healthcheck reported "Downloading block headers" with nothing to sync towards in about 0.13 s, and after 5 minutes added "Consensus client not connected".

Not seen on a live node: the state download, catch-up and old-receipts shapes. They follow the upstream source.

The healthcheck prints a status report with the client's sync phase
and progress, declared in the manifest `nodes` field, so the
dappmanager no longer needs client-specific parsing.
@tropibot

tropibot Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

✅ TropiBot report: SYNC TEST REPORT - PASSED

This CI runs on a real DAppNode using the same RPC calls a user would make to configure a staker setup: execution client, consensus client, web3signer, MEV-boost, and relays.

📦 Package Under Test

📦 Clients Used

Component DNP Name
Execution hoodi-nethermind.dnp.dappnode.eth
Consensus prysm-hoodi.dnp.dappnode.eth
Web3Signer web3signer-hoodi.dnp.dappnode.eth
MEV Boost mev-boost-hoodi.dnp.dappnode.eth
Network hoodi

🔖 Version Tracking

Client Before After
Execution Nethermind/v2.2.2+be201120-f/linux-x64/dotnet10.0.14 Nethermind/v2.2.2+be201120-f/linux-x64/dotnet10.0.14
Consensus Prysm/v7.3.1-96d418c (linux amd64) Prysm/v7.3.1-96d418c (linux amd64)

⏱️ Timing

Operation Duration Status
SetStakerConfig 37.9s ✅
PackageInstall 16.4s ✅
WaitForSync 13.0s ✅
Cleanup 5.9s ✅

Total Duration: 1m 22s


📋 View full CI logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants