Updates, channels and rollback
How a server gets new alxpanel releases, and how to go back when one misbehaves.
Updating
The Panel updates page (under Server) shows the installed version and, when there is a newer one, its release notes and an Update now button. The panel looks for new releases every hour; Check now asks at once.
An update:
- checks there is room for a snapshot and that the panel's database answers;
- installs the new packages, keeping a copy of the old ones;
- puts the panel into maintenance, takes a snapshot of the panel's database and configuration, and migrates the database;
- checks that the panel, the agent, the web servers, the database and PHP are running, and that sites answer as they did before;
- rolls back to the snapshot by itself if any of that fails.
Customer sites keep serving during an update. Only the panel is unavailable, for a few minutes.
From a shell, the same update is:
alxpanel-upgrade run
See alxpanel-upgrade.
Automatic updates
Off by default. On the Panel updates page, Automatic updates switches them on and sets the hour of the night, in the server's time zone. A version that failed once automatically is not tried again by itself; the panel shows a banner instead.
Updating with dnf
dnf upgrade 'alxpanel*' works too, and still takes a snapshot before the database is migrated. It does not check the server afterwards and does not roll back by itself, so prefer the panel or alxpanel-upgrade run.
Operating system updates are separate. The panel's System updates page lists them.
Channels
A server follows one of two channels:
| Channel | What it gets |
|---|---|
| Stable | Tagged releases. This is what the install command above gives you. |
| Test | A build of every change on the development branch. They may break. Use it on servers you can afford to reinstall. |
Change channel on the Panel updates page switches between them. Switching never upgrades or downgrades anything by itself: the next newer release in the chosen channel simply shows up as an update. Going from test back to stable therefore changes nothing until stable has a release newer than your test build.
To put a new server on the test channel from the start, install the test channel's release package instead:
dnf install -y https://repo.balcon.od.ua/test/alxpanel-release.rpm
dnf install -y alxpanel
Rolling back
Each update leaves a snapshot. The Snapshots tab of the Panel updates page lists them, with the version each returns to and a Roll back button. From a shell:
alxpanel-rollback
returns to the newest snapshot, after showing what it is about to do and asking.
A rollback returns the alxpanel packages and the panel's own database to the moment of the snapshot. That means everything done in the panel since then, such as new accounts, sites, passwords and settings, goes back too. Customer files, customer databases and backups are not touched. What was created on the server since then is listed under Drifts after the rollback.
The newest five snapshots are kept, within a size limit you can set on the same page.
See alxpanel-rollback.