polkadot-developers / substrate-docs

Substrate Developer Hub. Substrate is powered by best in class cryptographic research and comes with peer to peer networking, consensus mechanisms, and much more.
https://docs.substrate.io
BSD Zero Clause License
132 stars 276 forks source link

Rococo onboarding improved flow #924

Open nuke-web3 opened 2 years ago

nuke-web3 commented 2 years ago

Is there an existing issue?

Experiencing problems? Have you tried our Stack Exchange first?

Content request

Rococo teams need to know a bit more explicitly perhaps that when going to register they must:

Suggesting that all teams attempt one trivial runtime upgrade using the how to guide before anything else, to ensure they understand the flow (after testing locally!)

Are you willing to help with this request?

Yes!

bernardoaraujor commented 2 years ago

InvArch Rococo post mortem

InvArc started their parachain onboarding routine, but at some point they got confused and missed their announced launch date.

they upgraded into a parachain status, but wouldn't produce blocks, with the following error message:

2022-03-24 23:50:41 [Parachain] Could not find the header of the genesis block in the database! block_hash=0x9221c0434e794cb12eea8c8040d026e8264286dccd4041c2170a13f3f876bf67

first suspect was conflicting genesis state, so we sudo forced a new geness state

then, collator would show:

2022-03-25 11:57:06 [Parachain] Starting collation. relay_parent=0xc0051549ff9fbaf3e6222773af289d579b1fc5eaf4f1c7bb0e4ad127dc13810f at=0x8b3f8de69906dac8a6b7427526cc38ae277354101192ab82ba95c900aa9f68dc
2022-03-25 11:57:08 [Parachain] 💤 Idle (2 peers), best: #0 (0x8b3f…68dc), finalized #0 (0x8b3f…68dc), ⬇ 0 ⬆ 0
2022-03-25 11:57:08 [Relaychain] 💤 Idle (28 peers), best: #154584 (0xc005…810f), finalized #154581 (0x9618…a211), ⬇ 34.3kiB/s ⬆ 29.8kiB/s

their chain still wouldn't produce blocks.

there was some brief investigations about session keys, bootnodes, chainspec.

iit was noted that their local collator (not on OnFinality) didn't have parachain peers

since they were trying to meet deadlines, it was suggested that we get a new paraId, use default keys and start from a blank stot. things seem to be going smooth since then.

their words on the incident:

I think the tutorial misses the transition of the chainspec from local to live chain, I also found a lot of useful information on aura keys in the private chain tutorial that might make sense to add to the cumulus one. But that's the main thing I think is missing, the tutorial goes from having a local parachain chainspec to having you register the state and wasm on the live chain without much information on what should change from the spec, ie: it goes from using --alice to going live without explaining how to do what --alice does but with your own keys