Troubleshooting multi-replica Open WebUI

A symptom-first guide to diagnosing login loops, 401 errors, missing files and worker crashes in scaled Open WebUI, checked against the core requirements for shared secret, PostgreSQL, Redis, vector database and storage.

On this page

Why multi-replica Open WebUI fails in ways single-instance setups never do

Most login loops, 401 errors, missing uploads and worker crashes in a scaled Open WebUI setup trace back to one missing shared requirement: each replica is holding state that the others cannot see. A single instance keeps its sessions, files and vector index in one process and one local disk, so none of these faults appear. Once you run several replicas behind a load balancer, a request can land on any of them, and every piece of state that lived locally becomes a point of failure.

A scaled setup is worth the effort when one instance can no longer serve your concurrent chats or document processing, or when you need rolling restarts without downtime. The scaling guide, Scaling Open WebUI, requires four things before you add replicas: PostgreSQL instead of SQLite, because SQLite does not handle concurrent writes from multiple processes well; Redis as a shared store for sessions, websocket connections and application state; shared file storage so uploads and knowledge stay reachable from every replica; and an external vector database, because the default ChromaDB will crash in multi-process setups. Each replica must also share the same secret key so that tokens issued by one replica validate on another.

Treat the core requirements checklist as your diagnostic path, not as a set of optional hardening steps. When a symptom appears, check the shared secret, the database, Redis, the vector store and storage in that order, and confirm each one is configured identically on every replica before you change application settings. Confirm the exact variable names and any version-specific behavior against the release you run, since the project publishes new releases regularly.

The core requirements checklist and the symptom each one prevents

The table lists each requirement the Open WebUI scaling guide sets for multiple replicas, the symptom that tends to appear when it is missing or inconsistent, and the first check to run. Work through it in order, because a missing shared store often produces symptoms that look like a problem with another component.

RequirementScaling guide requirementSymptom when missing or inconsistentFirst check to run
Shared secretReplicas must share the same secret key so tokens issued by one replica are accepted by the others (confirm the variable name and wording against the current scaling docs)Users are signed out or bounced back to login after load balancing, and 401 errors appear for sessions that were valid seconds earlierCompare the secret value across every replica's environment and confirm it is identical and set before first start
PostgreSQLUse PostgreSQL instead of SQLite for multi-instance deployments because SQLite does not handle concurrent writes from multiple processes wellIntermittent write failures, locked database errors, lost settings changes, and sign-in state that differs between replicasConfirm every replica points to the same PostgreSQL database and that no replica still uses a local SQLite file
RedisShared state store for sessions, websocket connections and application state across replicasLogin loops, chat streams that stop updating, and signing out not taking effect because tokens stay valid until expiry (by default 4 weeks)Confirm all replicas connect to the same Redis instance and check that sign-out revokes a token on a second replica
External vector databaseRequired when running several workers or replicas, because the default ChromaDB crashes in multi-process setupsWorker crashes, errors during file upload or knowledge indexing, and retrieval failing only on some requestsConfirm the vector store setting is an external database on every replica and that the embedded default is not in use
Shared file storageShared storage so uploads and knowledge stay reachable from every replicaMissing files, broken attachments or knowledge documents that load on one replica and return not found on anotherUpload a file through the load balancer, then request it several times to see whether every replica can serve it

How to triage a failing replica set in order

This sequence checks the shared foundations of a scaled Open WebUI deployment in a fixed order, so you can find whether a login loop, 401 error, missing file or worker crash comes from version drift, split state or an unshared component before reading application logs.

  1. Confirm all replicas run the same image version

    Compare the running image tag and digest on every replica, for example with docker inspect on each container or kubectl get pods -o jsonpath against the Deployment. Every replica should report the same Open WebUI release. Confirm the intended release on the project's GitHub releases page before you compare, because release numbers change and should not be taken from memory. A mismatch means a rolling update is stuck or one node pulled an older tag, and mixed versions can produce session and schema errors that look like login loops. Done means all replicas show one tag and one digest.

  2. Confirm all replicas share one PostgreSQL database

    Check that DATABASE_URL is identical on every replica, with the same host, database name and schema, and that it points at PostgreSQL rather than SQLite. The scaling guide requires PostgreSQL for multi-instance deployments because SQLite does not handle concurrent writes from several processes well. Query the user and auth tables from a client connected to the same host to confirm the accounts you see in the admin panel exist there. A replica that points at a different database or a local file will show users who cannot sign in elsewhere, which is a common cause of login loops. Done means every replica reads the same user records.

  3. Confirm Redis is reachable from each replica

    From inside each replica, test the TCP connection to the Redis host and port configured for Open WebUI, and confirm the same Redis endpoint and key prefix is used everywhere. Redis holds sessions, websocket connection state and application state for multiple replicas. Without it, signing out does not revoke tokens, and tokens stay valid until they expire, by default after 4 weeks, so a user may see stale sessions on one replica while another rejects them. Check the Redis logs for connection errors from each replica address. Done means every replica connects to the same Redis and sessions created on one replica are accepted on another.

  4. Confirm the vector database is external

    Check the vector database settings on every replica and confirm none of them uses the embedded default ChromaDB. The scaling guide warns that the default ChromaDB crashes in multi-process setups, so an external vector database is required when running several workers or replicas. Look for worker restarts or errors that mention the local vector store, and confirm the external endpoint is reachable from each replica. Also confirm that every replica is configured with the same vector store, since knowledge that was indexed into one store will not appear on a replica that points to another. Done means all replicas use one external vector database and none falls back to the embedded store.

  5. Confirm uploads resolve from every replica

    Upload a small test file through one replica, then request it through each of the other replicas, using the load balancer and also by addressing replicas directly if your platform allows it. Confirm the storage provider settings match across replicas and that the object store or shared filesystem is mounted or reachable from each one. Shared file storage keeps uploads and knowledge reachable from every replica, and changing the storage provider does not move existing files by itself. A missing file on one replica usually means local disk storage or a mount that is not shared. Done means the test file opens from every replica.

  6. Read logs from each replica in the same time window

    Once the shared components check out, collect logs from every replica for the same few minutes around a failed login, 401 response or crash, and compare them side by side. Look for repeated database pool timeouts, Redis or vector database connection errors, authentication failures naming a token or secret, and worker exit messages. Errors that appear on only one replica point to node-level or configuration drift, while the same error on all replicas points to a shared dependency. Record the first error timestamp and the component it names, because that is the input for the next diagnosis. Done means you can name the failing component or state that the logs show no shared fault.

Why login loops and 401 errors appear after a scale-out

Login loops and 401 errors after a scale-out usually come from session state that is not shared across replicas. The most common cause is a missing Redis store. Without Redis, signing out does not revoke tokens: they stay valid until they expire, by default after 4 weeks according to the scaling guide. A user who signs out on one replica can therefore keep working on another, while a token issued by one replica may be rejected by a replica that cannot see the same state. The symptom is intermittent: a page loads, the next request bounces to the sign-in screen, and a refresh may or may not fix it depending on which replica answers. Check whether Redis is configured on every replica before looking anywhere else.

Mismatched configuration across replicas produces the same symptoms. Every replica must share the same secret used to sign and verify tokens, and the session and cookie settings must match, or a token minted by one container will fail validation on another. A rolling update that leaves old and new containers running with different environment values can produce 401s for only part of the traffic. Compare the effective environment of each replica (for example, with docker exec or kubectl exec and a sorted environment dump) rather than trusting the deployment template. Confirm the exact secret and session variable names in the documentation for your Open WebUI version, because these names have changed across releases and should not be assumed from older guides. The scaling guide is the place to start that check.

Five failure modes and what they look like in logs

Most scaled Open WebUI failures trace back to one missing piece of shared state: a common secret, a shared database, a shared session store, a reachable vector database or shared file storage. The cards below describe each failure pattern, the requirement it usually points to, and the first thing to confirm before changing anything.

Login loops after sign-in

Users sign in, get redirected back to the login page, and sign in again. Often this happens when replicas do not share the same signing secret, so a token issued by one replica is rejected by another. Confirm that every replica receives an identical secret value from the same source, and that the value did not change during a rolling restart.

Scaling guide

Intermittent 401 errors

Requests succeed on some page loads and return 401 on others, usually with the same account. The pattern points to replicas disagreeing about who is signed in. Check that the shared secret matches on all replicas, that sessions are stored in Redis rather than per container, and that the load balancer is not sending a user's websocket and HTTP calls to different state stores.

Files missing after upload

A user uploads a file or knowledge document, then gets a not-found response when the chat or knowledge base is opened from another replica. The file was written to local container storage on one replica. Confirm that uploads go to shared object storage or a ReadWriteMany volume mounted on every replica, and that the storage setting is identical across the deployment.

Worker crashes tied to ChromaDB

Workers or replicas restart after document processing or retrieval, and the crash logs reference the embedded vector store. The default ChromaDB is not designed for several processes writing to the same local data. Confirm that the deployment uses an external vector database and that no replica still points at the embedded store.

Scaling guide

Database contention on SQLite

Requests slow down or fail with database lock or write errors when several replicas share one SQLite file, especially on network storage. SQLite is only suitable for a single instance on locally attached SSD or NVMe storage. Confirm that the DATABASE_URL points to PostgreSQL on every replica before tuning anything else.

How a request moves through replicas, Redis, PostgreSQL and storage

A user request enters through the load balancer and lands on one Open WebUI replica, which is the only place where a single symptom can be traced to a single instance. From there the replica reads and writes shared state in Redis for sessions and WebSocket connections, PostgreSQL for application data, the external vector database for retrieval, and shared file storage for uploads and knowledge files. When a login loops, a token is rejected or a file goes missing, check which of these hand-offs failed and whether every replica points at the same store.

Each shared requirement sits on a separate hand-off from a single replica.

Fixes by symptom: what to change and what to verify

Login loops usually mean one replica issues a session that another replica cannot verify. The user signs in, gets redirected, and lands on the sign-in page again when the next request reaches a different replica. The cause is almost always a shared component that is missing or inconsistent, so check the shared components before changing the proxy.

  • Signing secret mismatch: every replica must run with the same signing secret, set the same way in each container or Helm release. Compare the setting across replicas without writing the value into shared logs.
  • Missing Redis: without Redis, sessions and websocket state are not shared, so the next request may reach a replica with no record of the session. The Redis or Valkey topic in this group covers the required settings.
  • SQLite still in use: a replica writing to a local SQLite file cannot see changes made by the others. Confirm every replica points to PostgreSQL.
  • Proxy and cookie handling: confirm the load balancer forwards the original host and protocol headers and does not drop the session cookie.

Verify by signing in, then loading the home page and the chat list 20 times through the load balancer and confirming there is no redirect. Repeat the test with each replica reached directly, and run it again after one replica restarts, since a missing secret or Redis setting often shows up only after a restart.

Security risks that troubleshooting can introduce

Fast fixes during a multi-replica incident often widen exposure: secrets end up in logs, sessions outlive their intent, and diagnostic access spreads. The cards below cover the four risks we see most often, and what to confirm before and after you touch a live scaled deployment.

Keep secrets out of debug logs

Turning up log verbosity to chase a login loop can write session material, environment values or request details into log stores with wider access than the application. Before you raise a log level, confirm which logging settings your Open WebUI version exposes and what it prints at each level. Check that your log pipeline does not index authorization headers or cookies, and that debug output is removed after the incident. Shared secret values should never be pasted into tickets or chat while you investigate.

Scaling docs

Long-lived tokens without Redis

Without Redis, signing out does not revoke tokens. They remain valid until they expire, and the default lifetime is 4 weeks. During a fault, a team may sign users out or rotate sessions and assume access has ended when it has not. Confirm whether Redis is connected on every replica before you rely on sign-out as a containment step, and test revocation with a non-admin account before you tell users they are safe.

Scaling docs

Restrict admin diagnostic access

Health endpoints, admin panels, database shells and container exec sessions are useful during a crash loop and also expose user data and configuration. Limit who can reach them during an incident, record each session, and remove temporary accounts or elevated roles when the fault is closed. Confirm which admin functions are reachable through your reverse proxy and whether your identity provider groups map to Open WebUI admin roles, since a broad group mapping can grant admin rights to people who only needed logs.

Rotate shared secrets after a fault

If a replica writes a shared secret to a log, a container image or a shell history, treat that secret as exposed. Rotate it across every replica at the same time, since replicas that hold different values can fail to validate each other's sessions and produce 401 errors. Plan the rotation window with users in mind, because existing sessions may be invalidated. Confirm the exact variable name and rotation behavior for your version in the scaling documentation before you change it in production.

Questions teams ask before bringing in outside help

How much effort does fixing a multi-replica Open WebUI problem usually take?

Effort depends less on the symptom than on how many layers are involved. A login loop caused by a missing shared secret is a short fix once found, while a worker crash caused by an embedded vector database means changing the vector store, validating data and retesting every replica. The main drivers are how many of the core requirements are already in place (a shared secret, PostgreSQL, Redis, an external vector database and shared file storage), how many replicas and workers run, whether the problem reproduces on demand, and how much history exists in the logs. Ask any provider to split its quote into diagnosis, the fix itself and verification, so you can see which part depends on what your team can provide.

Can our internal team triage these failures without outside help?

Often yes, if the team can separate the layers. Start with the checklist: confirm every replica uses the same secret key, that the database is PostgreSQL rather than SQLite, that Redis is reachable from every replica, that the vector database is external, and that uploads and knowledge files live on storage every replica can read. A 401 error after a rolling restart often points to one of these mismatches. Outside help becomes more useful when the failure is intermittent, spans several components, or appears only under load, because those cases need controlled reproduction and comparison across replicas. Ask your own staff to confirm which checks they have already completed so no effort is repeated.

What access and information will a provider need to diagnose the problem?

A provider will need enough context to reproduce the failure without guessing. Typical requests include:

  • Read access to container or pod logs from the web and worker processes, with timestamps covering the failure window
  • The deployment configuration with secrets redacted, including environment variables for the database, Redis, vector store and storage provider
  • Versions of Open WebUI and the deployment method, such as Docker Compose, Helm or pip
  • Details of the database, Redis and vector store, including connection limits and how they are hosted
  • A description of the exact user steps that trigger the error, and whether it affects all users or specific ones

Agree in writing how secrets are shared and where logs are stored. Access should be limited to the environments in scope and removed when the engagement ends.

How long does diagnosis depend on access and reproduction?

Diagnosis time depends mostly on how quickly the failure can be made to happen again. If the problem appears on every login or every file upload, a provider can usually confirm the cause from configuration and logs once it has access. If the failure is intermittent, it may only appear after a deployment, during a scale event or when a particular worker handles a request, so the work includes waiting for the condition or recreating it in a staging environment that matches production as closely as possible. Access delays, slow log retrieval and missing change history all extend the timeline. Ask for the expected dependencies up front and agree on how staging access will be provided.

What changes the cost of a fixed-scope troubleshooting engagement?

A fixed-scope engagement is priced from a written scope, so cost changes when that scope changes. The main factors are the number of environments involved, the number of failure symptoms to investigate, whether a fix requires architecture changes such as moving from SQLite to PostgreSQL or replacing an embedded vector store, how many replicas and workers must be verified, and whether the work includes documentation or a runbook for your team. Changes discovered during diagnosis, such as an unplanned storage migration, should be handled through a written change to scope. DeployOpen does not publish prices. Ask for a quote that lists each deliverable, the environments covered and the assumptions about access.

Will a provider need to change our production configuration to fix the issue?

Any change to production should be agreed in writing before it is made. Many failures are fixed by aligning configuration across replicas, such as a shared secret key or the same database and Redis settings. Others require a new component, such as an external vector database or shared file storage, which is a planned migration with its own testing and rollback. Ask the provider to state which changes it expects, which are optional, and which would need a maintenance window. Confirm who approves each change and how the previous configuration will be recorded so it can be restored.

Does a fix come with ongoing support after the engagement ends?

A fixed-scope engagement covers the work named in its written scope, and it ends when those deliverables are accepted. Ongoing support, upgrades and continuous testing are available as retainers. A retainer makes sense when your Open WebUI deployment changes often, when new releases such as v0.12.3 need validating against your replica setup, or when your team wants a named contact for incidents. Ask what is covered after handover, how incidents are reported and what response expectations are written into the agreement.

How DeployOpen scopes and delivers a multi-replica fix

DeployOpen starts a multi-replica fix by turning the requirements checklist into a written scope: shared secret, PostgreSQL, Redis, external vector database and shared file storage, each with an owner and a pass condition. The scope names which replicas, workers and load balancer settings are in play, which logs and configuration files we will review, and which symptoms the work must eliminate, such as login loops, 401 errors, missing uploads and worker crashes. The review happens inside your own infrastructure, using read access to the deployment manifests, environment variables, container logs and database connection metrics that you grant. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins. DeployOpen does not publish a price list, so a quote follows from that written scope.

Fixes are delivered against the checklist, not as a single change. Each requirement gets a verification test that proves the replicas behave as one application: a sign-out on one replica should invalidate the session on another, a file uploaded through one replica should open from every other, and a restart of one replica should not drop websocket sessions held by its peers. Changes are applied in your change process, with the before and after evidence recorded so your operations team can repeat the checks. Where a fix depends on a component you have not yet confirmed, such as the vector database version your Open WebUI release supports, the scope names that as an open item for you to confirm with the vendor or your own test environment.

Retainers are available where you want continuing support after the fix. A retainer usually covers upgrades between Open WebUI releases, re-running the checklist tests after infrastructure changes, and review of new error patterns in logs. Ask for the retainer terms in the quote: what response is covered, which environments are included, and whether re-testing after an upgrade is part of the fee or billed separately. Your team keeps ownership of the running system throughout, and the handover includes the checklist, the test scripts and the configuration baseline, so you can run the checks yourself if you choose to stop the retainer.

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.