What can I do to not lose the data ?
2 Answers
You need to replay blockchain.
$ nodeos --replay-blockchain
If it doesn't solve your problem, stop nodeos and run with --hard-replay-blockchain
option.
-
I tried both. I'm getting above error after --hard-replay-blockchain– AditiBCommented May 30, 2020 at 19:44
-
Delete data/blocks/reversible and data/state directory completely and try again. Be careful not to delete data/blocks/blocks.log.– conr2dCommented May 31, 2020 at 14:10
-
-
You cannot lose data unless you delete blocks.log. Transactions are stored in blocks.log and state (including accounts, permission, multi-index table etc.) is built by accumulating changes caused by transactions and it can always be restored by replay. If you lose data, you must do something wrong.– conr2dCommented Jun 2, 2020 at 7:14
-
I deleted only the reversible folder. Is it possible that my most of the data was in that ?– AditiBCommented Jun 2, 2020 at 9:19
I am facing the same issue. Actually i have setted up the classic synchronisation of the testnode(jungle testnet). Blocks are receiving from the start. so it was consuming more time and i left the system to sync but the system got turned off when i tried to restart it from where i lefted it showed some kind of no existing state and fork databse error. so i tried to settup the node using snapshot (latest) but it didnt worked too. i have used the replay blocks plugin . not worked . please help..
-
Setting up using snapshot is the best way to go. Please check that your snapshot is not corrupted.– AditiBCommented Jul 28, 2023 at 22:27