Shared file storage for Open WebUI replicas

When Open WebUI runs as several replicas, uploads and knowledge files must be reachable from every one of them. This page covers the storage options, how to configure them, and what STORAGE_PROVIDER leaves for you to handle.

On this page

Why shared file storage for Open WebUI replicas is required before you scale out

The Open WebUI scaling guide requires shared file storage once you run more than one replica, so that uploads and knowledge files stay reachable from every replica. Local disk on each container is not a shared store. If a user uploads a document through one replica and the next request lands on another, the file may be missing, and knowledge base content indexed on one node may not resolve on the others. Teams often notice this first as intermittent missing files, which looks like an application bug until someone compares where each request was served.

The failure is easy to miss in testing. A single test user usually stays on one replica through a session, so uploads appear to work. Under a load balancer with several replicas, the same user can be routed differently on each request, and the symptom changes with traffic. Container restarts add a second problem: files written to a container's writable layer or an unmounted path disappear when the container is replaced. Before you add replicas, confirm where Open WebUI writes uploads and knowledge data in your deployment, and check that every replica mounts the same backing store at the same path.

A single-instance setup can skip this work only when one container runs against storage it owns and that storage survives restarts, and when you accept that the instance is a single point of failure. The scaling guide's full requirement set also includes PostgreSQL instead of SQLite, Redis for shared state, and an external vector database, because the embedded ChromaDB is not suitable for several workers or replicas. Treat shared file storage as one item in that set. Ask your vendor or deployment team to confirm the storage option and mount layout you plan to use, and test an upload from one replica that is read from another before you go live.

How replicas share uploads and knowledge files

The diagram starts at the load balancer, which sends each user request to any one of several Open WebUI replicas. Every replica reads shared state from PostgreSQL and Redis, and it queries an external vector database for retrieval. File bytes go to one shared storage backend, either object storage or a ReadWriteMany volume, so an upload accepted by one replica is reachable from all of them. Check that the storage path is the same for every replica and that the vector database holds the embeddings, not the files.

Replicas share one file store, while metadata and state live in PostgreSQL, Redis and the vector database.

Choosing between S3, GCS, Azure Blob and a shared filesystem

This table compares the four ways to keep uploads and knowledge files reachable from every Open WebUI replica, by fit, operational burden, access model and what each asks of the platform team. Start with the platform you already run, then check the storage provider values supported by the release you install, because the options available depend on that version.

OptionBest fitOperational burdenWhat the platform team must provide
S3-compatible object storageClusters or data centers already running an S3 API service, or AWS-hosted deploymentsModerate: bucket policy, lifecycle rules, versioning and backup of the bucketBucket, least-privilege access keys, endpoint and TLS settings, and a tested restore path
Google Cloud StorageDeployments already running on Google Cloud with workload identity in placeModerate: IAM roles per bucket, region choice and object lifecycle settingsBucket, service account with bucket-scoped roles, and credentials delivered without long-lived keys where possible
Azure Blob StorageDeployments already running on Azure with managed identity or Entra ID in useModerate: storage account and container design, access tiers and soft delete settingsStorage account, container, identity or account key handling, and network rules for replica subnets
ReadWriteMany shared filesystemOn-premises or air-gapped sites with an NFS or similar RWX service already operated by storage teamsHigher: mount health, locking behavior, permissions across nodes and capacity growthRWX volume, identical mount path in every pod, uid and gid alignment, and monitoring for stale or full mounts
Object storage access modelPer-request credentials, bucket-level permissionsLower day-to-day effort once credentials are rotatedCredential rotation plan and audit of who can read the bucket
Shared filesystem access modelPOSIX permissions shared across pods on one networkHigher day-to-day effort in permission drift and failoverDocumented mount options, storage class ownership and a recovery runbook
Confirmation before choosingEvery optionVaries by releaseCheck the storage provider values the installed Open WebUI release supports, and whether it applies to uploads, knowledge files or both

Configuring shared storage across replicas

This sequence moves uploads and knowledge files from local disk on each replica to storage every replica can reach, then proves it with a cross-replica upload test and a knowledge base reindex. Each step ends with a check, so the team confirms the change works before moving on.

  1. Confirm the storage provider and credentials

    The platform or storage owner confirms which backend the replicas will use: S3, GCS, Azure Blob, or a ReadWriteMany shared filesystem. They confirm that the bucket, container or volume exists, that a dedicated identity has read and write access to it, and that every replica can reach the endpoint over the network. They also check the scaling guide to see whether a shared filesystem needs its own settings. Done when a test object written with that identity from one host can be read from another host.

  2. Set identical storage variables on every replica

    The operator sets STORAGE_PROVIDER and the provider-specific variables listed in the scaling guide on every replica, using the same values in each. Keep one source of configuration, such as a shared Compose file, Helm values or a secret store, so no replica drifts. Confirm that the shared secret key and the PostgreSQL connection settings also match across replicas, because a mismatch produces failures that look like storage faults. Done when a comparison of the effective environment on each replica shows no differences in these values.

  3. Restart replicas and confirm startup

    The operator restarts the replicas so they load the new settings, one at a time where the load balancer allows it. They check startup logs on each replica for storage initialization errors and confirm the health check responds on every instance. A storage change alone does not make a scaled setup work, so they also confirm that Redis and the external vector database are reachable from every replica. Done when all replicas are healthy and their logs show no storage errors.

  4. Verify uploads are readable from another replica

    A tester signs in through the load balancer and uploads a test file in a chat and in a knowledge base. Session routing can hide a missing shared file, so the tester reaches a different replica for the download, either by addressing each replica directly if the network allows it or by pinning requests to instances through the ingress. Done when the test file opens from every replica, not only the one that accepted the upload.

  5. Confirm the object is in the backend

    The storage owner checks the bucket, container or filesystem directly and confirms that the test object exists under the expected location with the expected name. They also check each replica's local data directory for a copy of the upload, since a file left on one replica's disk is not visible to the others. Done when the object appears in the backend and the team has recorded where any local copies remain.

  6. Test knowledge base reindexing

    The tester selects a knowledge base that contains the test file and runs a reindex from the knowledge base controls. Reindexing reads source files from shared storage and writes embeddings to the vector database, so a failure here usually points to storage access or to a vector store that replicas do not share. After the run completes, the tester asks a question that should retrieve content from the file through each replica. Done when the reindex finishes without file-not-found errors and each replica returns the same source.

What STORAGE_PROVIDER does not move

Setting STORAGE_PROVIDER tells Open WebUI where to write new files from now on. It does not copy anything that already exists. Uploads and knowledge files written to a local volume stay there until someone moves them, so a replica pointed at S3, GCS or Azure Blob will see no files at all for content uploaded before the change. Treat the storage switch as one step in a migration with three separate data moves: the files, the database rows that reference them, and the vector store that holds their embeddings. The storage setting moves none of the three.

The database is the part teams most often miss. Rows in PostgreSQL still record file paths and identifiers that point at the old location, and Redis still holds whatever session and application state it held before, which is outside the file migration entirely. The embeddings in your external vector database are also untouched, so a knowledge base can look intact in the interface while its retrieval source files sit in the wrong place. Before cutover, copy the local files to the new bucket or shared volume with the same relative layout, then confirm the paths stored in the database resolve to objects that exist. Run a sample of knowledge base retrievals and file downloads from several replicas, and check the object count against the count on the old volume. Confirm the exact copy and reference behavior for your release in the upgrade and migration notes before you plan the window.

Securing the storage layer

Shared storage holds every file users upload and every document in a knowledge base, so it needs the same care as the database. The controls below cover who can reach the bucket or share, how data is protected, what is recorded, and where keys live. Check each one against your own storage platform, because the exact settings differ between S3, GCS, Azure Blob and shared filesystems.

Scope credentials to one store

Give the Open WebUI service account access only to the single bucket, container or share that holds its files, with read and write rights and no bucket listing or administrative permissions across the account. A leaked key then exposes one data set rather than every project in the cloud account. Confirm that a separate credential exists for each environment, such as staging and production, so test data cannot reach production files. Review the policy whenever the storage backend or the Open WebUI version changes, because required actions can differ between releases.

Encrypt data at rest

Enable server-side encryption on the bucket or volume so uploaded documents and extracted content are encrypted on disk. Decide whether the provider's managed keys are enough or whether your key management policy requires customer-managed keys, and confirm who can disable or rotate them. For a shared filesystem, confirm the encryption method with the storage vendor, since many NFS and CSI backends do not encrypt data by default. Remember that encryption at rest does not stop a user with valid Open WebUI credentials from reading their own files.

Encrypt traffic in transit

Require TLS for every connection between the Open WebUI replicas and the object store or file server, and reject plain HTTP endpoints in the storage configuration. Check that the client library validates the server certificate and does not skip verification, which is a common shortcut in internal test setups. For network filesystems, confirm that the protocol version and transport settings support encryption in your environment. Browser downloads should also reach users only over HTTPS through your reverse proxy.

Log access to stored objects

Turn on access logging for the bucket, container or file server and send the logs to a location the application team cannot edit. Access logs show which identity read, wrote or deleted an object, which is the evidence needed when a user disputes whether a file was shared or when an incident needs scoping. Confirm the retention period for these logs with your security team, since providers often store them separately and charge for their retention. Pair them with application logs that record file uploads and deletions.

Set backup and versioning policy

Decide whether object versioning is needed to recover accidentally deleted or overwritten files, and set a lifecycle rule for old versions so storage does not grow without limit. Object storage replication or snapshots of a shared filesystem may be a separate control from the database backup, so each needs an owner and a restore test. Coordinate the file backup with the PostgreSQL backup, because a database restored without its matching files leaves records that point to missing objects. Ask your storage provider which recovery options and retention settings apply to your region and tier.

Keep storage keys out of images

Do not place access keys, secret keys or connection strings in the container image, Dockerfile, Compose file or Helm values committed to source control. Supply them at runtime through your secrets manager or the orchestrator's secret objects, and restrict who can read those secrets in the cluster. Rotate keys on a schedule and after any staff change, and confirm that the application restarts or reloads cleanly when the rotated value is applied to every replica. Scan images and repositories for accidental key exposure as part of the release process.

Questions teams ask about shared storage for Open WebUI

Does a single Open WebUI replica need shared file storage?

No. A single replica can keep uploads and knowledge files on a local volume, provided that volume persists across container restarts and is included in backups. Shared storage becomes necessary once two or more replicas serve the same users, because a file uploaded through one replica must be readable from every other replica. The scaling guide lists shared file storage as one of the requirements for multiple replicas, alongside PostgreSQL and Redis. A single replica also has a limit: if it is rebuilt or moved to another node, its files stay with the old volume unless they were copied first. Plan the storage layout now, even if you run one replica today, so that adding a second one does not force a rewrite of file paths. Confirm the current requirements in the scaling guide before you change the topology.

How much effort does moving files to shared storage take?

The effort depends on what has to move and how well the current setup is documented. The main drivers are the volume of existing uploads and knowledge files, the number of replicas that will read them, whether knowledge bases are indexed in a vector store that refers to file locations, and the storage type you select. Each adds verification work: copying files, confirming counts or checksums, and checking that every knowledge base still answers queries after cutover. Schedule also depends on access approvals for buckets or shares, change windows, and how many environments need the same change, such as staging and production. No duration is given here because it follows from your file inventory and environment. Ask for a written plan that lists each driver separately, and ask how the plan handles rollback if a copy fails partway through.

What does our team need to provide for the work?

Your team provides the environment and the decisions. The work moves faster when these are ready before it starts:

  • Access to the cloud account, bucket or storage cluster, with rights to create storage, identities and network paths
  • A current inventory of the data directory, database and vector store, plus a recent backup of each
  • A named owner for encryption settings, retention rules and access keys
  • A test group of users and a window in which uploads can be paused
  • A staging copy or rehearsal environment that mirrors production

Decide early who signs off on cutover. Your security team should also review how credentials for the storage service are issued, stored and rotated, since Open WebUI will depend on them at runtime.

Can our platform team migrate Open WebUI storage without a partner?

Often yes, if the team has run Open WebUI in production and is comfortable with the storage platform involved. The steps are conventional: provision storage, copy files, set the configuration, and verify. The hard parts are usually not the copy itself. They include confirming that database records and vector store entries still point at files that exist, testing retrieval from every replica after cutover, and keeping the original data untouched until the new setup is proven. Teams without recent Open WebUI experience often find that verification takes the most judgment. If you want outside help, DeployOpen plans, implements and documents this work as a fixed-scope engagement, with scope, deliverables and timelines agreed in writing before work starts. Whichever route you choose, ask for the verification steps in writing before approving the plan.

Should we choose object storage or a shared filesystem for Open WebUI?

Choose object storage if your organization already runs S3, Google Cloud Storage or Azure Blob with the access controls you need, and you are comfortable with the application reading files through API calls. Choose a shared filesystem with ReadWriteMany access if your platform already provides one with the performance, backup and support model your operators know, and your replicas can mount it. Object storage is selected through STORAGE_PROVIDER and its provider-specific settings. A shared filesystem is attached to each replica as a volume. Compare the two on access control, backup and restore, ownership of encryption keys, latency for large files, and what your platform team can operate during an incident. Confirm which providers your installed version supports in the Open WebUI documentation before you commit to a design.

Does changing STORAGE_PROVIDER move our existing files?

No. STORAGE_PROVIDER tells Open WebUI where to read and write files going forward. It does not copy or relocate files that already exist in the previous location. Existing uploads and knowledge files stay where they were unless you move them with a planned copy. After a switch, a file that exists only on the old local volume will fail to load from a replica that now reads the new location. Before you change the setting, record the current storage location, copy the data, confirm the copy with counts and checksums, and test retrieval from each replica. Keep the original data in place until the new setup has run for a period your team agrees on. Verify these steps against the version you run before production use.

What does shared file storage cost to run, and what recurs?

The cost has several parts, and each is paid to a different party. The storage service is billed by capacity used, and object services may also bill for requests and data transfer. A shared filesystem costs the hardware or service it runs on. Engineering work for design, migration and testing is a one-time cost, whether your team or a partner does it. Recurring costs include capacity growth, backup copies and retention, monitoring, credential rotation and the staff time needed to keep the setup patched. Costs rise with the volume of uploads, the number of knowledge bases, the number of replicas reading the same data and the copies you keep for recovery. Ask for a quote that separates one-time and recurring items, states the storage assumptions, and names which items you pay directly to a cloud or hardware provider. DeployOpen does not publish prices; a quote follows from the written scope.

What fails after shared storage goes live, and how do we test for it?

The most common failure is a file that loads from one replica and returns an error from another, usually because a copy is missing or a replica still reads a local path. Other failures include expired or rotated storage credentials that stop uploads, permissions on a shared path that block writes from one node, and knowledge base answers that cite files which no longer exist at the stored location. Test with a fixed script: upload a file through each replica, retrieve it from every other replica, restart replicas one at a time, and query a knowledge base after each step. Include a credential rotation and a replica replacement in the test. Log storage errors and set alerts on them before cutover, so the first failure is not reported by a user.

How DeployOpen scopes and delivers shared storage work

DeployOpen starts shared storage work with a review of how Open WebUI currently handles uploads and knowledge files, because the right change depends on where those files sit today. The review covers the storage backend in use, the mount or bucket layout, which replicas read and write files, how the STORAGE_PROVIDER setting and its related credentials are injected, and whether any local paths are still referenced in the database. The output is a short written inventory that names each storage location, its owner, its access method and its backup status. Clients usually need to confirm three things at this stage: which storage option their cloud or data center supports, who controls the bucket or filesystem credentials, and how file retention is handled today. Those answers decide the scope more than the choice of product does.

DeployOpen then writes the scope as a fixed-scope agreement before any change is made. The document lists the target storage design, the migration steps for existing files, the Kubernetes or Compose changes, the access policy for the storage account or share, the verification steps and the documentation to be delivered. It also states what is excluded, such as changes to the vector database, Redis or the identity provider, which are covered by sibling work. Costs follow from this scope. The main one-time components are discovery, configuration, data copy and cutover testing. Recurring costs sit with the client: storage capacity, egress, backup retention and any managed service fees. Ask each quote to separate these lines and to name who pays the cloud provider directly.

Implementation takes place inside the client's own accounts, clusters or data center. DeployOpen configures the storage, moves a copy of the existing files, starts replicas that point at the shared location, and checks that an upload made through one replica can be read, downloaded and used in a knowledge base from another. Verification also covers permission boundaries, so that the storage credentials grant only the access the application needs. Every step is documented in a runbook that covers rotation of credentials, backup and restore of the shared files, and the steps to add a replica. Operations staff receive the document together with the test results, so the storage design can be run and audited after the engagement ends.

How DeployOpen delivers Open WebUI storage work

DeployOpen plans and builds shared file storage for Open WebUI replicas inside your own cloud accounts, data centers or air-gapped networks. The work starts with a written scope that names the storage option, the replicas that will mount or reach it, and the checks that prove every replica sees the same files.

How we scope

  • Confirm whether the storage will be an object store (S3, GCS or Azure Blob) or a ReadWriteMany shared filesystem, based on your platform.
  • Map which uploads, knowledge files and generated assets must be reachable from every replica, and who owns each bucket or share.
  • Agree in writing what STORAGE_PROVIDER covers and which related state, such as database and vector store settings, is handled separately.

How we build

  • Configure the chosen backend with least-privilege credentials, encryption settings and access policies that match your identity model.
  • Deploy identical configuration to every replica, then test upload, download and knowledge reindexing from each one.
  • Verify file paths, permissions and failover behavior, and record the results in a test log you can rerun after upgrades.

How we hand over

  • Deliver architecture notes, configuration files and runbooks that name each secret, bucket, share and permission boundary.
  • Document backup and restore steps for uploaded files, and state which data must be backed up alongside the database.
  • Walk your platform and security teams through the setup so they can review it against your own compliance requirements.

How we support

  • Fixed-scope engagements are agreed in writing before work starts, with deliverables and timelines set out in the scope.
  • Ongoing support, upgrades and continuous testing are available as a retainer, including retesting after Open WebUI version changes.
  • Ask for a quote built from the written scope, including which costs are one-time setup and which recur through storage and retainer fees.

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.