Skip to content

Instantly share code, notes, and snippets.

@m4thfr34k
Last active June 15, 2022 07:25
Show Gist options
  • Save m4thfr34k/bf64467bec1c88de2c07dff39c3d22ff to your computer and use it in GitHub Desktop.
Save m4thfr34k/bf64467bec1c88de2c07dff39c3d22ff to your computer and use it in GitHub Desktop.
Update steps for Kreechures Shadow Nodes

Steps to update the Kreechures Shadow Nodes

Before doing anything, click 'COOLDOWN' on the GenesysGo Manage Nodes dashboard

Steps with comments

  1. ssh into shadow node
  2. change user (su sol)
  3. stop sol.service (sudo systemctl stop sol.service)
  4. verify stopped (sudo systemctl status sol.service)
  5. stop systuner.service (sudo systemctl stop --now systuner.service)
  6. verify stopped (sudo systemctl status systuner.service)
  7. update solana software (solana-install init 1.10.25)
  • version in this command will change over time. ensure you update as needed.
  • if you get an error that solana-install is not found then reset your path export PATH="/home/sol/.local/share/solana/install/active_release/bin:$PATH"
  1. verify version (solana --version)
  2. start systuner (sudo systemctl enable --now systuner.service)
  3. verify running (sudo systemctl status systuner.service)
  4. start sol.service (sudo systemctl enable --now sol.service)
  5. verify running (sudo systemctl status sol.service)

Code for steps above

sudo systemctl stop sol.service
sudo systemctl status sol.service
sudo systemctl stop --now systuner.service
sudo systemctl status systuner.service
solana-install init 1.10.25
solana --version
sudo systemctl enable --now systuner.service
sudo systemctl status systuner.service
sudo systemctl enable --now sol.service
sudo systemctl status sol.service

Typically use Tmux for this verification

  1. verify log stream (sudo tail -f ~/log/solana-validator.log)
  2. verify health (curl http://localhost:8899 -k -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getHealth"}')
  3. verify that you are catching up to the tip (timeout 120 solana catchup --our-localhost=8899 --log --follow --commitment root)

Wait until node is back at the tip and come out of cooldown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment