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¶
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.
Choose the new build in the standalone release notes. Get the package for your installation. The Cosign signature check is optional and recommended.
Stop the instance before backing up its settings and identity. For Docker, run
docker compose stop brokerfrom the existing Compose project. For Linux, runsudo systemctl stop trackme-broker.Take a private backup that preserves ownership and permissions. For Docker, save
compose.yaml, the mountedetc/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, changeimage:to the published image digest for the new build. Rundocker compose pull broker.From a downloaded Docker image. Load the new archive with
docker load --input FILE, replacingFILEwith the downloadedimage-linux-amd64.tar.gzfilename. Changeimage:incompose.yamlto the exact tag printed by Docker. Keeppull_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¶
Wait for
status --checkto return exit code 0. This means the broker is paired, connected and has recently pulled work.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.
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 rundocker compose up -d --force-recreate brokerwith 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/previousto identify the previous installed release. For example, if it printsreleases/1.0.0, runsudo /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 withsudo systemctl start trackme-broker.
Repeat the readiness, fingerprint and account checks after recovery.