Skip to content

Upgrade Storage Node

Terminal window
sudo systemctl stop zgs
Terminal window
sudo apt-get update
sudo apt-get install openssl libssl-dev pkg-config

Terminal window
cd $HOME
rm -rf $HOME/0g-storage-node/run/db
mv $HOME/0g-storage-node/run/config-testnet-turbo.toml $HOME/config-testnet-turbo_backup.toml

Terminal window
cd $HOME/0g-storage-node
git fetch --all --tags
git checkout v0.8.7
git submodule update --init
cargo build --release

⚠️ Important: Always verify you are using the correct version tag when checking out the new version.


Terminal window
mv $HOME/config-testnet-turbo_backup.toml $HOME/0g-storage-node/run/config-testnet-turbo.toml

Terminal window
sudo systemctl restart zgs && sudo systemctl status zgs