From 95836417d5d9bd78870a704135a9b8e060a3e7b1 Mon Sep 17 00:00:00 2001 From: Hein Dauven Date: Mon, 2 Nov 2026 23:33:43 +0100 Subject: [PATCH 1/2] docs: make the node upgrade page a clear step-by-step again Operators reported the upgrade page became harder to follow after the July rewrite: accurate, but dense reference prose with the per-node-type path buried in a flat list and no clear 'did it work' signal. Restructure into a numbered walkthrough: note current state -> run the installer (network tabs, provisioner/full vs archive) -> start Rusk and confirm, with an explicit success criterion (block height climbing + new blocks in the log). Keeps the accurate caveats (same network/role, installer leaves Rusk stopped, rusk.toml regenerated / archive [http], rollback, testnet resets). --- .../docs/operator/guides/upgrade-node.mdx | 111 +++++++++--------- 1 file changed, 53 insertions(+), 58 deletions(-) diff --git a/src/content/docs/operator/guides/upgrade-node.mdx b/src/content/docs/operator/guides/upgrade-node.mdx index 98f921a5..86fda4f2 100644 --- a/src/content/docs/operator/guides/upgrade-node.mdx +++ b/src/content/docs/operator/guides/upgrade-node.mdx @@ -1,99 +1,94 @@ --- title: Upgrade a node -description: Apply a supported node-installer release and verify the node afterward. +description: Update your Dusk node with the installer and confirm it is back in sync. --- -The node installer pins the supported Rusk and Rusk Wallet versions for each network. Rerunning it downloads and verifies replacement binaries before stopping the current Rusk service. +import { Tabs, TabItem } from '@astrojs/starlight/components'; -:::caution[Keep the same role] -Repeat the network and feature flags used for the existing node. Omitting `--feature archive` replaces an archive installation with the default Rusk binary. +Rerunning the [node installer](https://github.com/dusk-network/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. + +:::caution[Keep the same network and role] +Rerun the installer with the **same network and feature flags** as your current node. Leaving out `--feature archive` on an archive node, for example, turns it back into a default node. ::: -## Before upgrading +## 1. Note the current state -Record the current state: +So you can confirm the node recovers afterwards, record where it is now: ```sh ruskquery version -ruskquery info | jq '{version, chain_id, kadcast_address}' -ruskquery peers ruskquery block-height systemctl is-active rusk ``` -Retain a secure copy of consensus keys and intentional configuration. The installer preserves: +## 2. Run the installer for your node -- `/opt/dusk/conf/consensus.keys`; -- `/opt/dusk/services/dusk.conf`; -- `/opt/dusk/services/rusk.conf.user`; and -- chain state under `/opt/dusk/rusk`. +Pick the tab for your network, then the command for your node type. -It regenerates `/opt/dusk/conf/rusk.toml`, `genesis.toml`, the Rusk systemd unit, managed binaries and scripts, and the selected user's wallet configuration. Save the old `rusk.toml` for comparison if it contains intentional changes, but do not copy it over the new network configuration wholesale. + + -## Run the installer + **Provisioner or full node** -Choose the command matching the node. + ```sh + curl --proto '=https' --tlsv1.2 -sSfL \ + https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ + | sudo bash + ``` -### Mainnet provisioner or full node + **Archive node** -```sh -curl --proto '=https' --tlsv1.2 -sSfL \ - https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ - | sudo bash -``` + ```sh + curl --proto '=https' --tlsv1.2 -sSfL \ + https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ + | sudo bash -s -- --feature archive + ``` -### Mainnet archive node + + -```sh -curl --proto '=https' --tlsv1.2 -sSfL \ - https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ - | sudo bash -s -- --feature archive -``` + **Provisioner or full node** -### Testnet provisioner or full node + ```sh + curl --proto '=https' --tlsv1.2 -sSfL \ + https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ + | sudo bash -s -- --network testnet + ``` -```sh -curl --proto '=https' --tlsv1.2 -sSfL \ - https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ - | sudo bash -s -- --network testnet -``` + **Archive node** -### Testnet archive node + ```sh + curl --proto '=https' --tlsv1.2 -sSfL \ + https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ + | sudo bash -s -- --network testnet --feature archive + ``` -```sh -curl --proto '=https' --tlsv1.2 -sSfL \ - https://github.com/dusk-network/node-installer/releases/latest/download/node-installer.sh \ - | sudo bash -s -- --network testnet --feature archive -``` - -When an automation process runs the installer directly as root, append `--user ` so the wallet configuration is written to the intended home directory. A normal interactive `sudo` invocation uses `SUDO_USER` automatically. + + -The installer stops Rusk only after downloads and binary version checks pass. It enables and reloads the systemd unit, but leaves Rusk stopped. +The installer leaves Rusk **stopped** after a successful run, so you can review the configuration before starting. -## Review and restart - -If the previous `rusk.toml` contained intentional operator settings, compare it with the generated file and reapply only the required values. Archive API operators commonly need to restore their `[http]` configuration. +:::note[Custom `rusk.toml` settings] +The installer regenerates `rusk.toml`. If you had intentional changes there, reapply only those values to the new file before starting. Archive operators usually need to restore their `[http]` block (see the [archive node guide](/operator/archive-node/)). +::: -Start the service: +## 3. Start Rusk and confirm it worked ```sh sudo systemctl start rusk ``` -Then verify all layers: +Check that the version updated and the node is back in sync: ```sh -systemctl is-active rusk -systemctl show rusk -p ActiveState -p SubState -p NRestarts -ruskquery info | jq '{version, chain_id, kadcast_address}' -ruskquery peers -ruskquery block-height -sudo tail -n 50 /var/log/rusk.log +ruskquery version +ruskquery block-height # run it a few times, about 10 seconds apart +tail -n 50 /var/log/rusk.log ``` -Check the height again after roughly 30 seconds and compare it with the matching [network explorer or public endpoint](/operator/networks/). For an archive node, also run an archive GraphQL query before returning API traffic to it. +**You're back up when the block height keeps increasing and the log shows new blocks being accepted.** After about 30 seconds, compare your height with the [network explorer](/operator/networks/). On an archive node, also run an archive GraphQL query before sending API traffic back to it. -If Rusk fails to start, inspect: +## If Rusk doesn't start ```sh sudo systemctl status rusk --no-pager @@ -101,8 +96,8 @@ sudo journalctl -u rusk --since "15 minutes ago" --no-pager sudo tail -n 100 /var/log/rusk_recovery.log ``` -Do not repeatedly rerun the installer until the first failure is understood. See [Troubleshooting](/operator/troubleshooting/) and [Roll back a node update](/operator/guides/rollback-node-update/) when appropriate. +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](/operator/troubleshooting/), and [Roll back a node update](/operator/guides/rollback-node-update/) if a release needs reverting. If the node can't catch back up, use [manual resync](/operator/guides/manual-resync/). ## Testnet resets -Testnet can be reset independently of mainnet. Follow an announced reset by reinstalling with `--network testnet`, then use the supported [fast-sync](/operator/guides/fast-sync/) or reset procedure specified in the announcement. Do not reset state merely because a normal upgrade temporarily lags the network. +Testnet can be reset independently of mainnet. After an announced reset, reinstall with `--network testnet`, then follow the [fast-sync](/operator/guides/fast-sync/) or reset steps from the announcement. Don't reset state just because a normal upgrade briefly lags the network. From d63f901beaafc5e7230ceef4b259bdc26c28e0a4 Mon Sep 17 00:00:00 2001 From: Hein Dauven Date: Tue, 3 Nov 2026 00:35:14 +0100 Subject: [PATCH 2/2] docs: use ruskquery for the upgrade health checks Replace the installer-version and log-tail checks on the happy path with ruskquery info/peers/block-height, the same health check used elsewhere in the operator docs. ruskquery version reports the installer release, not the running Rusk binary, so ruskquery info is the correct way to confirm the upgrade. Leave systemctl/journalctl in the failure section, since ruskquery can't answer when the node is down. --- src/content/docs/operator/guides/upgrade-node.mdx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/content/docs/operator/guides/upgrade-node.mdx b/src/content/docs/operator/guides/upgrade-node.mdx index 86fda4f2..68410c5b 100644 --- a/src/content/docs/operator/guides/upgrade-node.mdx +++ b/src/content/docs/operator/guides/upgrade-node.mdx @@ -16,9 +16,8 @@ Rerun the installer with the **same network and feature flags** as your current So you can confirm the node recovers afterwards, record where it is now: ```sh -ruskquery version -ruskquery block-height -systemctl is-active rusk +ruskquery info # running Rusk version and chain +ruskquery block-height # current height ``` ## 2. Run the installer for your node @@ -78,18 +77,20 @@ The installer regenerates `rusk.toml`. If you had intentional changes there, rea sudo systemctl start rusk ``` -Check that the version updated and the node is back in sync: +Give it a few seconds, then check the node with `ruskquery` rather than digging through logs: ```sh -ruskquery version +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 -tail -n 50 /var/log/rusk.log ``` -**You're back up when the block height keeps increasing and the log shows new blocks being accepted.** After about 30 seconds, compare your height with the [network explorer](/operator/networks/). On an archive node, also run an archive GraphQL query before sending API traffic back to it. +**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](/operator/networks/). On an archive node, also run an archive GraphQL query before sending API traffic back to it. ## If Rusk doesn't start +`ruskquery` talks to a running node, so when Rusk is down it has nothing to answer. Read the service and its logs directly instead: + ```sh sudo systemctl status rusk --no-pager sudo journalctl -u rusk --since "15 minutes ago" --no-pager