Upgrade the local platform

Prev Next

Update the Docker platform on this machine while preserving persistent data and verifying the services that restart. Use Platform sizing and environments for environment ownership and backup and recovery for recovery prerequisites.

Prerequisites

Use compatible Builder tooling exposing the upgrade command, a running local Controller, reachable Docker and access to the installation's image registry. This procedure describes Builder 2.71.0 and Miso 2.1.65 source contracts. Confirm the selected developer identity and local platform before applying. Arrange interruption of local work and retain effective image references, persistent-store backups, protected keys and recovery access.

A registry authentication failure leaves versions unavailable. Use the registry login supported by your environment, such as Docker login or the Builder registry workflow with password input through standard input. Keep registry credentials out of command history and evidence.

Where it lives

Local scope operates on Docker resources on the current machine. It reads release tags from image registries rather than treating an Azure Controller deployment as a local restart. Initial setup, starting existing services, updating coding-workspace skills and upgrading platform images are separate tasks. See Set up a local platform for first installation.

How to set

  1. Check the installed version and command contract, then preview only:

    aifabrix --version
    aifabrix upgrade --help
    aifabrix auth status
    aifabrix upgrade --local --check --refresh
    

    Verify the displayed Controller, local scope, applications and current/target versions. A blocked registry lookup is unknown; repair access before proceeding. The refresh option bypasses the 15-minute image-version cache.

  2. Review the recovery plan, selected changes and maintenance approval, then apply:

    aifabrix upgrade --local
    

    Images are pulled and services started through their normal platform start steps, with health checks. Keycloak and Miso restart together first. Every image that step restarts is checked against its running image; an older image stops the step before it changes anything, including a paired service that keeps its tag.

  3. Keep the process visible. The first failure stops later applications. If Miso key custody is incomplete, applications newly requiring its key remain blocked; unaffected applications may already be done. Preserve the summary and use the custody owner to resolve the actual prerequisite.

  4. Recheck the local result and affected business operation:

    aifabrix upgrade --local --check --refresh
    aifabrix logs miso-controller --tail 100
    aifabrix logs dataplane --level error
    

    Use logs for services actually installed. Verify health and sign-in separately; lack of error lines alone does not establish readiness.

Defaults and examples

setup --mode update-images uses the same upgrade path. It is not a reason to rerun an installation reset. The upgrade preserves volumes and databases; that preservation does not create a backup or reverse migrations. Keep destructive setup modes outside an upgrade runbook.

--only restricts the application selection. --all runs local before remote and leaves remote untouched if local fails; it can affect two different targets. Prefer explicit separate scope runs when approvals or maintenance windows differ.

When running inside the application being upgraded, the local self-upgrade hands off to a helper and drops the connection. Docker must already be reachable there; default-bridge-only networking is unsupported for that handoff. Reconnect after about five minutes and inspect upgrade --check and ~/.aifabrix/upgrade-last.json for pending/done/failed/timeout. Do not invoke the internal helper manually.

Validate

Retain per-application outcomes, previous tags, effective running versions, health and a representative operation. The installation log records a blocked or failed run as such. On another-running-upgrade error, inspect the named process and command; resume or end that process through its owner. Do not delete a live lock to force progress. Rediscover remaining work after resolving the failure.

Common mistakes

Observation Action
Local image versions cannot be read Repair registry authentication and refresh the plan.
Another upgrade holds the process lock Inspect the named process; do not remove a live lock.
Restart pulls an older paired image Resolve the image/version mismatch before rerunning.

Limits

This is a source-reviewed procedure, not a runtime upgrade rehearsal. Older local Controllers with an application list lacking all order values can use the built-in order with a warning; other discovery failures need resolution. A previous image is not automatically compatible with changed data or key custody. Follow upgrade verification and recovery for interrupted work.