How to Complete a Major Version Upgrade on macOS

    This guide walks through a major version upgrade of a containerized LLM application platform on macOS. It explains why a major release is more than an image tag swap, then covers the practical sequence: cold backups and asset inventory, replacing deployment files and pulling matched images, inheriting persistent data volumes, and initializing the plugin-based model and tool extensions. It also includes a post-migration verification checklist, a troubleshooting table for common failures, and long-term recommendations for teams.

    How to Complete a Major Version Upgrade on macOS

    1. Why a Major Upgrade Is Not a Single Click

    Many teams build their LLM application platform locally with container orchestration. After a few months of stable operation, a major release arrives. The key difference between a major and a minor release is architectural: a plugin mechanism is introduced, workflow visualization is improved, and ecosystem interfaces are reorganized. Model integrations and tool calls that were built in to the old version are extracted into separate, installable extension units.

    So the upgrade is not a matter of swapping an image tag. It is a combined operation of aligning configuration, inheriting data volumes, and rebuilding extension capabilities. The original documentation is often too brief, and practitioners typically get stuck in three places: config keys added or removed keep containers from starting; changed volume paths make workflows “disappear”; and uninitialized plugins leave model providers and tools unavailable. The steps below follow the actual operating order.

    2. Preparation: Minimizing Rollback Cost

    2.1 Full Directory Backup

    macOS deployments are usually single-machine, so the safest approach is a cold backup: stop the orchestration services, then copy the entire deployment directory with a timestamp and version in the name.

    1. # Stop all services
    2. docker compose -f docker-compose.yaml down
    3. # Cold backup of the entire deployment directory
    4. cp -R dify-0.15.3 dify-backup-$(date +%Y%m%d)

    Note that on macOS the directory often lives in the user home directory or a shared folder. Before copying, confirm it is not inside a cloud-sync folder, otherwise syncing a large number of small files can leave the backup incomplete.

    2.2 Data Asset Inventory

    Beyond the backup, confirm three assets separately: the database data volume, the object storage directory (for uploaded files and images), and any custom environment variable files. Together these are the baseline for business continuity. To check actual volume usage quickly:

    1. docker volume ls
    2. du -sh ./volumes/*

    2.3 Record the Current Version Baseline

    Save the current image list so a rollback can be aligned precisely:

    1. docker compose images > images-baseline.txt

    3. Aligning Code and Image Versions

    3.1 Overwrite with the New Deployment Files

    After obtaining the new major release package, copy all of its files over the existing deployment directory. The key point is overwrite, not merge: leftover old config files are the leading cause of startup failures. Afterward, check the environment variable template, since a new version usually adds required entries (for example, the plugin service address and plugin daemon settings). Missing values cause containers to restart repeatedly.

    3.2 Pull the Matching Images

    A new release typically consists of several components: frontend, backend API, plugin daemon, database, cache, vector store, and reverse proxy. Their versions must be pulled as a set and never mixed.

    1. docker pull <registry>/app-web:1.0.0
    2. docker pull <registry>/app-api:1.0.0
    3. docker pull <registry>/plugin-daemon:0.0.3

    On macOS, run docker system df first to check free disk space. Images in the new architecture are noticeably larger, and insufficient space makes the pull fail midway and leave partial layers behind.

    3.3 Startup Order and First Self-Check

    1. cd docker
    2. docker compose -f docker-compose.yaml up -d
    3. docker compose ps

    After startup, watch the logs first, then open the admin UI to confirm you can log in:

    1. docker compose logs -f api | tail -n 100

    If the UI is reachable but business data is empty, container-to-database connectivity is fine and the problem is in volume inheritance.

    4. Data Migration: The Real Focus

    4.1 Why Workflows and Apps “Disappear”

    The new version reorganizes the persistent directories. Without inheriting the old data volumes, the program initializes an empty dataset, which shows up as “login works, but the app list is empty.” The fix is to copy the persistent data directory from the old deployment directory to the corresponding location in the new one, then restart:

    1. cp -R dify-backup-xxxx/docker/volumes/. ./volumes/
    2. docker compose restart

    Keep the directory hierarchy unchanged when copying; an extra nesting level breaks the mount path.

    4.2 Initializing the Plugin Capabilities

    Under the new architecture, the previously built-in model providers and tools must be extracted and installed once. The basic flow is to enter the backend container, export the list of extensions the instance uses, then run the installation. The export is a line-by-line manifest mapping workspaces to extensions; installation requires access to the public extension marketplace, and network failure is the most common cause of breakage.

    1. # Find the backend container ID
    2. docker ps
    3. # Enter the container
    4. docker exec -it <api-container-id> bash
    5. # Export the extension manifest; adjust parallelism to the machine
    6. poetry run flask extract-plugins --workers=20
    7. # Install extensions; the extension marketplace must be reachable
    8. poetry run flask install-plugins --workers=2

    Practical advice: do not raise parallelism blindly. A single macOS machine has limited memory, and values that are too high get the container reclaimed by the system; a lower parallelism is more stable during installation. If a corporate network cannot reach the public internet directly, prepare an internal mirror or a proxy in advance, otherwise this step will certainly stall.

    4.3 Post-Migration Verification Checklist

    • App and workflow counts match the pre-upgrade numbers;
    • Historical conversations and knowledge bases are searchable;
    • Uploaded file resources preview correctly;
    • Model providers and tools show as installed in the extension list;
    • One full workflow test run passes.

    5. Common Problems and How to Handle Them

    Symptom Common Cause Direction
    Containers restart repeatedly A new required environment variable is missing Fill in the config against the template
    Login works but no data Persistent directory not inherited Copy the old data volumes and restart
    Extension installation fails Extension marketplace unreachable Configure a proxy or internal source
    Image pull interrupted Insufficient disk space Remove unused images and caches
    Rollback needed after upgrade No cold backup Stop services, restore directory and image tags

    6. Long-Term Recommendations for Teams

    Treat a major upgrade as a small change-management exercise: rehearse it once in a copy of the environment, and turn the slowest step, plugin installation, into a script; put the deployment directory under version control and store environment variables separately from orchestration files; establish a regular backup policy for persistent data, optionally keeping an off-site copy in object storage; and cover container status and API availability with log services and monitoring alerts so post-upgrade anomalies surface within minutes. If the team already runs in the cloud, general capabilities such as container platforms, object storage, logging, and monitoring can significantly reduce the operational burden of single-machine deployment and turn the upgrade from a manual gamble into a repeatable standard process.

    Follow the order above and most single-machine containerized deployments will cross a major version smoothly, with all data and extension capabilities recovered afterward.