Replies: 3 comments 23 replies
-
Please check whether this |
Beta Was this translation helpful? Give feedback.
-
We experienced chain halting when upgrading testnet, after generated a dozen blocks beyond the upgrade point. The validator nodes with |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, I'm asking for help investigating an apphash mismatch we have seen in one of our internal testnet.
We are using:
Our testnet was composed of two nodes, sharing the same Horcrux remote signer (i.e. there was only one validator).
One of the two nodes halted due to a apphash mismatch, the chain didn't halt because the other node continued acting as the validator. By the time we noticed, the pruning settings already wiped the interested block from the node that continued running, hence I wasn't able to do some proper investigation.
The interesting this I noticed from the
application.db
of the node that halted, is that it completely wiped an entire module storage. The previous block height was there, the next it doesn't have any keys:Both nodes had an interesting line in the logs, just before this error occured.
At this point, one thing I noticed is that the node wasn't shutting down properly on SIGTERM/SIGINT, it was panicking right before closing the databases. So my initial thought was that the db got corrupted because of that.
We fixed the bug causing the panic and restarted a new chain from scratch using the fixed version, with the same setup.
The issue happened again, and the same module data was gone, just like the first time. (weird coincidence?)
And an identical log entry for both nodes appeared before the apphash mismatch:
We disabled pruning and ran yet another chain from scratch, but the issue haven't happened yet and it's been a week now. Could the issue be related to pruning?
FWIW we've been using the same IAVL version for months in our public testnet, with the exact same pruning parameters, without any issues.
If anyone has any idea on how to investigate further the root cause, I'd be more than happy. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions