Upgrade the standalone TrackMe Broker

Use this procedure for an existing Docker container or Linux systemd service. An upgrade keeps the broker’s pairing, so you can continue using the same broker in your accounts. For the Splunk app on a Heavy Forwarder, use Upgrade the add-on.

1. Prepare one instance

  1. In Configuration → Manage TrackMe Brokers, expand the broker and record the instance name, running version and fingerprint. In a pool, check that the other member is Online and can reach the same destinations. Leave it running while you upgrade the first. A single-instance broker will be briefly offline.

  2. Choose the new build in the standalone release notes. Get the package for your installation. The Cosign signature check is optional and recommended.

  3. Stop the instance before backing up its settings and identity. For Docker, run docker compose stop broker from the existing Compose project. For Linux, run sudo systemctl stop trackme-broker.

  4. Take a private backup that preserves ownership and permissions. For Docker, save compose.yaml, the mounted etc/ folder and the named volume mounted at /opt/trackme-broker/var. For Linux, save /opt/trackme-broker/etc/ and /opt/trackme-broker/var/lib/. Include any custom token or state paths. The state contains the pairing keys and renewed token. Keep the instance and connection names as they are.

2. Install the new build

Follow the instructions for one installation type.

Docker container

Open the folder containing the existing compose.yaml. Keep the same Compose project name, configuration mount and state volume.

  • From Docker Hub. In compose.yaml, change image: to the published image digest for the new build. Run docker compose pull broker.

  • From a downloaded Docker image. Load the new archive with docker load --input FILE, replacing FILE with the downloaded image-linux-amd64.tar.gz filename. Change image: in compose.yaml to the exact tag printed by Docker. Keep pull_policy: never. See A. Load the image from a .tar.gz file for the download and load steps.

Recreate the container using the existing volume. This also picks up a new build loaded under the same tag.

docker compose up -d --force-recreate broker
docker compose exec broker trackme-broker version
docker compose exec broker trackme-broker status --check

Linux systemd service

Download the new Linux service tarball and unpack it into a fresh, root-owned staging folder as shown in the Linux installation guide. Run the new installer against the existing installation. The example below uses /opt/broker-upgrade as the unpacked staging folder and /opt/trackme-broker as the existing installation root. Substitute your actual paths.

sudo /opt/broker-upgrade/install.sh --home /opt/trackme-broker
sudo systemctl start trackme-broker
sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker version
sudo -u trackme-broker /opt/trackme-broker/bin/trackme-broker status --check

The installer reuses the Python interpreter recorded in etc/python and prepares the new release before switching lib/current. Starting the service explicitly brings it back after the backup.

3. Confirm the upgrade

  1. Wait for status --check to return exit code 0. This means the broker is paired, connected and has recently pulled work.

  2. In Manage TrackMe Brokers, check the upgraded row. Look for Online, the expected version in the Add-on column and the same fingerprint you recorded. If it asks to pair again, check the original state volume or directory, its ownership and the connection name before accepting a new pairing.

  3. Run a connectivity test on an account that uses this broker. In a pool, either member can handle the request. Check each upgraded member’s own readiness as well as the pool’s account test. Once these checks pass, repeat the procedure for the next member.

If the upgraded broker does not come back

Check the container logs or the service journal. Keep the other pool member online while you recover this instance. If the older build needs an earlier state format, stop the instance and restore its matching configuration and state backup before starting that build.

  • Docker. Stop the container, restore the previous image digest or known-good local image in compose.yaml, then run docker compose up -d --force-recreate broker with the original volume. If you reused a local tag, reload the previous image archive first.

  • Linux. Stop the service. Run readlink /opt/trackme-broker/lib/previous to identify the previous installed release. For example, if it prints releases/1.0.0, run sudo /opt/broker-upgrade/install.sh --home /opt/trackme-broker --activate 1.0.0. Use the exact release name printed, including any build suffix. Start the service with sudo systemctl start trackme-broker.

Repeat the readiness, fingerprint and account checks after recovery.