The procedure to update an edge node depends on the installation environment, follow the steps in the apropriate section below.
Login to your edge node using ssh and enter:
[sudo] docker login https://docker.crosser.io
When prompted, enter the username and password provided by Crosser.
You have 2 options when updating to a new version:
You are using the latest
tag on your image specification in your docker-compose.yml
file and know there is an update released. The image in this case is set to:
image: docker.crosser.io/crosser/edgenode:latest
You are using a specific version of the node software and want to update to another one
No specific version tag
To update to the latest released version:
Open a terminal and enter:
[sudo] docker-compose pull
Then enter:
[sudo] docker-compose up -d
Specific version tag set
To change from one version to another specific version:
Open a terminal and enter:
[sudo] docker-compose down
Edit your docker-compose.yml
to use the version you want, e.g.
image: docker.crosser.io/crosser/edgenode:2.5.0-x64
In the terminal, enter:
[sudo] docker-compose up -d
Prerequisites
Note: If you are using the installer for version >= 2.5.0 scripting must be enabled in PowerShell for scripts downloaded from the Internet. You can check your current execution policy with:
Get-ExecutionPolicy
Make sure it’s one of RemoteSigned
, UnRestricted
or Bypass
, if not use the following command to change it:
Set-ExecutionPolicy -Scope Process RemoteSigned
If current version is <2.5.0:
Stop the edge node service using:
Crosser.EdgeNode.Service.Windows stop
Uninstall the old version with:
Crosser.EdgeNode.Service.Windows uninstall
If current version is >= 2.5.0:
Stop the edge node service with:
Stop-Service -Name Crosser.EdgeNode.Service
Unistall the previous version with:
Remove-Service -Name Crosser.EdgeNode.Service
data
folder from your old installation directory into the Host\data
folder in your new installation directoryOpen PowerShell in the directory where you stored the installer. Then run:
.\InstallWindowsService.ps1
You will be asked to provide the nodeId and accessKey credentials, but since they have already been installed you can just answer with enter.
At the end of the installation, make sure to enter run (when asked) before hitting enter. Otherwise the service will only be installed but not started.
data
folder from your old installation directory into your new installation directoryOpen PowerShell in the directory where you stored the installer. Then run:
Crosser.EdgeNode.Service.Windows install
You will be asked to provide the nodeId and accessKey credentials, but since they have already been installed you can just answer with enter.
Start the edge node service with:
Crosser.EdgeNode.Service.Windows start
The new version should now be up and running and you should see the correct version number on the Nodes page in Crosser Cloud.