Skip to content

Single server

Signed updates and rollback

Every version is signed and verified; a backup is taken first, and a failure goes back to the previous version on its own.

Update

From the console: Administration › Updates (or the Health page) shows "Update available" with the release notes and an Update button. The maintenance agent picks up the request within a minute.

From the command line:

Shell
sudo voaaro update --check        # exit code 10 if a newer version exists
sudo voaaro update                # latest version of the channel
sudo voaaro update --version 1.2.0
sudo voaaro update --channel beta

The console checks the channel once a day, sending nothing from your instance other than its manifest request.

What happens

  1. License: the instance requests a download token with its activated license (without a valid license, nothing happens; your emails keep working).
  2. Signature: the version manifest is verified (Ed25519), then the SHA-256 fingerprint of each archive. An older version is refused without --allow-downgrade.
  3. Full backup before touching anything (a backup failure cancels the update). --no-backup skips it, at your own risk.
  4. Snapshot of the files and the .env of the current version (which names its images, kept in Docker) in .rollback/.
  5. Installation of the new images and files; database migrations are applied when the service starts.
  6. Health check for 4 minutes at most: service API, mail engine, expected image running.
  7. Failure: automatic return to the previous files, .env and images; if the old version refuses the migrated database, the backup taken in step 3 is restored. Exit code 3.

Logs: /srv/voaaro/.build-logs/updates.log and journalctl -u voaaro-maintenance.

Roll back manually

Shell
sudo voaaro rollback

Goes back to the files and images of the previous version (only one version is kept). The databases are not modified: if the new version migrated the database in a way the old one cannot read, restore the backup taken before the update (Restore).

Stay on a version

--version X.Y.Z installs a specific version; the chosen channel is kept in .env (VOAARO_CHANNEL). To avoid being prompted, uncheck "Check daily" in Administration › Updates.

Exit codes

CodeMeaning
0up to date, or update successful
10(--check) an update is available
3failure, rollback done
4license refused (missing, revoked, unknown key)
5license server unreachable
1, 2other failure (see the message and updates.log)

An installation made from source

An installation made with git clone and scripts/install.sh is not updated by voaaro update. To move it to published versions, keeping .env, secrets and data (backup first, rollback possible):

Shell
sudo /srv/voaaro/scripts/update.sh --dir /srv/voaaro --adopt
Esc