How To Upgrade an Orchestrator with Hard Reset

Here is an upgrade script to automatically upgrade the orchestrator and perform a hard reset.

Install Requirements

sudo apt-get install jq

Create Bash Script



set -e

# Get the latest release from GitHub API
latest_release=$(curl -s | jq -r ".assets[] | select(.name | contains(\"\")) | .browser_download_url")

# Clean up
rm -rf orchestrator-linux-amd64

# Download the latest release
wget -O "$latest_release"
unzip -o
sudo systemctl stop orchestrator
sleep 10
sudo cp orchestrator-linux-amd64 /usr/local/bin/

# Perform Hard Reset - remove queues and events
rm -rf ~/.orchestrator/queues
rm -rf ~/.orchestrator/events

# Restart Orchestrator
sudo systemctl start orchestrator
sleep 10

# Check Status of Orchestrator
sudo systemctl status orchestrator

Save the bash script and make it executable sudo chmod +x

Run the upgrade script sudo ./

1 Like