Skip to content

Latest commit

 

History

History
104 lines (84 loc) · 1.46 KB

UPGRADE.md

File metadata and controls

104 lines (84 loc) · 1.46 KB

Upgrade version

1. Find containers and nodes

Setup env variable:

export SERVICE=

Find containers inside service:

docker service ls | grep $SERVICE

Find nodes that running containers:

docker service ps $SERVICE_NAME

3. Run bash ( rpc & snapshot )

Rpc:

New version:

killall crond
export NEW_VERSION=

Check environment variable:

cat ~/env.sh
rm -rf $HOME/upgrading.*
cd
wget https://raw.githubusercontent.com/notional-labs/cosmosia/main/rpc/scripts/upgrading.sh
sh ./upgrading.sh $NEW_VERSION

Wait till synced.

Check logs

tail -f -n100 /var/log/chain.err.log

Edit env.sh to new version:

crond
pacman -Sy --noconfirm vim
vim $HOME/env.sh

Snapshot:

New version:

killall crond
export NEW_VERSION=

Check environment variable:

cat ~/env.sh
rm -rf $HOME/upgrading.*
cd
wget https://raw.githubusercontent.com/notional-labs/cosmosia/main/rpc/scripts/upgrading.sh
sh ./upgrading.sh $NEW_VERSION

Wait till synced.

Check logs

tail -f -n100 /var/log/chain.err.log

Turn on crond and edit env.sh to new version:

crond
pacman -Sy --noconfirm vim
vim $HOME/env.sh

4. Update registry

Go to github pull fork repo cosmosia ->> Sync Fork

git pull

Chain:

export CHAIN=
vi ~/cosmosia/data/$CHAIN.ini

Update:

  • version

Then commit ->> push ->> contribute ->> pull request ->> merge