Know when a self-hosted update is out, and check you're ready for it

Self-hosted software tends to fall behind quietly. Nobody notices a release, then three releases, and the upgrade that would have been routine is now a project. Settings ▸ Installation ▸ Updates keeps installation administrators informed without upgrading anything by itself: the upgrade stays with your deployment.

What the tab shows

  • A headline: up to date, a newer version, a security release, or an upgrade path when a release can't be installed over yours directly.
  • The release notes summary, with links to the full notes and the upgrade guide.
  • Your version, the latest one, when the feed was last asked, and whether administrators get emails about new versions.
  • Check now, to ask the feed immediately.

Settings

VariableDefaultWhat
TAIRI_UPDATE_CHECKtrueask the release feed once a day (forced off with TAIRI_OFFLINE=true)
TAIRI_UPDATE_CHECK_URLthe public feedpoint it at a mirror on your network if you copy latest.json in by hand
TAIRI_UPDATE_NOTIFYfalseemail the installation administrators once per new version
TAIRI_UPDATE_WARN_MINORS2the doctor warns when you're this many minor versions behind

A major version behind, or a security release, always makes the doctor warn. Emails go through the installation's mail settings, so set those up first.

What the check sends

One GET with Accept: application/json, from one replica, once a day. No installation id, no licence, no cookies, no query string. Your HTTPS_PROXY settings apply. The answer is stored once and every replica reads it from the database, so ten replicas don't mean ten requests.

The pre-flight check

Run pre-flight check changes nothing. It lists:

ItemWhat it checks
Target versionwhether the latest release installs over yours directly
Database, migrationsPostgres answers; no module failed half-way or was migrated by a newer version
Backupwhen the last backup ran, and whether it failed (warns after 36 hours)
Licencevalid, not expired, seats
Clockhost and database agree
Maintenance windowwhether maintenance mode is on or scheduled

Green across the board means the boring parts of the upgrade are done. Take a fresh backup right before you start anyway: back up and upgrade.

Offline bundles

Air-gapped installations get new versions as offline bundles. Before you carry one in, choose its checksums.txt and checksums.txt.sig on the Updates tab. Only those two small files are uploaded. The server:

  1. checks the signature against the trusted release keys;
  2. reads which version the bundle contains, and refuses a list that names two;
  3. shows the verdict, the key's fingerprint and the file list.

On the host that loads the images, install-offline.sh verify checks the images and archives against checksums.txt. See running without internet access.

Audit

Pressing Check now, finding a new version, emailing administrators and verifying a bundle are all recorded in the installation activity log.