Cosmovisor
Recommended Hardware: 6 Cores, 16GB RAM, 400GB of storage (NVME), 100 Mb/s
install dependencies, if needed
install go, if needed
OR (for user account)
Check version
set vars
Port: 14 (you can change to another port)
download binaries
install Story
Cosmovisor Setup
Install and init Cosmovisor:
create directory:
Check Story version
UPGRADE v0.12.1:
Create a directory and download the current version of story:
Check version:
result
Check upgrade info
result: {"name":"v0.12.1","time":"0001-01-01T00:00:00Z","height":322000}
UPGRADE v0.13.0: (prepare)
Create a directory and download the current version of story:
Check version:
result
Create upgrade simlink:
Check current simlink:
result: lrwxrwxrwx 1 story story 16 Nov 21 09:26 /home/story/.story/story/cosmovisor/current -> upgrades/v0.12.1
Check upgrade info:
result: {"name":"v0.13.0","time":"0001-01-01T00:00:00Z","height":858000}
Sets up an automatic upgrade in Cosmovisor:
result:
Create service file:
init story app
set seeds and peers
download genesis and addrbook
set custom ports in story.toml file
set custom ports in config.toml file
enable prometheus and disable indexing
create geth servie file
download snapshots
backup priv_validator_state.json
remove old data and unpack Story snapshot
restore priv_validator_state.json
delete geth data and unpack Geth snapshot
enable and start geth, story
check logs (in new Tmux)
Check sync status:
END SETUP:
Note
From now please do not stop and restart node before block 858,000 . Because it will run forcely with new binary.
If you need to restart the node unexpectedly, please setup again:
Remove folder
Remove symlink:
Setup symlink v0.12.1 back:
Finally Start node & setup v0.13.0 with Cosmosvisor again.
Last updated