Instructions to Upgrade
These are the instructions to upgrade heimdall on your nodes:
- 
Upgrade heimdall to the latest version: cd ~/heimdall git pull git checkout v0.2.7 make install
- 
Ensure that you are on the latest version: heimdalld version # It should return # 0.2.7
- 
Restart heimdalld and heimdalld-rest-server. Keep heimdalld-bridge stopped until further notice: sudo service heimdalld restart sudo service heimdalld-rest-server restart # Make sure bridge is stopped: sudo service heimdalld-bridge stop
Troubleshooting Sync Issues
If heimdall is not syncing in your node, please follow these instructions:
- 
Backup your addrbook: cd ~/.heimdalld/config mv addrbook.json addrbook.json_bkp
- 
Configure new seed nodes in ~/.heimdalld/config/config.toml: Please ensure the previous seed nodes are removed and replace it with the one belowseeds = "[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
- 
Restart heimdall services sudo service heimdalld restart sudo service heimdalld-rest-server restart # Make sure bridge is stopped: sudo service heimdalld-bridge stop
- 
Check if you see the latest_block_heightis increasing by running this command few times:curl localhost:26657/status | grep latest_block_height # "latest_block_height": "8590240",
Troubleshooting AppHash Errors
- 
Restart heimdalld and check if you are seeing AppHasherrors in heimdall by doing a grep on the logs:sudo service heimdalld restart journalctl -u heimdalld -n 1000 | grep 'panic: state.AppHash does not match AppHash after replay.'
- 
Skip to Step (3) if you donβt see any output. Only if you see an output in (1) similar to: Mar 12 05:06:03 bash[24401]: panic: state.AppHash does not match AppHash after replay. Got ...There is an AppHash error and you need to recover from the snapshot by following the instructions in βRecover from Snapshotβ section. 
- 
Restart heimdall services sudo service heimdalld restart sudo service heimdalld-rest-server restart # Make sure bridge is stopped: sudo service heimdalld-bridge stop
- 
Check if you see the latest_block_heightis increasing by running this command few times:curl localhost:26657/status | grep latest_block_height # "latest_block_height": "8590240",
Recover from Snapshot
Please follow the steps mentioned for heimdall in https://forum.polygon.technology/t/snapshot-instructions-for-heimdall-and-bor/2278 if you are seeing app hash errors. Use the latest snapshot from https://snapshots.matic.today/:
Mainnet Heimdall snapshot https://matic-blockchain-snapshots.s3-accelerate.amazonaws.com/matic-mainnet/heimdall-snapshot-2022-03-12.tar.gz