Skip to content
Cenovel Systems

Upgrades and rollback

Install a signed Cenovel release: from Settings › System › Updates on the appliance, or with the upgrade script on Docker Compose.

GuideChecked against the source on October 19, 2026Describes Opal 2.7.0, the current release

Cenovel never downloads or installs anything on its own, and needs no internet to upgrade. You install a release when you choose. The console stops while it updates, so plan a short window.

Choose your path

Where Cenovel runsHow to upgradeWho
An appliance with Settings › System › UpdatesUpload the release bundle and choose InstallA District Administrator
Docker Composebash scripts/upgrade.sh <version> on the machine that runs itWhoever runs the stack

Settings › System › Updates tells you which one applies: a Compose install says it “has no appliance updater” and shows the command to run. An appliance whose update folder is missing, or can’t be written, says so and stages no update until it is made again: on the appliance console, sudo systemd-tmpfiles --create /usr/lib/tmpfiles.d/cenovel-native.conf, then reload the page. If that doesn’t bring it back, install the release that runs again with install-native.sh. cenovelctl upgrade apply on the appliance console doesn’t need the folder.

Install from Settings › System › Updates

  1. Get the .cenovel release bundle from your Cenovel account.
  2. Open Settings › System › Updates and choose Upload release bundle. The upload shows its progress and can be canceled with Cancel upload. The appliance keeps one uploaded bundle at a time.
  3. Read the check under Check: Cenovel …. Each row reads Passed, Needs attention, Refused or Couldn’t read. A refused row says why, and Install stays off.
  4. Choose Install …. Give a reason, which is recorded in the audit log with your name, and sign in again (see Who can install).
  5. The page shows “Waiting for the appliance” for a few seconds, then the appliance’s steps: Checking the release, Stopping Cenovel, Backing up, Checking the backup, Switching release, Updating the database, Starting, and Checking it works.
  6. While Cenovel is stopped, its address shows the appliance’s maintenance page with the same steps. When Cenovel answers again, you are back on Settings › System › Updates with the result. People stay signed in across the update.
Signature
Signed by Cenovel’s update key, and not changed since it was signed.
Version order
The release follows the one that runs now. A re-cut of the same version counts as newer. An older release is refused: going back is a restore, not an update.
Disk space
Room on the release store, data and database disks.
Backup
A note, not a test: Cenovel stops, takes a backup and checks it before anything changes.
Database change
A note: whether the release changes the database, and so whether a failed start goes back at once or restores the backup it just took.
Expected downtime
The estimate the release carries, or “Not recorded in this release”.
Release notes
The notes signed into the bundle, shown as plain text.

The console’s check is for the person at the screen. The appliance does not trust it: it checks everything again itself before anything stops.

What the appliance checks, and what happens if a release doesn’t start

The console never runs the update. It writes the bundle and a request into a spool folder, and a separate updater that runs as root takes over. The updater copies the bundle into its own folder and reads only that copy. It refuses the request unless:

  • the request is less than 15 minutes old, has not been used before, and names the release that runs now;
  • the copy is byte for byte the file that was checked (SHA-256);
  • the bundle is signed with Cenovel’s update key (Ed25519), held in /etc/cenovel/trust/update.pem, and every file in it matches the signed manifest;
  • the release fits this appliance and its database version, is newer than the one that runs, and upgrades from the installed version (some releases require an earlier one first);
  • the release store, data and database disks have room.

The release is then tried on a copy of the database, in a disposable schema, while the console keeps serving. Only if that passes does Cenovel stop. The backup is taken and checked after Cenovel stops, so it holds every change. Then the release switches, the database is updated, and the new release must pass the readiness check. It has 60 seconds to answer ready; on a slow host, such as an overcommitted cluster or slow shared storage, raise that with CENOVEL_READINESS_SETTLE_MS in /etc/cenovel/appliance.conf, in milliseconds from 30000 to 600000, and check it with cenovelctl config check. The automatic rollback and restore wait the same time.

If the new release does not pass, the appliance goes back on its own: to the previous release on the same database when the database did not change, or when the new release declares in its signed manifest that the previous one still reads it; otherwise by restoring the backup it just took. Only if that restore fails does Cenovel stay stopped on the maintenance page. A power cut during an update is resolved at the next start. The appliance keeps the current release and the two before it.

The outcome appears on Settings › System › Updates for a day, and in the audit log for good:

Updated
“Updated to Opal 2.3.0 in 1 min 12 s”. The new release passed every check and serves.
Went back
“… didn’t start, so Cenovel went back to …”. The database did not change, or the new release declares that the earlier one reads it, so the earlier release runs again on the same database. Nothing was lost.
Restored
“… didn’t start, so Cenovel restored the backup it took first”. The earlier release runs on that backup. It was taken after Cenovel stopped, so nothing was lost.
Needs a restore
“Cenovel couldn’t finish the update or go back on its own”. Cenovel stays stopped on the maintenance page. On the appliance console, sudo cenovelctl upgrade status prints the exact restore command.
Refused
“The appliance refused the update”. Nothing changed; the reason is shown. This includes a release that fails its check on a copy of the database.
Failed
“The update failed”, with the appliance’s message.

The audit log records “Update bundle uploaded”, “Update requested”, and the outcome, such as “Update completed” or “Update rolled back automatically”. The appliance’s own journal keeps a record the console cannot change.

Who can install

  • Only a District Administrator sees Settings › System › Updates and can upload, check, install or remove a bundle.
  • Installing asks you to sign in again, so a stolen session is not enough. The recovery account enters its passphrase; a directory account enters its directory password, which is checked by the directory; a Microsoft account must have signed in within the last 5 minutes, or sign out and in again. After 5 wrong attempts, wait 5 minutes.
  • An expired license never blocks an upgrade.

From the appliance console

Root can run the same update from the appliance console. It takes the same path and the same checks as Settings › System › Updates.

cenovelctl release verify <bundle>
cenovelctl upgrade preflight <bundle>
cenovelctl upgrade apply <bundle>
cenovelctl upgrade status

upgrade preflight checks the update key’s signature, the schema window, that the release is newer, the version it upgrades from, and free disk. upgrade apply takes and checks its own backup.

Docker Compose

On the machine that runs Cenovel, in its folder, with the checkout at the release:

bash scripts/upgrade.sh <version> --dry-run
bash scripts/upgrade.sh <version>

The dry run checks what it can and prints every step without changing anything. The script refuses unless the checkout is clean and is that release, and the stack is running. It tags the running image as the rollback image, builds and checks the release image, backs up and runs the restore drill on that backup, stops the console and worker, updates the database, starts the new image, and checks readiness, the version and the logs. On any failure after the stop it starts the rollback image again and says so. It ends with the old and new versions, the backup, the drill result, the downtime and the rollback command.

Verify a bundle by hand

Settings › System › Updates and the updater check the signature themselves. To check a bundle yourself, on the appliance as root:

cenovelctl release verify <bundle>

It checks the signed manifest against the trusted keys in /etc/cenovel/trust and the SHA-256 digest of every file in the bundle, and names what failed. See Verify a release.

Roll back by hand

cenovelctl rollback decide
cenovelctl rollback

A rollback is refused when the database has moved past what the previous release can read. Then restore the backup taken before the upgrade with cenovelctl restore apply. Going back to an older release is always a restore, never an update.

A rollback from 2.3.0 to the release before it is always refused: 2.3.0 renames the last database tables under the old prefix, and the earlier release can’t start on the renamed database. The way back is the backup taken before the update, restored under the release that took it.

From 2.4.0 on, an update that fails goes back to the release before it on its own: the appliance starts that release again, and if it can’t start on the updated database, restores the backup it took just before the update. Once an update has succeeded, going back by hand is a restore of the backup taken before it, under the release that took it; cenovelctl rollback is refused when the earlier release can’t start on the updated database, as it is from 2.4.0 to 2.3. Going back further is also a restore, of the backup taken before that update.

Go back after an accepted update

On the appliance, while the earlier release is still on it (the current release and the two before it stay), restore the set the update took before it switched releases. cenovelctl backup list shows which release took each set. The first command changes nothing and prints the second, which names that release on purpose:

cenovelctl restore apply <the backup taken before the update>
cenovelctl restore apply <the backup taken before the update> --previous-release <the release that took it>

It stops the console, backs up what the newer release holds now so it can be brought forward again, then restores the set under the earlier release and starts it. Everything since the set was taken is replaced. The release it left can’t be installed again; the next update must be a later release. When the earlier release is no longer on the appliance, restore the set on a fresh VM built from that release’s image for your hypervisor, with the same key ring and configuration, and shut this appliance down before the new one takes its address.

On Docker Compose, restore with the rollback image that upgrade.sh named. The restore script checks the restored database with the image it is given and starts that image, so a restore under the new image brings the backup forward to the new release instead of going back:

CENOVEL_IMAGE=<the rollback image> bash scripts/restore.sh <the backup taken before the upgrade>

License after an upgrade

An install that already held data when it is upgraded to a release with licensing gets 90 days with a notice to District Administrators only; nothing is refused. Import the district’s license in Settings › System › License before then. See Licensing and renewals.

↑ ↓ to moveEnter to openEsc to close