Containerized AI Platform Upgrades: A Practical Guide from 0.x to 1.x

    Upgrading a self-hosted AI application platform from 0.x to 1.x involves more than replacing container images. This guide covers rollback preparation, deployment file updates, image alignment, persistent volume recovery, and the migration of model providers and tools to a plugin runtime. It also outlines validation checks and common failure modes to help teams preserve existing applications and workflows during a major-version upgrade.

    For teams running self-hosted large language model application platforms, upgrading a community edition from 0.x to 1.x is rarely as simple as pulling new images and restarting containers. Changes to the plugin architecture and visual workflow engine, together with the move from built-in model providers and tools to a separate plugin runtime, can make the upgrade process difficult to follow.

    Using a container-orchestrated deployment moving from a stable 0.15.x release to version 1.0 as the reference scenario, this guide connects backup, deployment replacement, image pulls, startup checks, volume restoration, and plugin migration into a practical sequence.

    Define the Upgrade Scope

    This procedure applies to community-edition deployments running locally or on a private network through orchestration files, with data stored primarily in persistent volumes under the deployment directory. The goal is to retain existing applications, workflows, and previously configured models and tools.

    If you use a hosted management console, multiple clusters, or custom orchestration, do not apply these steps unchanged. The underlying principles still hold: establish a rollback path first, replace the runtime next, and then migrate business data and extensions.

    Major releases commonly introduce three compatibility changes:

    • Both the web frontend and API service move to new image versions.
    • A plugin daemon is added, requiring a service definition that does not exist in the old deployment.
    • Models and tools previously built into the platform must be extracted into a manifest and installed in the new plugin environment.

    Missing any of these changes can produce a deployment where users can sign in but applications appear empty or model providers are missing.

    Step 1: Make Rollback the Default

    Do not back up only the database. In an orchestrated deployment, the installation directory often contains deployment files, environment configuration, certificates, and the volumes directory.

    Keep a complete copy of that directory in another location on the same host or in object storage, and record the backup time and original version. The described sequence copies the directory before stopping services; check backup consistency carefully, because writes to volume files during copying can leave an inconsistent backup.

    Also verify:

    • Service names in the orchestration file
    • Port mappings
    • Volume mount paths
    • Any externally hosted relational database or object storage

    For external services, take snapshots using the relevant product’s backup procedures. Product-specific interfaces are outside the scope of this guide.

    When rolling back, restore the complete deployment directory and start the old images rather than restoring only one subdirectory.

    Step 2: Replace the Deployment Files with the Target Release

    Download the release package or source tree for the target major version and replace the files in the current installation directory. Replace the deployment files as a complete set to avoid mixing old and new orchestration definitions.

    After replacement, inspect the new orchestration file for:

    • A new plugin daemon service
    • Network aliases
    • Health checks
    • Changes to environment variable names

    Pulling new images without adding the required service definitions can create a misleading success state: the main application starts, but the plugin subsystem does not.

    Replacing files does not mean committing credentials. Check that .env, or its equivalent, still references the original secrets and storage paths. If the release introduces new required settings, use placeholders only where they allow startup, then complete the configuration according to the documentation. Never put production secrets in a public repository.

    Step 3: Stop Services Before Pulling the Target Images

    Stop the orchestration stack before pulling the frontend, API, and plugin daemon images required for the 1.0 release.

    Parallel pulls can shorten the maintenance window, but avoid replacing images under the same tags while old containers are still writing to volumes. If network access is unreliable, cache images in an internal registry ahead of time and pull production images from that registry to reduce dependence on public registries.

    All component tags must match the release notes. Do not run a 1.0 frontend against a 0.15 API service.

    The plugin daemon may follow a different versioning scheme from the main platform. Use the compatible tag specified in the release notes rather than assuming every component should use 1.0.0.

    Step 4: Start the New Stack and Check Reachability

    From the directory containing the orchestration file, start the updated stack in the background.

    Check whether containers repeatedly restart and whether their health checks pass. Then open the application list page in a browser, typically through the local host address and the application path.

    A working login page confirms only that the gateway and frontend are reachable. It does not prove that application data or plugins are ready.

    If you can sign in but the workspace is empty, first suspect a missing volume mount or a mount pointing to an empty directory. Do not immediately assume the upgrade deleted the data.

    Do not begin plugin migration at this point. Extracting plugins against an empty database will produce a manifest that does not represent the original workspace.

    Step 5: Restore Volume Data When Workflows Are Missing

    A common reason for missing workflows after an upgrade is that the new deployment directory contains an empty volumes directory while the original data remains in the backup.

    Restore the complete volumes directory from the backed-up orchestration directory to the corresponding path in the new deployment, replacing the empty volumes. Then restart the stack.

    Check file permissions and ownership. If restored files are owned by a different user from the process running inside the container, the platform may fail to open database files or return HTTP 403 responses for stored objects.

    After restoration, check the application list again and confirm that the following are available:

    • Existing applications
    • Workflow canvases
    • Knowledge base index metadata

    If the relational database is stored in container volumes, this step will usually restore the main application data. If the database is external, run the relevant compatibility migration scripts against it during the maintenance window. Copying local volumes alone is not sufficient.

    Step 6: Migrate Models and Tools to the Plugin Runtime

    In version 1.x, model providers and tools previously built into the community edition move into the plugin system.

    Run the platform’s management commands inside the API container in this order:

    1. Extract the models and tools previously used in each workspace into a manifest, commonly a JSONL file with one record per line.
    2. Install the plugins listed in that manifest into the new plugin runtime.

    Reduce the workers setting according to the machine’s CPU capacity if necessary, so extraction does not overwhelm the API container.

    Before running these commands, confirm that:

    • The container can resolve the public plugin marketplace domain or your organization’s mirrored plugin source.
    • You have identified the correct API container by checking the running process or container list.
    • Extraction finishes before installation begins.

    Do not reverse the two commands. Plugin installation depends on a complete manifest.

    If the process is interrupted, inspect the manifest for incomplete writes. If necessary, extract it again using the restored backup data.

    These commands generally invoke custom web-framework subcommands through the application’s virtual environment inside the API container. Use the exact extraction and installation command names in the upgrade documentation for your distribution.

    Do not run them directly on the host: the required paths, secrets, and database connectivity are configured within the container environment.

    Validation Checklist and Common Failure Modes

    Validate the deployment in this order:

    1. All orchestration services are healthy.
    2. Sign-in and permissions work.
    3. Applications and workflow canvases are available.
    4. A sample knowledge base retrieval succeeds.
    5. A conversation succeeds through an existing model provider.
    6. A tool call succeeds through an existing tool.

    If any stage fails, do not immediately replace the deployment files again. Diagnose the failing layer first.

    Common problems include:

    • Only some component images were updated.
    • Volumes were restored, but the stack was not restarted.
    • The plugin daemon was omitted from the orchestration file.
    • Network policies block outbound plugin installation.
    • Excessive workers concurrency causes the API container to run out of memory.

    The key recovery order is: restore volumes first, then install plugins. Retain the complete directory backup until the post-upgrade observation period ends.

    Additional Recommendations for Production Deployments

    Include the upgrade window and sequence in the change record:

    • Stop writes
    • Verify backups
    • Replace deployment files
    • Pull images
    • Start the stack
    • Restore volumes
    • Migrate plugins
    • Run sample regression checks
    • Observe the deployment

    Send logs and metrics to your existing logging and monitoring systems. Pay particular attention to API 5xx responses, plugin daemon restart counts, disk capacity, and inode availability.

    For cloud deployments, use standard object storage, container platform, and secrets-management capabilities without tying the procedure to a particular vendor.

    Maintain an internal major-version upgrade checklist. Record volume paths, image tags, and plugin source addresses as configuration rather than relying on informal knowledge.

    Following this sequence allows many containerized community-edition deployments to move from a stable 0.15.x release to version 1.0 with a rollback path for application data, a rebuildable plugin environment, and a more predictable maintenance window.

    Success depends less on the wording of a particular command than on complete backups, compatible images and orchestration files, and a staged migration of data and plugins.