Update client
Check current version of Lodestar running on the server:
cd /usr/local/bin/lodestar && ./lodestar -v
Get Lodestar Client
-
Remove old repository clone
cd ~/downloads && sudo rm -r lodestar -
Build Lodestar
- Download latest Lodestar client from GitHub
cd ~/downloads && git clone -b stable https://github.com/chainsafe/lodestar.git -
Install yarn
cd lodestar && yarn install - Build Lodestart client
yarn run build
Note: If Lodestar build fails with error due to old Node.js or missing corepack, apply the Lodestar Installation guide to install latest Node.js, associated Build essential and Corepack. - Download latest Lodestar client from GitHub
-
Remove old client folder
cd ~/downloads; sudo rm -r lodestarclient; sudo rm -r lodestar -
Find the latest stable version of Lodestar client on Github
- Find latest Lodestar version at https://github.com/ChainSafe/lodestar/releases
- Write latest stable Lodestar version:
This will update the url links in the guide below.
-
Download Lodestar version
1.36.0to your nodemkdir ~/downloads/lodestarclient && cd ~/downloads/lodestarclient && curl -LO https://github.com/ChainSafe/lodestar/releases/download/v1.36.0/lodestar-v1.36.0-linux-amd64.tar.gz - Extract downloaded file
tar xvf lodestar-v1.36.0-linux-amd64.tar.gz - Create lodestar directory and move the client into it
mkdir ~/downloads/lodestar && mv ~/downloads/lodestarclient/lodestar ~/downloads/lodestar/lodestar
-
Remove old repository clone
-
Check version of new Lodestar client
~/downloads/lodestar/lodestar -v -
Stop Lodestar services
Stop Lodestar Beacon service and all validators-based services
sudo systemctl stop lodestarbeacon sudo systemctl stop lodestar-vi... sudo systemctl stop lodestar-vi... ...This option requires installed and configured Staking manager Stop cosnsensus services
/usr/local/bin/staking.sh stop consensusCheck cosnsensus services status
/usr/local/bin/staking.sh check consensus Remove old production Lodestar client
sudo rm -r /usr/local/bin/lodestarCopy new production client to
/usr/local/bindirectorysudo cp -a ~/downloads/lodestar /usr/local/binStart the Lodestar services
Start Lodestar Beacon service and all validators-based services
sudo systemctl start lodestarbeacon sudo systemctl start lodestar-vi... sudo systemctl start lodestar-vi... ...This option requires installed and configured Staking manager /usr/local/bin/staking.sh start consensusMonitor
systemctl status lodestarbeacon lodestar-vi.. lodestar-vi..journalctl -fu lodestarbeaconjournalctl -f -u lodestar-vi.. -u lodestar-vi..
This option requires installed and configured Staking manager /usr/local/bin/staking.sh check consensus/usr/local/bin/staking.sh monitor consensus