Repository navigation
Conversation
The healthcheck prints a status report that says whether the node is synced and what it is doing, declared in the manifest `nodes` field with the status-report probe.
Contributor
|
Dappnode bot has built and pinned the built packages to an IPFS node, for commit: 938c73c This is a development version and should only be installed for testing purposes.
Hash: (by dappnodebot/build-action) |
Contributor
✅ Package harness passed
Run overview
Baseline vs candidate
Container comparison
Container inventoryBaseline
Candidate
Runtime analysis advisory✅ Clean — Nexus analysis was inconclusive; heuristic fallback used: No configured candidate-only suspicious signature was found
✅ No new runtime findings were reported. Analyzer diagnostics
Cleanup and diagnostics
✅ No run errors were recorded. Deterministic checks decide the verdict. Runtime log analysis is advisory. TropiBot publishes bounded summaries and never posts raw logs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The dappmanager dashboard is gaining a status card for every node package, not only Ethereum staking clients. For a node it has no built-in knowledge of, the package itself says whether the node is synced, how far along it is and what it is doing, through its Docker healthcheck. The dappmanager adds what is the same for every chain: stall detection, time left and waiting on a required node. The contract and the dappmanager side are in dappnode/DNP_DAPPMANAGER#2520; the shared shell helpers are released in
staker-package-scriptsv0.1.3 (dappnode/staker-package-scripts#12).The dappmanager does not display
status-reportnodes yet: #2520 reads reports from Ethereum execution clients only. This package ships the declaration and the healthcheck ahead of that, which is safe: current dappmanagers ignore both.Approach
nodesdeclares thebitcoin.dnp.dappnode.ethservice as anodeon networkbitcoinwith thestatus-reportprobe,maxHeadAgeSeconds: 7200andreport: healthcheck.src/node-status.shmakes one batched JSON-RPC request (getblockchaininfo,getnetworkinfo,getindexinfo) to the local RPC and prints one JSON line. It exits 0 while starting or syncing, so a syncing node is not "unhealthy".BTC_RPCUSERandBTC_RPCPASSWORDare read from the container's environment and passed tocurlas a config file on stdin, never as arguments, and never printed. The tests check this.curlandjq, addsnode_status_tools.shfrom the v0.1.3 release and the script as/usr/local/bin/node-status.What it reports
Checked against the Bitcoin Core source at v32.1.
starting, with Bitcoin Core's own message as the phase ("Loading block index", "Verifying blocks")syncing"Downloading block headers"syncing"Downloading blocks", with a percentageverificationprogress, capped at 99.9 while in initial block downloadsyncing"Catching up", measured in blockssyncedgetindexinfonot synced,backgroundvalidationpresentwarnings, and network activity disablederrorTwo hours is used because a gap that long between blocks happens only a few times a year.
Test instructions
sh test/node_status_test.sh(464 checks). Passes under dash, busybox,bash --posixand inside the built image.synced, disabling the network gave the issue, a wrong password gaveerror.Not seen live:
syncedat the mainnet head and an index build. Both are covered by regtest and the stubbed tests.Found on the way, not changed here
BTC_TESTNET=1the top-levelrpcportandrpcbindin the generated config are ignored (they apply per network), so the RPC listens on 18332 on localhost only. The script would then reportstarting, and the declared networkbitcoinwould be wrong.zmqpubrawtx,zmqpubhashtxandzmqpubhashblockshare port 28333.