You are viewing a single comment's thread from:

RE: Hive-Engine Snapshot Proposal Funded & Started

in #hiveengine3 years ago


I haven't found another way to catch up the head node, do you have maybe an advice for me? thanks so much in advance.Dear @primersion, thanks so much for your service, im a newee trying to run a node to deploy smart contracts, and im actually stuck in the snapshot part, due to when i replace the file, it tooks a long long time to do it, and when i start the node the node block never reachs the current hive node. I am using "mongorestore --gzip --archive=hsc_20210203_b50993579.archive" function to replace the file, with the correct snapshot name.

Sort:  

Hi,
Did you set the startHiveBlock correctly in the config.json before starting up the node after restoring the snapshot? If you forgot that, you will have to start over unfortunately.. The process is as follows:

  • Stop the node
  • Delete mongo database hsc if you already have one (mongo, use hsc, db.dropDatabase())
  • mongorestore --gzip --archive=<archive name> (will take a few hours)
  • Edit config.json and set the startHiveBlock to 0
  • Start up the node
  • Wait for the node to catch up (should take 0.5-2 hours depending on how recent the snapshot is)

Hi, thanks so much for your response, is possible i forgot that, will try again and let you know, thanks so much again.

Perfect, if you have any more issues, just let me know.