Upgrading multi-replica Open WebUI deployments

A multi-replica Open WebUI deployment cannot use rolling updates across a release that changes the database schema. This page explains the stop, migrate once, then scale back path on Kubernetes and Swarm, with the preparation, checks, rollback points and effort drivers that decide how long it takes.

On this page

Why an Open WebUI upgrade cannot roll across replicas

If you run several Open WebUI replicas or workers behind a load balancer, a new release may change the database schema, and rolling updates are not supported across such a release. The supported sequence is to stop all replicas and workers, let one instance migrate the database, then bring the remaining instances up on the new version. The sequence follows the Open WebUI updating guide and the scaling guide, which together describe why the instances cannot take turns on the schema while they serve traffic.

The reason is concurrency. Each replica runs the application code for its own version, and if an old replica keeps serving requests while a new one migrates, the two versions read and write a database whose structure is changing underneath them. The scaling guide also sets the baseline for this design: multi-instance deployments need PostgreSQL rather than SQLite, and each replica depends on shared Redis state and shared file storage. The migration step only works cleanly when the database behind it is the shared one. The stop window is the cost of this path. Users lose sessions and in-progress chats for the duration, so confirm with the business owner how long the outage can be before you plan the change.

Upgrades are frequent. Open WebUI v0.11.0 shipped in July, v0.12.0 followed on October 10, and v0.12.3 was published on October 16, according to the project's GitHub releases page. Each release needs a check of its release notes for schema changes before you schedule the window, because a patch-level change may still carry a migration. Ask your team to record, for every target version, whether the notes mention database changes, and treat any mention as a reason to use the full stop, migrate, then scale sequence.

What each upgrade changes for a replicated deployment

This table compares the changes that affect a multi-replica Open WebUI deployment and the action each one requires before or during an upgrade. Read it as a pre-upgrade checklist, then confirm the specifics in the release notes for each target version. The main takeaway is that a schema change forces a stop-all-replicas window, while the other rows are configuration and infrastructure dependencies that must already be in place.

ChangeImpact on replicasAction needed
Release that changes the database schemaRolling updates are not supported. All replicas and workers must stop before one instance migrates.Read the release notes for each target version, schedule a stop-all window, and take a database backup first.
Redis as shared state storeHolds sessions, websocket connections and application state. If Redis is stopped or misconfigured during upgrade, sign-out and session validity break.Confirm Redis is reachable from every replica before and after the upgrade, and test sign-out after restart.
No Redis configuredSigning out does not revoke tokens. They stay valid until expiry, by default 4 weeks.Deploy Redis for multi-replica setups, or document the token exposure window for your security team.
PostgreSQL instead of SQLiteRequired for multiple instances because SQLite handles concurrent writes from multiple processes poorly.Confirm the database is PostgreSQL and migrate data before adding replicas or upgrading.
Shared file storageUploads and knowledge must stay reachable from every replica, or users see missing files after the upgrade.Verify every replica mounts the same storage path or backend, and test an upload and retrieval on each replica.
Default ChromaDB vector storeCrashes in multi-process setups, so an external vector database is required with several workers or replicas.Move retrieval to an external vector database before scaling, and confirm the connection settings on all replicas.
License change from v0.6.6 (above 50 users)Affects branding and licensing only. It does not change the migration path or replica behavior.Review the Open WebUI License with legal before upgrading past v0.6.5 if the deployment exceeds 50 users in a rolling 30-day period.

How the parts fit during a multi-replica upgrade

The upgrade starts with inventory and a pre-upgrade backup, then user traffic is drained at the load balancer and every Open WebUI replica and worker is stopped. One designated primary starts with ENABLE_DB_MIGRATIONS set to true, and the team confirms the migration and health before any other replica starts with migrations disabled. If the primary fails its migration, the path leads to restoring from the pre-upgrade backup rather than continuing. PostgreSQL, Redis, shared file storage and the external vector database sit outside the replica boundary and must be checked at each step.

Upgrade phases for a multi-replica Open WebUI deployment, with the shared components they depend on.

Preparing the Open WebUI upgrade: backups and inventory

Every item below has to be finished before anyone stops a replica. A multi-replica upgrade that crosses a schema change cannot be undone by pinning an older image, so the database backup, file copy and version record are what let you recover. Work through the cards in order and confirm each one with the people who own the database and storage.

Full PostgreSQL backup before the stop window

Take a full backup of the PostgreSQL database that all replicas share, and restore it to a scratch instance to confirm it works. Schema migrations rewrite tables in place, so this backup is the only reliable way back to the prior release. Record the backup time, the backup tool version and the retention location. Ask your database team who holds the restore procedure and how long a restore takes in your environment.

Updating docs

Snapshot of shared file storage

Uploads and knowledge files live on shared storage that every replica must reach. Take a snapshot or copy of that volume at the same point as the database backup so the files and the database rows that reference them stay consistent. Confirm that the snapshot can be mounted and that a sample of uploaded files opens. Note which storage class or bucket backs the volume.

Inventory of replicas, workers and variables

List every Open WebUI replica, worker and background process, along with the environment variables each one reads. Mark exactly one instance as the designated primary, since only that instance should run with ENABLE_DB_MIGRATIONS left on. Compare the variables across instances, because a mismatch in Redis, database or vector store settings can make one replica behave differently after the upgrade.

Record of current and target versions

Write down the image tag or Helm chart version that runs now and the exact tag or chart version you plan to deploy. If you use the Helm chart, record the chart and application versions separately, since they can move independently. Keep the manifests or values files that produced the running state so you can reapply them. Confirm the target tag against the release page before the change window opens.

Open WebUI releases

Staging copy rehearsing the sequence

Build a staging environment from a restored copy of production data and run the full sequence there: stop all replicas and workers, start one primary to migrate, then bring the remaining replicas up. Time each step and note every error. A rehearsal on real data exposes migration problems that a fresh install never shows, and it gives you a measured duration to plan the stop window.

Custom tools and vector store review

Review custom tools, functions and external vector store settings against the target release notes before the upgrade. Plugins that call database-backed methods or depend on a changed interface can fail after the new version starts. Confirm that your external vector database, such as one reached through Qdrant or PGVector, is supported by the target release and that its connection settings are unchanged.

Open WebUI upgrade steps across Kubernetes and Swarm

The sequence stops every replica, lets one designated instance run the schema migration on the target version, then brings the remaining replicas back so that no two instances race on the database during an upgrade that changes the schema.

  1. Announce the window and drain traffic

    The operator announces the maintenance window to users and admins, then drains traffic away from Open WebUI at the reverse proxy or load balancer so no new sessions start. Confirm that the proxy returns a maintenance response or that the route is disabled. Gate: no new requests reach the Open WebUI service in proxy logs. Rollback point: nothing has changed yet, so the window can be cancelled here at no cost to data.

  2. Confirm backups and record the pre-upgrade state

    Take and verify a database backup, plus a copy of the file storage and the vector store, then record the running image tag, Helm chart version or Swarm service spec, replica count and the environment variables in use. Restoring a copy is the only reliable way back once a migration has run, so the backup must be readable before anything is stopped. Gate: a test restore or integrity check succeeds and the state record is saved. Rollback point: before stop, when reverting only means restarting the old version.

  3. Scale all replicas and workers to zero

    Scale every Open WebUI replica and any worker processes to zero so no instance is serving or writing while the schema changes. Rolling updates are not supported across a release that changes the database schema, so stopping everything first is required. Confirm that no Open WebUI pods or tasks remain and that no connections to the database come from the Open WebUI application. Gate: zero running instances. Rollback point: a restart of the previous version is still safe from the backup.

  4. Start one primary with migrations enabled

    Designate one instance as the primary, set ENABLE_DB_MIGRATIONS=true on that instance only, and start it on the target version. This is the only instance allowed to change the schema, which prevents migration race conditions. The exact mechanism (a dedicated Deployment, a single Swarm service task or a Helm value) depends on your chart or stack and is covered in the orchestrator tabs. Gate: the primary starts and begins the migration. Rollback point: after this step, the database may have changed, so the restore path is the pre-upgrade backup rather than an image tag.

  5. Verify migration completion and primary health

    Read the primary's logs until they show the migration finished without errors, then confirm the health check endpoint responds on the primary. Do not start other replicas while the migration is still running or its outcome is unclear. If the logs show a failed migration, stop the primary and restore from the backup. Gate: logs report completed migrations and the health check passes. Rollback point: after migration, restoring the pre-upgrade backup is required because an image rollback alone cannot reverse schema changes.

  6. Scale remaining replicas on the target version

    Set ENABLE_DB_MIGRATIONS=false on all other replicas, then scale them up on the same target version as the primary. Keeping the flag off prevents any second instance from attempting the migration again. Confirm each new replica starts, passes its health check and reports the same version as the primary. Gate: the replica count matches the plan and every instance reports the target version. Rollback point: after scale-back, the upgrade is committed and reverting means restoring the backup.

  7. Verify sign-in, sessions, files and models

    Test the functions users depend on: sign in through the configured identity method, confirm sessions persist when requests land on different replicas (which relies on Redis as the shared state store), open an uploaded file and knowledge item that was created before the upgrade, and send a test prompt to each configured model connection. Gate: all four checks pass on more than one replica. Rollback point: if a check fails, keep traffic drained and decide between a fix and a restore from the pre-upgrade backup.

  8. Restore traffic and monitor

    Re-enable the reverse proxy or load balancer route to Open WebUI, then watch logs, error rates and sign-in activity for the period agreed in your runbook. Record the completed upgrade, the final image or chart version and the replica settings in the change record. Confirm the exact monitoring period with your operations team, since this guide does not set one. Gate: traffic flows and no new errors appear. Rollback point: a traffic re-route with the restored backup remains available until the change is closed.

How Kubernetes and Swarm differ for the primary replica

On Kubernetes, the simplest way to keep one instance responsible for migrations is to run it as its own workload. One option is a separate Deployment with a single replica and ENABLE_DB_MIGRATIONS set to true. The main replica set then runs with ENABLE_DB_MIGRATIONS=false, which matches the scaling guide's pattern of disabling migrations on every replica except one designated primary. Two other settings need attention during the window. The update strategy for the non-primary workload should not roll new pods while the upgrade is in progress, so scale or pause it before you change the image. Also confirm that the primary and the other pods share the same database, Redis and file storage settings.

  • Separate primary workload: A distinct Deployment or single-replica release holds the migrating instance, so scaling the main workload cannot start a second migrator.
  • Migration flag by workload: Set ENABLE_DB_MIGRATIONS per workload, not globally, so the primary is the only pod with it enabled.
  • Update strategy: Stop automatic rollouts of the replica set during the window so no pod starts on the new image before the primary finishes.
  • Rendered values: Render the manifests or chart output and check the image tag, replica counts, environment variables and strategy before you apply anything.
  • Shared state: Verify that every workload points at the same PostgreSQL, Redis and storage endpoints.

Before applying, confirm how your chart or manifests handle these keys, because chart defaults and template names vary, and check the rendered output in your own environment.

What makes a replicated upgrade take longer

This table lists the factors that stretch a multi-replica Open WebUI upgrade beyond a single-instance change, with what each one means and what to confirm before scheduling. Read each row against your own topology, since the drivers stack: a large database, several clusters and a strict change window together extend the work far more than any one factor alone.

DriverWhy it mattersWhat to check
Database size and migrationA release that changes the schema requires one instance to migrate before others start, so the work scales with the data it touches.Current database size, backup and restore time measured in your environment, and whether the release notes list a schema change.
Replicas and workersEvery replica and worker must stop before the migrating instance runs, so more processes mean a longer full stop and more restart checks.Count of replicas, worker processes and scheduled jobs, and who owns the stop and start sequence.
Shared file storageUploads and knowledge must stay reachable from every replica, and network-attached volumes add latency and mount checks to each restart.Storage type, whether it is network attached, mount options, and free capacity for a pre-upgrade copy.
External vector databaseThe default ChromaDB is not suitable for several workers or replicas, so an external store may need its own version or schema change.Vector store product and version, whether the upgrade touches it, and a tested backup or snapshot.
Custom tools, functions and integrationsPlugins and connectors that call the API or database may break after an upgrade and must be tested before the production window.Inventory of custom tools, pipes, filters and OpenAPI tool servers, plus owners who can sign off test results.
Redis and session expectationsWithout Redis, signing out does not revoke tokens, and session behavior during a stop affects users who must sign in again.Whether Redis is configured, expected session lifetime, and the user message you will send before the stop.
EnvironmentsStaging, production and disaster recovery each need the same sequence, so a change tested once may need repeating in each.Number of environments, whether they match production topology, and how DR is kept on the same version.
Clusters or Swarm stacksEach Kubernetes or Swarm cluster needs its own stop, migrate and scale-back steps, and cross-cluster dependencies add coordination.Number of clusters, shared services between them, and the rollout order you will use.
Approvals and change windowsRequired sign-offs and fixed windows can push the work to a later slot if a migration step needs a retry.Approval chain, freeze periods, rollback decision owner and the time you need to hold the window open.

Why exactly one instance should run the migration

Only one instance should run the database migration, because a schema change is not safe to execute from several processes at once. The Open WebUI scaling guide sets ENABLE_DB_MIGRATIONS=false on every replica except one designated primary, so the migration runs once and the other replicas start without attempting it. In a Kubernetes or Swarm deployment, this is a deliberate role assignment: decide which workload or replica carries the migration setting, and make sure a rescheduled or scaled-out pod never inherits ENABLE_DB_MIGRATIONS=true by accident from a shared template. Confirm the exact behavior of the flag, including what a replica does when it starts against a schema it does not expect, in the release notes for your target version.

Stopping every replica and worker before the migration matters when the schema changes, because the updating guide does not support rolling updates across such a release. If an old replica keeps serving requests while the new schema is applied, it may read or write columns and tables in a shape it does not understand, which can corrupt data or produce errors that look like application bugs. Concurrent migration attempts create the opposite problem: two processes applying the same change can collide on locks or partially complete a step, and the resulting database state is hard to reason about. Both failure modes point to the same control: a short, planned window in which no application process is writing while one instance migrates.

Before you start, check that the database is PostgreSQL and that Redis and shared file storage are in place, since the scaling guide requires them for multiple replicas. Then take a verified backup, scale the deployment to zero, start only the primary with migrations enabled, wait until it reports a healthy state, and only then scale the remaining replicas back up with migrations disabled. Ask your platform team to record which instance ran the migration and when it finished, because that record is the first thing your support and audit teams will need if a later start fails.

How much effort and time does an Open WebUI upgrade need?

How much does an Open WebUI multi-replica upgrade cost?

DeployOpen does not publish prices, and a quote follows from a written scope agreed before work starts. The cost is mostly the labor to plan the window, rehearse the upgrade on a copy of your data, run the migration pod, verify the result and write the runbook. Cost goes up with the number of replicas and workers, the size and age of the database, the number of environments (staging and production), how many custom tools or functions must be retested, and how much evidence your change process requires. The upgrade itself is one-time work. Ongoing retainers for patching and release tracking recur if you want them. When you request a quote, ask for the list of environments, the verification steps, the rollback test and whether a retest is included.

How long does the stop window last for a multi-replica upgrade?

The stop window is the time all replicas and workers are down while one instance applies the schema migration, and no fixed duration applies to every environment. Open WebUI's update guidance requires stopping all replicas and workers before a release that changes the database schema, so users are offline for that period. The main drivers are the size of the database, the number of migrations between your current version and the target, how many replicas must be stopped and restarted, and the checks you run before users return. Measure the duration in a staging copy of production data before you schedule the production window, and agree a maximum window with the business owners in advance.

What does your team need to provide for an Open WebUI upgrade?

The work needs access to the clusters or Swarm stacks, the Redis, PostgreSQL and shared file storage that the deployment uses, and a staging environment that holds recent production data. You also need a tested backup and a restore test that has been run on a separate system, not just a backup job that reports success. Change approvals, a named business owner who accepts the downtime, and the custom tools, functions and integrations that must be checked are needed before the window is booked. Ask the partner to confirm in writing which of these items are your responsibility and which are theirs.

Can our own team upgrade a multi-replica Open WebUI deployment?

Yes, a team can do this without a partner if it already runs Kubernetes or Docker Swarm in production, operates PostgreSQL and Redis, and has a backup and restore procedure it has tested. The sequence is documented in the Open WebUI guides: stop replicas and workers, let one designated instance run migrations with ENABLE_DB_MIGRATIONS set to true, set it to false on the others, then scale back. The hard part is not the commands but the discipline around them: a rehearsal on staging, a clear rollback decision point and someone who can read the logs during the window. If one of these skills is missing, a scoped engagement can cover the gap while your team does the work.

What happens if the Open WebUI migration fails during the upgrade?

If the migration fails, the recovery path is to restore the database and storage from the backup taken before the upgrade, then follow the rollback path agreed in the runbook. Pinning an older image tag alone is not enough once the schema has changed, because the older version may not read the migrated database. Before the window, confirm the restore steps, the time they take on a copy of your data and who has authority to declare a rollback. Keep the previous image tags, Helm values or stack files available so the rollback can start immediately.

How often do Open WebUI upgrades arrive and how should we plan for them?

Open WebUI publishes releases frequently: v0.11.0 arrived in July, v0.12.0 on October 10 and v0.12.3 on October 16, according to the project's GitHub releases page. Not every release changes the schema, but each one needs a check of its release notes before you decide whether a multi-replica stop window is required. Plan a recurring routine to review releases, pick a target version, test it on staging and schedule a window, rather than reacting to each release as it appears. Ask any partner whether the retainer covers release tracking, testing and the upgrade window, and whether it is quoted per upgrade or per year.

How DeployOpen scopes and delivers a replicated Open WebUI upgrade

DeployOpen treats a multi-replica Open WebUI upgrade as a change to shared state, not a image swap. The work starts by confirming the target release's schema impact, then plans a stop, migrate, and scale-back sequence against your own Kubernetes or Swarm environment, with backups and a rollback path agreed before anything changes.

How we scope

  • Confirm the current and target Open WebUI versions and whether the release changes the database schema.
  • Inventory replicas, workers, PostgreSQL, Redis, external vector database and shared file storage in your environment.
  • Agree in writing the maintenance window, the designated primary replica and who approves the cutover.

How we build

  • Write the runbook: stop all replicas and workers, run one instance with ENABLE_DB_MIGRATIONS enabled, then scale out.
  • Set ENABLE_DB_MIGRATIONS=false on every non-primary replica so no two instances race to migrate.
  • Rehearse the full sequence on a staging copy of your database and confirm sessions and uploads behave after the cutover.

How we hand over

  • Deliver the runbook, pinned image tags, configuration files and a record of the pre-upgrade backup and its restore test.
  • Document the rollback procedure, including why restoring a database backup is needed after a schema migration.
  • Walk your platform and operations teams through the sequence and leave a checklist for the next release.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing upgrades, monitoring of release notes and repeat testing are available as a retainer.
  • Confirm with DeployOpen during scoping which support terms, response expectations and handover items apply to your engagement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.