Skip to main content

Node Updating

Updates are easy to be applied through migration scripts. Node operators can access these scripts on the rizenet-node github repository. The instructions on how to execute them are below.

The node version is kept locally as a value on the file rizenet-node/migration.

By default the logs of the migration execution can be found at $HOME/rizenet_node_migrations.log

Video tutorial​

A video-version of this documentation is available if you prefer:

Node upgrade instructions for Ubuntu linux​

For updating the node, please execute:

cd rizenet-node

# reset any changes made to tracked files of the rizenet-node tools and get the latest from git:
git reset --hard
git pull

# ask for sudo password only once, if needed:
if sudo -l -n 2>/dev/null | grep -q "NOPASSWD:"; then
echo "Sudo is passwordless; skipping sudo -v." >> "$HOME/rizenet_node_migrations.log"
else
echo "Sudo requires a password; running sudo -v." >> "$HOME/rizenet_node_migrations.log"
sudo -v
fi

# Clean the log file from the string that marks the end of it:
sed -i 's/MIGRATIONS_FINISHED/MIGRATION DONE/g' "$HOME/rizenet_node_migrations.log"

# run the migrations to update the node:
(sudo nohup bash ./executeMigrations.sh >> $HOME/rizenet_node_migrations.log 2>&1 &); \
tail -f $HOME/rizenet_node_migrations.log | sed '/MIGRATIONS_FINISHED/ q'

Once finished, you will get an output on screen that you can share with your Rizenet admin contact so they can verify that everything executed correctly and your node is spinning.