Closed nateless closed 1 year ago
@nateless From the log, the node enabled the checkpoint v2 before, and now the checkpoint version is v1, but after the node enabled checkpoint v2, it does not support rollback from v2 to v1. So you can modify the configuration file to set storage.checkpoint.version = 2
to solve this issue, then restart the node.
hi, @nateless, there is config in main_net_config.conf
called checkpoint.version
, and its default value is 1. If the node ever starts with checkpoint.version = 2
, such config must maintain checkpoint.version = 2
afterwards for compatibility.
The phenomenon you metioned above seems to be in that case. If the config is ever be set, there will exits a directory called checkpoint
, and snapshot may also be built with that config. You can check the config if you miss such info, or would you please share the reason of switching from checkpoint.version = 2
to checkpoint.version = 1
if it is done intentionally? Maybe it can help to make some improvements.
Thanks @ferdinand026 and @ClarkChenc , your assistance was indeed helpful. We didn't previously have this setting in our main_net_config.conf
configuration file. However, after implementing it, everything started up without any problems.
@nateless Would you like to submit a PR to help improve this issue? Give a tip to set checkpoint.version = 2
, like this ERROR [main] [DB](SnapshotManager.java:496) checkpoint check failed, can't convert checkpoint from v2 to v1, please set checkpoint.version = 2
.
System information
java-tron version:
java -jar FullNode.jar -v
OS : Linux JVM : Oracle Corporation 1.8.0_341 amd64 Git : 9e95599de2a9d60f4e706d18d3b71ac8850a0c01 Version : 4.7.2 Code : 18031Expected behaviour
Should start
Actual behaviour
checkpoint check failed, can't convert checkpoint from v2 to v1
Steps to reproduce the behaviour
wget https://fullnode-backup-2.s3-eu-central-1.amazonaws.com/FullNode-52871735-4.7.2-output-directory.tgz tar -zxvf FullNode-52871735-4.7.2-output-directory.tg java -Xmx64g -XX:+UseConcMarkSweepGC -jar FullNode.jar -c main_net_config.conf
Backtrace