Upgrade
Any release upgrades directly from any release of the previous 12 months. axel server doctor shows the installed
release's age, the date until which it upgrades directly, and whether a newer release is out.
Before you begin
- Read the release notes of every release you skip over, and do what each Action required note says.
- Check the backup target has room for a backup: the upgrade takes one first.
Upgrade
Online, from the registry:
sudo axel server upgrade --version <version>Offline, from the new release's unpacked bundle (Install offline, steps 1 to 4):
sudo axel server upgrade --bundle <unpacked bundle>Add --dry-run to run the checks and show the plan without changing anything.
The upgrade refuses a downgrade, a skipped required stop (naming it) and an install that isn't healthy, and checks the disk. It stops the web app and API, takes a backup, and stops the rest only if the backup succeeds; otherwise Axel serves again. Then it moves Postgres to a new major when the release needs it, migrates, starts the new release and checks it, and removes images older than the previous release.
If an upgrade fails
The upgrade says how to go back:
-
When the data didn't change, it puts the old release's files back. Start it again with
sudo axel server install. -
Otherwise, restore the backup it took, with the old release's installer. It prints the command, for example:
sudo AXEL_INSTALLER_IMAGE=docker.io/veritassi/axel-installer:<old version> axel server restore <archive>Add
--bundlewith the old release's bundle when there is no registry.