Skip to content

Upgrade a node

Rerunning the node installer upgrades a node in place. It re-pins the supported Rusk and Rusk Wallet versions, downloads and verifies the new binaries, and only then gracefully stops Rusk. Your consensus keys, user configuration, and chain state are preserved; the installer regenerates rusk.toml, genesis.toml, and the systemd unit.

So you can confirm the node recovers afterwards, record where it is now:

Terminal window
ruskquery info # running Rusk version and chain
ruskquery block-height # current height

Pick the tab for your network, then the command for your node type.

Provisioner or full node

Terminal window
curl --proto '=https' --tlsv1.2 -sSfL \
https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \
| sudo bash

Archive node

Terminal window
curl --proto '=https' --tlsv1.2 -sSfL \
https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \
| sudo bash -s -- --feature archive

The installer leaves Rusk stopped after a successful run, so you can review the configuration before starting.

Terminal window
sudo systemctl start rusk

Give it a few seconds, then check the node with ruskquery rather than digging through logs:

Terminal window
ruskquery info # new Rusk version and chain
ruskquery peers # should be non-zero
ruskquery block-height # run it a few times, about 10 seconds apart

You’re back up when ruskquery peers is non-zero and the block height keeps climbing. ruskquery info should show the new Rusk version. After about 30 seconds, compare your height with the network explorer. On an archive node, also run an archive GraphQL query before sending API traffic back to it.

ruskquery talks to a running node, so when Rusk is down it has nothing to answer. Read the service and its logs directly instead:

Terminal window
sudo systemctl status rusk --no-pager
sudo journalctl -u rusk --since "15 minutes ago" --no-pager
sudo tail -n 100 /var/log/rusk_recovery.log

A failure to start is often a wrong wallet password or no peers being found. Don’t rerun the installer in a loop before you understand the first error. See Troubleshooting, and Roll back a node update if a release needs reverting. If the node can’t catch back up, use manual resync.

Testnet can be reset independently of mainnet. After an announced reset, reinstall with --network testnet, then follow the fast-sync or reset steps from the announcement. Don’t reset state just because a normal upgrade briefly lags the network.