0

I set up the private network of 8/10, everything is working fine, all the validators validate the blocks but after the an era I am facing an issue that the staking.StakingElectionFailed. The election failed. No new era is planned. I don't know how to fix this. I followed this link https://github.com/polkadot-js/apps/issues/7607#issuecomment-1129752912 and also followed other link to purge the chain but still facing this issue that the era time is not completing. I have many scenario in which I am facing the same issue of era completion 8/10 private network is one of them.

enter image description here After this I again the setup the private network of 10/10 and this time everything is working fine but i want to know that why there is era time completion issue when i setup the 8/10 private network

1 Answer 1

3

Why

Check the PolkadotJS algorithm.

info.currentIndex.sub(activeEraStartSessionIndex).imul(info.sessionLength).iadd(sessionProgress);

Due to the election failure. ErasStartSessionIndex won't be updated. So, the PolkadotApps get a ridiculously big number.

enter image description here

You could check your log:

journalctl -u darwinia-node.service | grep "election provider failed"
Sep 08 06:32:18 pangoro-g1 drml[136952]: 2022-09-08 06:32:18 [14058] 💸 election provider failed due to ElectionError::Fallback("NoFallback.")

I guess you encounter the same error as me.


The easiest way to fix

To solve this, you just need to change the Fallback to frame_election_provider_support::onchain::OnChainSequentialPhragmen<Runtime>. I guess you have set it to NoFallback before.

Because your validator set is pretty small, on-chain computation is totally fine.


Debug & other fixes

Check the logs in feasibility_check to find out what's the root cause.

You need to know that once you enter the emergency mode with NoFallback, that is a dead loop.

You've to do one of these to recover the election:

1
  • After applying this my chain is working fine. Thanks for the support Commented Sep 19, 2022 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.