Skip to content

Troubleshooting a Collator or Node

Wil Wade edited this page Feb 14, 2023 · 9 revisions

WIP Notes

Helpful Logging Options

  • -lsync=trace Sync issues
  • -lcumulus-collator=trace Collator not collating.

Important things to remember

  • The Parachain overview page is just reporting what it knows from your parachain, it is not information from the relay chain.
    • Getting the information from the relay chain? Chain state: paras.heads(paraId)
    • paras.heads(paraId) is always the PARENT hash not the current one. It cannot know that the current hash is the hash until it gets the next one and can confirm it all the way though to the parachain.
  • Relay chain events about paraInclusion might not be on the exact block that the parachain submitted on. Looking +/- 5 blocks is good.
    • Usually CandidateBacked is the block before CandidateIncluded
  • Relay Chain Events
    • paraInclusion.CandidateBacked: Parachain collator has pushed a candidate to the relay chain
    • paraInclusion.CandidateIncluded: Relay chain has finalized a candidate

Collator Things To Try

  • Restart the Collator
  • Remove the aura key and re-add it
    • When it is trying to form blocks, but not working and everything is in sync.
    • How
      • Stop collator
      • Remove the keystore directory
      • Start collator
      • Re-add key

Setup a New Collator Notes