Skip to main content

Software Upgrade

This guide outlines the steps required to upgrade your Sentinel Hub software. Follow these instructions carefully to ensure a smooth process.

Upgrade List

Upgrade #Binary VersionNameBlock HeightProposal #Commit Hash
upgrade-1v0.7.0upgrade-11,272,0003600fd5f
upgrade-2v0.8.3upgrade-22,586,0005fa7cd3c
upgrade-3v0.9.2upgrade-35,125,0009d04a400
upgrade-4v0.10.1upgrade-49,348,47519bbe6fab
upgrade-5v0.11.2v1112,310,0053054c28ae

Upgrade Steps

At the specified block height, the blockchain will halt. Follow these steps only after the blockchain stops producing new blocks.

Stop the node

Run the following command to verify the latest block height matches the upgrade height:

curl -fsLS http://127.0.0.1:26657/status | jq -r '.result.sync_info.latest_block_height'

Stop the running node to prepare for the upgrade.

sudo systemctl stop sentinelhub.service

Install the new version

Clone the source code and replace <binary_version> with the version from the table:

VERSION=<binary_version>
BASE_DIRECTORY=${GOPATH}/src/github.com/sentinel-official

rm -rf ${BASE_DIRECTORY}/hub/ && mkdir -p ${BASE_DIRECTORY} && cd ${BASE_DIRECTORY}/ && \
git clone https://github.com/sentinel-official/hub.git && cd ${BASE_DIRECTORY}/hub/ && \
git checkout ${VERSION}

Build and install the software

make install

Start the node

Confirm the new version is installed correctly:

sentinelhub version --long

Start the sentinelhub process

sudo systemctl start sentinelhub.service

In Case of Upgrade Failure

  • Use the version immediately before the failed upgrade (note: if you are installing software upgrade-1, use the version 0.6.3).

  • Confirm the installation matches the details in the table above.

  • Start the sentinelhub process with flag unsafe-skip-upgrades at the upgrade block height

sentinelhub start --unsafe-skip-upgrades <block_height>

This process ensures minimal downtime and a smooth transition between software versions.