運維
本頁尚未翻譯,以下顯示英文原文。

Upgrade and Rollback

Upgrade or roll back ObjectOS Self-Managed by changing the image digest it pins, after backing up the database.

On ObjectOS Self-Managed, the image you run is pinned by digest, never by a tag, so an upgrade is a change of digest and a rollback is the previous one. Docker → Upgrade and rollback documents this procedure and the reason for each step; this page repeats it as a checklist.

Upgrade

  1. Take the new digest from the release notes and read the image's release manifest before rolling it out: confirm the product major line is the one you are on, and check whether the embedded runtime's compatibility range moved. A runtime major-version move means breaking changes underneath — read that release's notes first.
  2. Back up the database. Schema migrations are forward: rolling the image back does not roll the schema back.
  3. Change the image digest and restart the stack. The migration runs to completion before new replicas take traffic.
  4. Confirm readiness (/api/v1/ready) returns 200 and the replicas report healthy.

Roll back

Keep the previous digest: that is what a rollback is. To roll back, restore the previous digest and repeat step 3 — valid as long as the version you are leaving made no incompatible schema change (the release notes say when it did).

On Kubernetes and air-gapped sites

The app versions separately

The app itself, when it is delivered as a published artifact, versions independently of the image — see Deployment → How the app gets in. Treat published artifacts as immutable: if you overwrite one in place, you lose the ability to roll back cleanly even when the database backup is perfect (Backup → Artifact versioning).