Containerized Workflow Platform Upgrades: A Practical Guide to Major Version Migrations
Learn how to plan and execute a major version upgrade for a self-hosted, containerized workflow platform. This guide covers compatibility checks, backups, persistent storage, database migrations, model provider and plugin migration, post-upgrade validation, and rollback planning. It also explains how to troubleshoot missing historical workflows and avoid common data recovery mistakes.
A major version upgrade is rarely as simple as replacing a few files and restarting services. For a community-edition workflow platform deployed through container orchestration, an upgrade can affect deployment manifests, container images, persistent data, database schemas, caches, object storage, model provider settings, and plugin runtime environments.
A mistake in any of these areas can leave the platform apparently operational while important functionality is missing: users can log in but cannot see historical applications or workflows, model providers disappear, plugins remain unmigrated, or tasks fail at runtime.
The safer approach is to treat the upgrade as a small migration project: back up first, rehearse the process, perform the upgrade, and then validate it against a checklist while keeping a workable rollback path.
This guide provides a general procedure for self-hosted containerized environments. It applies to deployments that use orchestration manifests, store data in persistent volumes or external databases, and integrate models and tools through plugins or provider configurations. Exact commands, directory names, and parameters depend on the release package and your environment. The focus here is the process, risk management, and troubleshooting.
1. Establish Three Principles Before Upgrading
Back up before making changes
Backups must cover more than the deployment directory. Include orchestration manifests, environment variable files, persistent volumes, database exports, attachments in object storage, custom configuration, certificates, and the current image tags.
Copying the old deployment directory is not necessarily sufficient. Data may reside in separately mounted volumes or an external database service.
Separate application files from persistent data
A new release package typically contains image tags, service definitions, default configuration, and migration scripts. Historical applications, workflows, knowledge base documents, user data, and execution records should reside in persistent volumes or external data services.
Do not overwrite existing data with empty data directories from the new package. Instead, configure the new deployment to mount the existing volumes or restore data from a verified backup.
Rehearse the upgrade whenever possible
If resources allow, create a non-production environment and rehearse the upgrade using the same backup.
Test login, application listings, workflow editing, model calls, plugin installation, knowledge base retrieval, scheduled jobs, file uploads and downloads, and API requests. Schedule the production maintenance window only after the rehearsal passes.
2. Assess Compatibility and Prepare the Environment
2.1 Review release notes and compatibility requirements
Identify the key changes between the old and new versions, including:
- Database migration procedures.
- Plugin execution architecture.
- Cache and vector database dependencies.
- Object storage configuration.
- Changes to the set of container images.
- New service ports.
- Health check paths.
Pay particular attention to breaking changes and mandatory migration steps.
If the existing deployment includes custom patches, modified application code, or private plugins, document those changes beforehand so that new release files do not overwrite them unintentionally.
2.2 Create complete backups
Back up the following:
- The entire deployment directory, including orchestration manifests, environment variables, certificates, and custom configuration, after stopping external writes.
- All persistent volumes or storage directories, with file ownership, permissions, and mount points recorded.
- A consistent database export created with the database’s native backup tools, along with the database version.
- Attachments, exported files, and any required indexes in object storage.
- The running service inventory, image tags, container ports, network configuration, and reverse proxy rules.
Copy the backups to independent storage and, preferably, verify them with checksums.
Where operationally possible, announce the maintenance window, pause scheduled jobs, and stop new task submissions before the upgrade. This reduces the risk of inconsistent data caused by ongoing writes.
2.3 Prepare the new deployment files
Do not overwrite the old directory with the entire new release package.
Instead, create a separate upgrade directory containing the new orchestration files. Then transfer the configuration that must be retained, such as:
- Database and cache connections.
- Object storage settings.
- Public access URLs.
- Secrets.
- Reverse proxy configuration.
- Custom environment variables.
Compare the old and new configuration files and merge changes individually. Avoid carrying deprecated settings into the new version or omitting newly required parameters.
2.4 Pre-pull images and verify network access
Pull the required container images before the maintenance window and pin their tags. Avoid floating tags in production.
In enterprise environments, confirm in advance that container hosts can reach:
- Container registries.
- Plugin artifact sources or offline installation packages.
- Databases and caches.
- Object storage.
- External model services.
If a proxy is required, verify that both the container runtime and application containers receive the necessary proxy configuration. For offline installation, prepare the complete plugin packages and dependency inventory beforehand.
3. Follow a Controlled Upgrade Process
3.1 Stop writes and enter maintenance mode
At the start of the upgrade, block new user writes through the ingress gateway, a maintenance page, or traffic controls. Notify users that the system is under maintenance, then stop the old application services.
Whether to stop the database, cache, or object storage depends on the deployment architecture. External databases generally remain running, but application writes must be prevented during the upgrade. Perform database migrations according to the release notes.
3.2 Preserve persistent storage and deploy the new version
Configure the new orchestration manifests to use the historical data volumes, existing external database, and existing object storage, or their verified restored equivalents.
Pay close attention to mount paths and volume selection. If the new deployment creates a fresh volume while historical data remains on the old volume, users may be able to log in but find their workflow lists empty.
Before starting services, verify that the expected historical data is present in the relevant storage locations.
3.3 Start services and inspect initialization logs
Do not immediately begin extensive functional testing. First inspect:
- Database migrations.
- Cache initialization.
- Plugin service startup.
- API service health checks.
- Background worker processes.
Major upgrades may change database schemas, making the first startup noticeably slower.
Check logs for migration failures, missing dependencies, insufficient permissions, connection timeouts, and plugin loading errors. Begin functional validation only after the core services pass their health checks.
3.4 Validate basic functionality
Open the administration interface and check:
- Administrator login.
- Application listings.
- Historical workflow details.
- Execution records.
- Knowledge base listings.
- Model provider configuration.
- Plugin listings.
- File uploads.
- API requests.
- Background tasks.
If the platform supports tenants or workspaces, test at least one real tenant or workspace. An empty landing page is not sufficient evidence that the upgrade succeeded.
4. Recover Data and Troubleshoot Missing Workflows
One of the most common post-upgrade problems is the disappearance of historical workflows. Do not respond by repeatedly overwriting files. Start by checking the data sources:
- Verify that the new services actually mount the same data volumes as the old deployment.
- Confirm that the database connection points to the original database rather than a new database created by the upgraded deployment.
- Check the object storage endpoint, bucket name, access credentials, and path prefix.
- Check data directory ownership and permissions. Permission problems can leave containers using empty data locations instead of the intended storage.
- Confirm that database migrations completed. If necessary, rerun them using the migration commands provided with the release.
- If the new environment is using an empty volume, stop the services. Restore the old persistent data from backup to the mount point specified in the new manifests, or attach the old volume to the new services. Then restart and allow initialization to finish.
Do not simply revert the application version while continuing to use a database whose schema has already been migrated. Follow the rollback plan and restore the pre-upgrade database backup and old data volumes.
Freeze writes before any data restoration to prevent new data from conflicting with the restored state.
5. Migrate Model Providers and Plugins
If the new version introduces a plugin architecture, model providers and tools from the old version may not automatically appear in the new architecture. Handle this as a controlled migration.
5.1 Inventory the existing configuration
Before upgrading, document:
- Active model providers.
- Provider endpoints.
- Credential names.
- Tool authorizations.
- Plugin dependencies.
- Applications that reference those providers and tools.
Do not place sensitive credentials in ordinary documentation. Transfer them through a secrets management system or controlled configuration.
5.2 Run the extraction process in the API service container
Once the new services are running, enter the new API service container and use the release’s management CLI to run the relevant plugin extraction subcommand. The exact command name depends on the version.
The extraction process scans workspaces and provider configurations in the current instance and generates a machine-readable manifest for installation.
Higher concurrency is not always better. Set it according to available CPU, memory, database connections, and artifact source rate limits. Start with low concurrency, monitor logs and resource usage, and increase it gradually if appropriate.
After extraction, verify that the manifest exists and is stored in a persistent location. If necessary, copy it out of the container so it is not lost when the container restarts.
5.3 Install the plugins
Run the release’s plugin installation subcommand in the same API service container or in a management container with matching configuration.
The installation environment must be able to access the plugin artifact source. Enterprise deployments may use a proxy, a private artifact repository, or offline packages, but access should be limited to trusted sources.
Keep installation concurrency moderate to avoid sudden pressure on the network, database, and plugin service.
5.4 Validate each integration
Do not stop at confirming that plugins appear in a list. Verify that:
- Model connection tests pass.
- Tool authorizations remain valid.
- Workflow nodes load correctly.
- Knowledge base retrieval works.
- Error messages are readable and useful.
Run a critical application end to end to confirm that model calls, tool calls, and result persistence all work.
6. Complete the Post-Upgrade Validation Checklist
At a minimum, verify the following:
- Administrator and regular user login, permissions, and tenant isolation work correctly.
- Historical applications, workflows, execution records, and shared links are accessible.
- Workflows can be edited, saved, duplicated, imported, exported, and executed.
- Model provider connection tests pass, and critical models can be called.
- Tools and plugins are installed correctly, with valid authorization.
- Knowledge base document listings, retrieval, and citations work.
- File uploads, downloads, and previews work.
- Scheduled jobs, asynchronous queues, and callback tasks operate normally.
- API requests, API key authentication, and rate limiting work.
- Logging, monitoring alerts, health checks, and backup jobs have resumed.
- Resource usage, error rates, and response times remain acceptable.
7. Prepare an Executable Rollback Plan
Rollback is not simply a matter of copying the old directory back. Design the procedure before starting the upgrade.
A typical rollback includes:
- Stop the new version’s services.
- Restore the old deployment manifests and image tags.
- Restore the pre-upgrade database backup.
- Restore the old persistent volumes and object storage state.
- Restore reverse proxy configuration and scheduled jobs.
- Start the old version and perform basic validation.
Rollback can discard data created after the upgrade. Make the decision promptly within the maintenance window. If necessary, freeze writes and preserve diagnostic logs before proceeding.
8. Conclusion
The success of a major version upgrade is not determined by whether the services start. It depends on whether data remains complete, configuration stays compatible, plugins work, and failures can be rolled back.
For self-hosted containerized workflow platforms, prioritize backups, preserve persistent volumes, pin container images, validate in stages, migrate plugins under controlled conditions, and maintain an executable rollback plan.
Document the procedure, automate suitable steps, and make the results verifiable. This reduces upgrade risk and helps the platform transition smoothly to the new version.
