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:
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 betaThe console checks the channel once a day, sending nothing from your instance other than its manifest request.
What happens
- License: the instance requests a download token with its activated license (without a valid license, nothing happens; your emails keep working).
- Signature: the version manifest is verified (Ed25519), then the SHA-256 fingerprint of each archive. An older version is refused without
--allow-downgrade. - Full backup before touching anything (a backup failure cancels the update).
--no-backupskips it, at your own risk. - Snapshot of the files and the
.envof the current version (which names its images, kept in Docker) in.rollback/. - Installation of the new images and files; database migrations are applied when the service starts.
- Health check for 4 minutes at most: service API, mail engine, expected image running.
- Failure: automatic return to the previous files,
.envand 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
sudo voaaro rollbackGoes 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
| Code | Meaning |
|---|---|
| 0 | up to date, or update successful |
| 10 | (--check) an update is available |
| 3 | failure, rollback done |
| 4 | license refused (missing, revoked, unknown key) |
| 5 | license server unreachable |
| 1, 2 | other 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):
sudo /srv/voaaro/scripts/update.sh --dir /srv/voaaro --adopt