-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Validator falls with error: Trie lookup error: Database missing expected key: #6377
Comments
We've also observed behaviour described in previous comment:
|
Does this error directly happens after the upgrade and restart of the binary? What kind of database are you using? Rocksdb or ParityDB? In general this looks like some db issue, which could hint some disk issue. |
@arkpar your recent changes to I checked the trie code and we generate these errors only when fetching data from the db, so it can not be the cache. However, it needs to be some in memory structure as in #6389 was reported to work again after a restart. |
@bkchr #6389 could be caused by the database error only if the trie node was found, but contain incorrect data. I don't see how this is possible This issue however could be caused by an unknown issue with the pruning code. The changes to state-db mostly concern the case when @base1217 What's your |
Why only invalid data? https://github.com/paritytech/trie/blob/02b030a24bc60d46ed7f156888bdbbed6498b216/trie-db/src/lookup.rs#L362-L369 looking at this, it is the same code path and when the db returns |
We encountered this today as well within 24hours after updating two validators. Both crashed within one second of each other. Both are on different hardware. One has a Intel and the other AMD cpu. Both validators use Rocksdb
And these are the parameters for the validators:
|
@tugytur but after restart it works? |
@bkchr yes. Just crashed and automatically restarted. |
I just encountered this error again, this time on another validator. |
I can confirm that for a new validator also, it resolves on restart. |
I've also had this error, most on my kusama rocksdb node, multiple times, decided to rebuild after that. On paritydb only one slightly different error |
Same for my Kusama node with |
@arturgontijo @stakeworld and others seeing this issue, could you please add |
Just did it, if it crashes again I'll post the logs here...thanks! |
Identified a potential race condition introduced in #12239. State data moved from unfinalized overlay to pruning window becomes temporarily unavailable. |
FWIW, We've still observed this error on Versi with #6423. |
Node stops working every hour, has anyone solved this problem? |
paritytech/substrate#12927 this should hopefully fix it. It is now tested. |
Should be fixed in the next release. |
Hello,
After upgrade to 0.9.33 some of our validators node from time to time fall.
No spikes or bottlenecks detected on hosts meanwhile.
Event bellow:
The text was updated successfully, but these errors were encountered: