Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

v0.7.22 Kusama still not possible to sync node #894

Closed
fkbenjamin opened this issue Mar 11, 2020 · 9 comments
Closed

v0.7.22 Kusama still not possible to sync node #894

fkbenjamin opened this issue Mar 11, 2020 · 9 comments

Comments

@fkbenjamin
Copy link

I'm on Kusama v0.7.22 and still experiencing the issue referenced in #866 . The issue was closed because it should be merged in the next release. v0.7.22 is the next release, but the issue persists.

2020-03-11 13:46:07 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-11 13:46:09 Idle (2 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 12.4kiB/s ⬆ 4.7kiB/s
2020-03-11 13:46:12 Unable to author block in slot 263988462,. `can_author_with` returned: Failed to get runtime version at `BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)` and will disable authoring. Error: UnknownBlock("State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)") Probably a node update is required!
2020-03-11 13:46:12 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-11 13:46:14 Idle (2 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 13.3kiB/s ⬆ 6.2kiB/s
2020-03-11 13:46:16 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-11 13:46:18 Unable to author block in slot 263988463,. `can_author_with` returned: Failed to get runtime version at `BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)` and will disable authoring. Error: UnknownBlock("State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)") Probably a node update is required!

Is there a workaround to sync a node with the current release? If not, when can we expect a release that fixes this?

@bkchr
Copy link
Member

bkchr commented Mar 11, 2020

This is a log from a validator?

Did you disable archive mode?

@fkbenjamin
Copy link
Author

It is from a node running with the validator flag. Archival node has of course not been disabled.

@bkchr
Copy link
Member

bkchr commented Mar 13, 2020

What you mean by validator flag? The log indicates that your node is part of the active validator set?

@fkbenjamin
Copy link
Author

Here is the command I'm running it with:

./target/release/polkadot --validator --name XXX --node-key-file=XXX --node-key-type=Ed25519 --port 1234

You can see what I meant with the validator flag and that I did not disable archival mode. However, this node is NOT part of the active validator set. I haven't even created session keys for it (keys folder is empty, I rechecked). Also it can't be part of the active validator set, as it is still stuck in syncing.

@fkbenjamin
Copy link
Author

Problem still persists on v0.7.26. Any help? Makes it impossible to join the network...

2020-03-19 10:34:21 Syncing  0.0 bps, target=#1514173 (1 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 16.8kiB/s ⬆ 13.5kiB/s
2020-03-19 10:34:22 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:22 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:24 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:26 Idle (0 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 117.6kiB/s ⬆ 26.3kiB/s
2020-03-19 10:34:28 Discovered new external address for our node: /ip4/x.x.x.x/tcp/xxxx/p2p/QXXXXX
2020-03-19 10:34:29 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:30 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:30 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:30 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:31 Syncing  0.0 bps, target=#1514175 (2 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 118.6kiB/s ⬆ 42.5kiB/s
2020-03-19 10:34:31 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:31 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:32 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:33 Discovered new external address for our node:  /ip4/x.x.x.x/tcp/xxxx/p2p/QXXXXX
2020-03-19 10:34:33 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:34 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:34 Discovered new external address for our node:  /ip4/x.x.x.x/tcp/xxxx/p2p/QXXXXX
2020-03-19 10:34:34 Discovered new external address for our node:  /ip4/x.x.x.x/tcp/xxxx/p2p/QXXXXX
2020-03-19 10:34:35 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:36 Syncing  0.0 bps, target=#1514175 (1 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 101.6kiB/s ⬆ 30.9kiB/s
2020-03-19 10:34:37 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:38 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:39 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:41 Idle (0 peers), best: #688170 (0xcd4c…74d8), finalized #688128 (0xe73a…85f8), ⬇ 71.3kiB/s ⬆ 28.6kiB/s
2020-03-19 10:34:41 Discovered new external address for our node:  /ip4/x.x.x.x/tcp/xxxx/p2p/QXXXXX
2020-03-19 10:34:41 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:41 Verification failed from peer: UnknownBlock: State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)
2020-03-19 10:34:41 Discovered new external address for our node:  /ip4/x.x.x.x/tcp/xxxx/p2p/QXXXXX
2020-03-19 10:34:42 Unable to author block in slot 264101747,. `can_author_with` returned: Failed to get runtime version at `BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)` and will disable authoring. Error: UnknownBlock("State already discarded for BlockId::Hash(0xcd4cc449851fff33ffba2a0e5b69e6d60bbe4a8f77748bc5c3620d7dd0d474d8)") Probably a node update is required!

@bkchr
Copy link
Member

bkchr commented Mar 19, 2020

Every log you posted, was this from a fresh resync?

We released a new version today, that added a fix for syncing. Maybe that helps you?

I synced today as well and run into a similar problem :( However, I did not yet try the latest version.

@fkbenjamin
Copy link
Author

Both logs I posted are from the same sync. They are just 8 days apart. I did no purging between these two. Now, I purged the chain and started a resync with the newest version and everything looks good so far. Will close this once the node is done syncing without the issue.

@fkbenjamin
Copy link
Author

Ok, this issue seems to be resolved. However, a note for everyone who has the same problem: You need to purge and resync from scratch. Otherwhise the new upgrade will also not work.

@bkchr
Copy link
Member

bkchr commented Mar 20, 2020

Yeah it depends on the error, this one really required a full resync.

HCastano added a commit to HCastano/polkadot that referenced this issue Apr 15, 2021
5330d84e CLI: naming clean-up. (paritytech#897)
f99f2225 Westend<>Rococo Headers Relay (paritytech#875)
72c9117b Use complex headers+messages relay in test deployments (paritytech#905)
48423d5b Stop recursing when creating test headers (paritytech#906)
f8586fd4 Fix outstanding bridge names. (paritytech#901)
54b683b3 Complex headers+messages Millau<->Rialto relay (paritytech#878)
c0e77ca1 fix message generator scripts (paritytech#900)
debf3a82 Use Substrate state_getReadProof RPC method to get storage proofs (paritytech#893)
c3fa7216 Support more than `u8::max_value` GRANDPA validators (paritytech#896)
e5cb87f9 Grandpa Pallet Pruning (paritytech#890)
0b6a8920 RestartNeeded is a connection error (paritytech#894)
2cf5fa26 CLI: Estimate Fee (paritytech#888)
7dace624 CLI: Send Message (paritytech#886)
f8eaecfa CLI: Encode Message (paritytech#889)
1610f868 Bump `jsonrpsee` to Alpha.3 (paritytech#892)
d665b531 Use new Cargo feature resolver (paritytech#891)
ce2ee6ed Rialto Millau Maintenance Dashboard (paritytech#881)
7c585ce8 Revert to older nightly. (paritytech#887)
73a0470e Adding GrandpaJustification custom type (paritytech#882)
b9ccea9c Install CA certificates in relay images (paritytech#880)
ec7841a2 fix widget names (paritytech#879)
REVERT: 746a4027 Accidentally committed `cargo-expand`ed code 🤦
REVERT: 1a5d09c5 Add note to more closely match `initialize` Call variant
REVERT: fdd6e6b3 Add `submit_finality_proof` mock Call variant
REVERT: 768b053e Simplify the Rococo and Westend signing params
REVERT: 62aca80e Add Westend<>Rococo variants to `relay_headers`
REVERT: 0bcb0f51 Add Westend<>Rococo variants to `init_bridge`
REVERT: 01d1305f Use mock Westend and Rococo finaltiy tx calls
REVERT: fb34b9dd Add modules for Rococo<>Westend header sync

git-subtree-dir: bridges
git-subtree-split: 5330d84e9511e38cf9d9ec765bee865fedd4b260
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants