Do we need a cheeky little topic for the upgrade? Probably not but here is one anyway in case anyone has wandered in from Discord and in case there are any issues to report.
Intended audience: those running safenodes using safenode-manager
Pre-reqs:-
Having safenodes running at version 0.109.0 using safenode-manager.
Upgrade safenode-manager with:-
safeup node-manager
To see current version of safenodes
safenode-manager status --details
To upgrade all nodes at once:-
safenode-manager upgrade
OR
To upgrade safenodes individually:-
safenode-manager upgrade --service-name safenode1
There is a burst of activity when a node restarts that lasts for a couple of minutes with some records being stored.
That is making me think itβs best to do the upgrades one at a time and let them settle down for maximum niceness for the nodes and your network. Iβm sure itβs better for the network as a whole to upgrade them one at a time if you are running a lot of nodes.
So I upgraded 10 down to 6 one at a time waiting until they settle. But I upgraded 1 to 5 all at once. As predicted the little RPi4 and router network got very busy for a couple of mins.
As each node can do several MB/s of downloads at once I think they were being strangled when doing the last 5 all at once.
This graph shows the tail end of one at once and when the last 5 were starting and not getting alll they wanted.
I got this error when I upgraded one of them:-
safenode-manager upgrade --service-name safenode9
βββββββββββββββββββββββββββββββββ
β Upgrade Safenode Services β
βββββββββββββββββββββββββββββββββ
Retrieving latest version of safenode...
Error:
0: error sending request for url (https://crates.io/api/v1/crates/sn_node)
1: client error (Connect)
2: dns error: failed to lookup address information: Try again
3: failed to lookup address information: Try again
Location:
/project/sn_node_manager/src/cmd/mod.rs:78
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
But I ran the command again and it completed the upgrade and seems fine. Although there was another error produced:-
safenode-manager upgrade --service-name safenode9
βββββββββββββββββββββββββββββββββ
β Upgrade Safenode Services β
βββββββββββββββββββββββββββββββββ
Retrieving latest version of safenode...
Latest version is 0.110.0
Using cached safenode version 0.110.0...
Download completed: /home/safe/.local/share/safe/node/downloads/safenode
Refreshing the node registry...
Attempting to stop safenode9...
β Service safenode9 with PID 44675 was stopped
Attempting to start safenode9...
Upgrade summary:
β safenode9 was upgraded from 0.109.0 to 0.110.0 but it did not start
Error:
0: There was a problem upgrading one or more nodes
Location:
/project/sn_node_manager/src/cmd/node.rs:545
Suggestion: For any services that were upgraded but did not start, you can attempt to start them again using the 'start' command.
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
After that I spotted that there is a new version of safenode-manager. Whoops!
So I updated it with safeup node-manager
Maybe itβs completely unrelated but I didnβt see the error again after that.
The upgrade worked for all of the nodes in the end. Dive in, the water is lovely!