-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Head state missing, repairing chain" I lost many blocks #21006
Comments
It's obviously not an "expceted behaviour" for geth to crash, but when geth does crash, it is expected behaviour that a roll-back can occur. Geth does in-memory pruning of state, and only writes out data every once in a while. If geth crashes, it may well have to discard a whole lot of blocks to go back to that point in time where it most recently stored the state to disk. Short answer: no, you cannot get the blocks back. Hope I've answered your questions, and since I don't see anything more actionable about this particular ticket, I'll close it. |
Is there any option to save state more frequently ?? I guess I crash into similar issue with official Geth client: Geth keep truncating ancient chain + rewind blockchain ? Why ? 😥 in "didn't touch anything" scenario. 10 hours of syncing is out of window because of unknown error :( it always come back to first block. I'm really frustrated here..... |
Yes.
Afaict this is not configurable via CLI or toml. @karalabe am I misremembering? |
Hi there,
I have run geth as private chain. We were doing a load test and injected 10K transactions into the chain. The chain was able to handle the load for 3 times, but fourth time the chain is crashed. And when I restarted the chain, it is rewound to old state that is 2 months old state. As a result I lost close to 600000+ blocks.
Is there a way I can get the blocks back.
System information
Geth version: 1.9.9-stable
OS & Version: Linux - Ubuntu 18.0.4
Commit hash : (if
develop
)Expected behaviour
Geth to repair the chain and start from the latest state
Actual behaviour
Geth has rewound the chain to old state with is 2 months old
I have looked into issue # 19124, and tried to export the chain. But it did not work, as the export failed at block number 2687940 saying it is not found.
Any chance or way to get the blocks? Also would like mention that this is a private cchain with no other nodes in network.
Is this a bug or expected behaviour?
Please help if there is a way to get the lost blocks.
Regards,
Manoj
The text was updated successfully, but these errors were encountered: