We have a new release out, following the testing of the recent alpha network.
Please see the following to upgrade your nodes and clients.
(We’re currently looking into the dead faucet and possible revival mechanisms, please bear with us there!)
Upgrading Nodes
There are two scenarios for upgrading your nodes, depending on whether you’re running them via the node manager or not.
Without Safenode Manager
If you’re not using the node manager, you need to stop your running nodes. If they are running in the foreground, you can use Ctrl+C
. If they are running in the background:
pkill safenode # Linux
killall safenode #macOS
Get-Process safenode | Stop-Process # Windows Powershell
If you do not currently have the latest version of safeup
(0.7
), you may need to run to update your local safeup
version:
curl -sSL https://raw.githubusercontent.com/maidsafe/safeup/main/install.sh | bash
After this, run safeup update
to get the new version of the node. You should see output similar to the following:
$ safeup update
**************************************
* *
* Updating components *
* *
**************************************
Retrieving latest version for safe...
Latest version of safe is <NEW VERSION>
There is no previous installation for the safe component.
No update will be performed.
Retrieving latest version for safenode...
Latest version of safenode is <NEW VERSION>
Current version of safenode is 0.105.2
Updating safenode to <NEW VERSION>...
Installing safenode for x86_64-unknown-linux-musl at /home/<username>/.local/bin...
Installing safenode version <NEW VERSION>...
[00:00:01] [########################################] 7.83 MiB/7.83 MiB (0s)
safenode <NEW VERSION> is now available at /home/<username>/.local/bin/safenode
Retrieving latest version for safenode-manager...
Latest version of safenode-manager is <NEW VERSION>
There is no previous installation for the safenode-manager component.
No update will be performed.
The update
command will get the latest versions of all of the three binaries you have installed.
With Safenode Manager
If you are managing your nodes via safenode-manager
, run the upgrade
command. Output should be similar to the following:
$ sudo safenode-manager upgrade
=================================================
Upgrade Safenode Services
=================================================
Retrieving latest version of safenode...
Latest version is <NEW VERSION>
Downloading safenode version <NEW VERSION>...
Download completed: /tmp/2a57b729-216c-4049-9357-6b79d2e9c70f/safenode
Refreshing the node registry...
Attempting to stop safenode1...
✓ Service safenode1 with PID 2513 was stopped
Attempting to start safenode1...
✓ Started safenode1 service
- PID: 2676
- Bin path: /var/safenode-manager/services/safenode1/safenode
- Data path: /var/safenode-manager/services/safenode1
- Logs path: /var/log/safenode/safenode1
Attempting to stop safenode2...
✓ Service safenode2 with PID 2521 was stopped
Attempting to start safenode2...
✓ Started safenode2 service
- PID: 2732
- Bin path: /var/safenode-manager/services/safenode2/safenode
- Data path: /var/safenode-manager/services/safenode2
- Logs path: /var/log/safenode/safenode2
Attempting to stop safenode3...
✓ Service safenode3 with PID 2529 was stopped
Attempting to start safenode3...
✓ Started safenode3 service
- PID: 2787
- Bin path: /var/safenode-manager/services/safenode3/safenode
- Data path: /var/safenode-manager/services/safenode3
- Logs path: /var/log/safenode/safenode3
Upgrade summary:
✓ safenode1 upgraded from 0.105.2 to <NEW VERSION>
✓ safenode2 upgraded from 0.105.2 to <NEW VERSION>
✓ safenode3 upgraded from 0.105.2 to <NEW VERSION>
Upgrading the Client
If you’ve obtained the safe
client via safeup
, you only need to issue an update
command:
$ safeup update
**************************************
* *
* Updating components *
* *
**************************************
Retrieving latest version for safe...
Latest version of safe is <NEW CLIENT VERSION>
Current version of safe is 0.90.1
Updating safe to <NEW CLIENT VERSION>...
Installing safe for x86_64-unknown-linux-musl at /home/<username>/.local/bin...
Installing safe version <NEW CLIENT VERSION>...
[00:00:02] [########################################] 9.91 MiB/9.91 MiB (0s)
safe <NEW CLIENT VERSION> is now available at /home/<username>/.local/bin/safe
Retrieving latest version for safenode...
Latest version of safenode is <NEW VERSION>
There is no previous installation for the safenode component.
No update will be performed.
Retrieving latest version for safenode-manager...
Latest version of safenode-manager is 0.7.4-alpha.1
There is no previous installation for the safenode-manager component.
No update will be performed.
Please note: if you already used safeup
to upgrade your node, the client will have been updated at the same time. For those using the node manager, you will need to run safeup update
to get a new client.