Open WebUI startup failures

A troubleshooting guide for Open WebUI containers that never reach a healthy state, covering migration hangs, offline embedding model gaps, secret key problems and database migration errors.

On this page

Why Open WebUI startup failures stall teams and how to find the cause first

A new or upgraded Open WebUI container that never reports healthy can hold up a whole rollout, and the team waiting on it usually has no idea which of several possible causes is responsible. Most startup failures come from a short list of causes, and the evidence for almost all of them sits in the first lines of the container log. Read those lines before changing anything: the first error is usually the cause, and later messages are often just the process giving up.

This page covers four failure patterns: a container that hangs after database migrations, an embedding model that is missing when the instance runs in offline mode, an unset secret key, and migration errors that stop the application from starting. To work through them you need access to the running container or its orchestrator events, the full list of environment variables it was started with, and the data volume or database it points to. Without the environment variables you cannot tell whether a secret or model setting was ever passed in, and without the data volume you cannot check whether a previous version left the database in a state the new version cannot read.

Treat version-specific behavior as something to confirm, not assume. The project publishes releases on its GitHub releases page, and the most recent versions named in our research are v0.12.0 and v0.12.3, so record the exact image tag before and after the change and compare the release notes for the version you run. Setting variables and migration steps can change between releases, so check the Open WebUI features documentation and your own deployment notes against the tag you are running rather than relying on a fix that worked for a different version.

Where to look first when Open WebUI never comes up

This sequence moves from the cheapest evidence to the deepest checks, so the team finds the failing layer before changing anything. Each step names what a healthy result looks like and what to do when it does not.

  1. Read the container logs from the first line

    Pull the full log from the first line of the failed container, not only the last few lines, because the first error often explains the crash that follows. Whoever owns the deployment runs the log command for the container name in use, for example docker logs open-webui, and saves the output with the timestamps. Healthy looks like a clean sequence of startup messages that ends with the server listening on its port. If the log stops during database migrations or shows a traceback, record the exact error text and move to the next steps with that error in hand.

  2. Confirm the image tag and version

    Compare the image tag running in the environment with the version you intended to deploy, and check that tag against the official Open WebUI releases page on GitHub. Watch for latest or a floating tag, which can change between restarts and make a working setup fail after a pull. Healthy means the running tag matches a published release that your change record names. If it does not match, or the tag is missing from the releases page, redeploy with a pinned tag before debugging further, and confirm any upgrade notes for the versions you cross.

  3. Check environment variables and secret key

    Inspect the environment the container actually received, not the file you meant to write. Confirm that the secret key variable is set, that it is the same value used by previous runs that wrote data, and that database and vector store addresses, ports and credentials point to the services you intend. Healthy means every required variable is present and matches your configuration record, with secrets passed in from your secret store rather than typed into a shared file. If the secret key changed, stop and restore the original value, because a new key can make stored sessions and encrypted values unreadable.

  4. Verify volume mounts and data directory ownership

    Confirm that the data directory is mounted at the path the container expects and that the mount points to the storage you think it does, not an empty directory created by a typo or a changed host path. Check that the container user can read and write the mount. Healthy means the directory contains the existing database and upload folders from the previous run. If the directory is empty or owned by another user, fix the mount or ownership before restarting, since a fresh empty mount can look like a broken install and invite a reset that destroys data.

  5. Test the database connection

    Test connectivity from inside the same network as the container, using the host, port and credentials from the environment, with a client available in that network. If you run PostgreSQL, confirm that the database accepts the connection and that the user can create or alter tables, because migrations need that right. Healthy means a successful login and a query that returns a version string. If it fails, look at network policy, DNS and credential rotation first, and if you use SQLite, confirm the file sits on local SSD or NVMe storage, as the scaling guide requires for single-replica use.

  6. Test the vector store and embedding model access

    Check that the configured vector database answers a basic request from the container's network, and that the embedding model files or endpoint the application needs are reachable. In offline or air-gapped setups, confirm that the embedding model was downloaded in advance and is present at the configured path, because a missing model can stall startup. Healthy means the vector store responds and the model loads or its endpoint returns a test embedding. If either fails, correct the address or model path, and note that the default ChromaDB is not suitable for multi-process or multi-replica setups, so an external vector database is required there.

  7. Record findings and retest from a clean restart

    Write down the first error, the step where the check failed and the fix you applied, then restart the container once and read the log again from the first line. Whoever is on call owns the record, which becomes the input for the next incident and for any vendor or partner ticket. Healthy means the container passes startup and the health endpoints respond as expected. If it still fails after the fixes, escalate with the saved log, the pinned tag, a redacted environment list and the output of each connection test.

Which startup failure matches your logs

The container starts, writes a few lines, then sits without serving the interface while schema changes run. This usually follows a move to a newer release, especially when the database holds a large amount of chat history or the database server is under load. A quiet container is not always a broken one, so the first job is to decide whether the migration is still making progress.

  • Log pattern: Startup lines that describe migration steps, followed by silence. Check whether the output changes over time or stops entirely.
  • Likely cause: A long-running schema change on a large database, or contention from another workload on the same database server.
  • Check first: Database size, active queries and locks on the database server, and the version you are upgrading from. Compare that path against the Open WebUI releases on GitHub notes for any required steps.
  • Fix to confirm: A longer startup window before any restart. Restarting in the middle of a migration can leave the schema partly changed, so confirm a fresh backup exists first.

Before restarting anything, confirm the backup restores cleanly and the release notes list no manual steps for your upgrade path.

Startup settings to check and when each one fits

This table compares the settings that change whether Open WebUI starts cleanly, when each choice fits, and what breaks when it is wrong. Read each row against your topology: single replica, multiple replicas, or an orchestrator with probes. The main takeaway is that database, secret key and offline mode choices should be settled before the first production start, not during an incident.

SettingWhen it fitsWhat breaks if it is wrongWhat to confirm for your version
Image tag pinningPin an exact release tag, such as the version you tested, and change it only through a planned upgrade.A floating tag can pull a newer release whose migrations run on start, so a container that worked yesterday may hang or fail today.Read the release notes for the target tag and any migration steps before changing the tag in production.
SQLite on local SSD or NVMeSingle-replica deployments, evaluation and small teams where the database file sits on locally attached SSD or NVMe storage.On network storage, slow or interrupted writes during migrations can stall startup. The file also cannot be shared safely across multiple processes.Confirm the storage type under the data directory and the current SQLite guidance in the scaling documentation.
PostgreSQL backendMulti-instance deployments, or any setup where you need concurrent writes from several processes or replicas.Running several replicas on SQLite causes write contention. Connection string or credential errors show up as startup failures that look like application hangs.Check the database URL format, required extensions and connection limits for the version in use in the scaling documentation.
Secret key handlingA stable secret key supplied from your secret store on every start, backed up outside the data directory.If the key is unset, regenerated or changed between restarts, sessions and encrypted values stop matching. Replicas with different keys can also reject each other's tokens.Confirm which variable holds the key, whether it must be identical across replicas, and what happens to stored encrypted data if it changes.
Redis for shared stateRequired when running multiple replicas so sessions, websocket connections and application state are shared.Without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Replicas may also disagree about session state.Check the Redis connection settings and whether your version expects them during startup or only at runtime.
Offline mode and pre-downloaded embedding modelsAir-gapped or egress-restricted networks where the embedding model is copied into the image or data volume before the first start.The container may try to download the embedding model at startup, hang while it waits, or fail if the model files are missing from the expected path.Confirm the model name, cache directory, and offline environment variables for the version in use, and test startup with outbound access blocked.
External vector databaseRequired when running several workers or replicas, because the default ChromaDB can crash in multi-process setups.Startup or first retrieval may fail or crash workers when the default vector store runs in a multi-process layout.Confirm the supported vector database settings and whether the connection is checked at boot or on first use.
Startup timeouts for orchestratorsGenerous startup windows for Kubernetes startup probes or load balancer health checks, sized for migrations on first boot.Probes that fire too early restart the container during a migration, so the migration never finishes and the pod enters a restart loop.Check the health endpoints and any documented migration duration guidance, then set startup probe thresholds from measured first-boot times in a test environment.

How database choice changes what can fail at startup

The database you choose decides which startup failures are possible at all. The Open WebUI scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, because SQLite does not handle concurrent writes from multiple processes well. A single SQLite file shared by two or more replicas can therefore produce lock errors and failed startups that look like application bugs but are really a database design problem. SQLite remains acceptable for single-replica deployments, evaluation and small teams, but only when the database file sits on locally attached SSD or NVMe storage rather than network storage. Before you deploy, confirm where the volume backing /app/backend/data physically lives, because a network file system can hide the problem until the first restart.

Replicas that start at the same moment compete for the same work. When several containers point at one PostgreSQL database, each one may try to run schema migrations on boot, and the first process to take the lock wins while the others wait or fail. The result is a container that restarts in a loop, or one that sits in a migration state long enough to fail its health probe. The same pattern appears when replicas share a data directory on network storage. Start one replica, confirm migrations finish and the /health/db check passes, then bring up the rest. Also ask your platform team whether the orchestrator can roll replicas one at a time, because a parallel rollout turns a one-time migration into a race.

Multi-replica sessions depend on state that a single container keeps for itself. The scaling guide calls for Redis as a shared store for sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica. If Redis is missing, a replica can accept a sign-out that another replica never learns about, and without Redis signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Confirm the Redis endpoint, the shared storage mount and the vector database settings in the environment before the first replica starts, because a missing value often surfaces as a startup or upload failure on one replica only. The scaling guide also warns that the default ChromaDB will crash in multi-process setups, so an external vector database is required once you run several workers or replicas.

Open WebUI stops at a few predictable points during startup

The diagram follows an Open WebUI container from start to ready. It begins when the container reads its environment and checks that the secret key is set, then connects to the database and applies migrations. Next it loads the embedding model, or confirms a cached copy when offline, and finally connects to the vector store and shared state such as Redis in multi-replica setups. Each stop point marks a failure that typically halts startup, so work through the matching triage step before changing anything else. Replica and store requirements are in the scaling guide.

Startup path of an Open WebUI container, with the common stop points marked.

Security checks that startup troubleshooting can expose

Startup failures push teams into fast fixes under pressure, and several of the fastest fixes weaken security or data integrity. The cards below cover the risks a rushed repair creates and the control to keep in place for each one, so the outage ends without a second incident.

Keep the secret key out of logs

When a container refuses to start because the secret key is unset, the quickest fix is often to paste a key into a compose file, a chat thread or a ticket. Treat the key as a credential: store it in your secrets manager or an environment file with restricted permissions, and keep it outside the data directory. Check container logs and shared chat history for any copied value, and rotate the key if it has been exposed.

Confirm before regenerating the key

A new secret key can invalidate existing sessions and change how stored values are read, so a key regenerated to clear a startup error can lock out users or break data that depends on the old key. Before changing it, record the current value in your secrets store and confirm with the change owner which sessions and stored items the change affects. Test the new value against a copy of the data first.

Avoid direct database edits mid-migration

A container that hangs after a migration tempts operators to change rows or schema by hand to unstick it. Manual edits can leave the migration history inconsistent, and the next upgrade may fail in a way that is harder to diagnose. Take a verified backup first, record the current migration state, and make any repair through a documented procedure reviewed by a second engineer.

Pin image versions during an outage

During an outage, pulling the latest image tag can change the application version under a running database and give you a second, unplanned change. Pin the exact version that last ran successfully, and check the release notes for any migrations between that version and the one you are considering. Keep the tag in your compose file or Helm values under change control so the rollback target is known.

Turn off debug logging after triage

Raising the log level to debug while chasing a startup error can write prompt content, user identifiers and request bodies to container logs. Those logs often flow to shared observability platforms with wider access than the chat application. Set the level back to its normal value once the cause is found, confirm that prompt text is not stored in your log pipeline, and limit who can read the startup logs.

Verify the backup version before restoring

Restoring a backup taken from a different Open WebUI version into a running instance can trigger a migration that cannot be reversed, and the restored data may not match the image you deploy. Before restoring, confirm the version that created the backup, match the image to it, and restore into a separate environment first. Run a health check and a sign-in test before pointing users at the restored instance.

Questions teams ask before fixing startup failures themselves

How long does it take to fix an Open WebUI startup failure?

No single duration applies, because the time depends on what is failing and how much change the environment can take. The main drivers are the version gap between the running release and the target release, the size of the database that has to migrate, how quickly someone can read container logs and check database state, and whether the change must pass a formal change window. A missing setting can often be corrected in one restart cycle. A failed migration on a large database takes longer, because a verified backup and a restore test should come before any retry. To get a scoped timeline, share the current version, the target version and the database type.

Can our own team fix Open WebUI startup failures without a partner?

Yes, for the common causes, provided your team has access to the container runtime and the database. An unset secret key, an embedding model that is missing in offline mode and a migration that stalls after an upgrade can usually be identified from the startup logs and corrected in your own configuration. The work becomes harder when the failure sits in a schema change across a large version gap, when the database is shared with other services, or when several replicas depend on Redis, shared storage and an external vector database. Take a backup before any change, write down the state you found, and change one thing at a time so each result stays readable.

What information and access does a partner need to diagnose a startup failure?

A partner needs enough evidence to see what happened before the first new restart. Ask your team to provide:

  • Container logs from the first failed start through the last attempt, with secrets and user content removed
  • The deployment definition, such as the Compose file or Helm values, with credentials redacted
  • The running version and the version you intended to reach
  • The database type, its approximate size and whether other services share it
  • A confirmed backup or restore point, and the name of the person who can approve changes
  • Access windows for the affected environment, including who can run commands on the host

Logs that show a migration still writing to the database matter most, because restarting during that window can make recovery harder.

Does a DeployOpen engagement cover recovering a failed Open WebUI startup?

DeployOpen plans, implements, upgrades, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, including cloud accounts, data centers and air-gapped networks. Startup recovery can be scoped as one part of that work. A written scope can cover diagnosing the failure, applying the fix in your environment, verifying that the service starts and that users can sign in, and documenting the cause and the steps to follow next time. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing support and upgrades can follow under a retainer if you want a partner available after the fix.

How does DeployOpen quote a startup recovery engagement?

DeployOpen does not publish a price list. A quote follows from the written scope, so the inputs that move it are the ones defined in that scope. These include the number of environments affected, the version gap to the target release, the database and vector store that must be inspected, whether backup and restore testing is part of the work, and whether you want a retainer afterward. Ask for each line item to show who does the work, what is one-time and what recurs, and what changes if the diagnosis finds a larger problem. Open WebUI Enterprise licenses are a separate matter, quoted by enterprise sales after contact with an expected seat count, so keep licensing out of the support quote.

When should we stop restarting containers and call a partner?

Call a partner once restarts stop giving you new information or start changing your data. Restarting a container in the middle of a migration can leave the schema half changed, so stop and get help if the logs show a migration still running, if the database state is unclear, or if the same error returns after a change you expected to fix it. Also escalate when user data is at risk and no tested backup exists, when a secret key may have been lost or exposed, or when the service runs several replicas and the failure involves Redis, shared storage or the vector store. Leave the containers in their current state, save the logs and make the call before the next attempt.

Why do multi-replica Open WebUI startup failures differ from single-container ones?

They differ because each replica depends on shared services that a single container does not need. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, Redis as a shared store for sessions, websocket connections and application state, and shared file storage so uploads and knowledge stay reachable from every replica. It also warns that the default ChromaDB will crash in multi-process setups, so an external vector database is required when running several workers or replicas. A replica that starts cleanly on its own can fail when one of these pieces is missing, misconfigured or unreachable. Check each shared dependency before changing the image or its settings.

Official Open WebUI references for startup and scaling

Start with the scaling guide when a startup problem involves more than one replica or worker. The Scaling Open WebUI guide states that multi-instance deployments require PostgreSQL instead of SQLite, because SQLite does not handle concurrent writes from several processes well. It also requires Redis as a shared store for sessions, websocket connections and application state, plus shared file storage so every replica can reach uploads and knowledge. Read it before you decide whether a container that hangs on a second replica has a database or vector store mismatch, and confirm the current requirements for your chosen topology with the guide rather than with older notes or forum posts.

The same guide warns that the default ChromaDB can crash in multi-process setups and that an external vector database is needed when several workers or replicas run. It also explains that without Redis, sign-out does not revoke tokens, which matters when you test restarts and session behavior after a failed boot. Use it to build a checklist of what each replica must share, then compare that list with the environment variables and volumes your deployment actually passes to the container.

Check the Open WebUI releases page before you troubleshoot against a version number. It lists published versions and their release notes, so you can confirm which release your image tag points to and whether a change in that release touches database migrations, startup behavior or configuration keys. Record the exact image tag and digest in your incident notes, and confirm the release notes for any version you move to during an upgrade, since the project's current version history is only as current as the page you read.

How DeployOpen works on this

DeployOpen plans, implements, hardens and supports self-hosted open-source platforms inside your own infrastructure, including Open WebUI. For startup failures, we start from the container logs and the environment you run in, then fix the cause and document the result so your team can repeat the check.

How we scope

  • Collect the image tag, deployment method, database type and the exact startup log before proposing any change.
  • Confirm whether the instance is single-replica or multi-replica, since that decides the database, Redis and vector store needs.
  • Agree the written scope in advance, covering diagnosis, fixes, verification steps and the documentation to be delivered.

How we build

  • Reproduce the failure in a non-production copy, such as a hang after migrations or a missing embedding model in offline mode.
  • Set the secret key, embedding model files and startup timeouts through configuration your team can review and version.
  • Test the fix with a clean restart, a health endpoint check and a sign-in test before the change moves to production.

How we hand over

  • Document the root cause, the changed settings and the exact steps to rebuild the environment from scratch.
  • Provide a short runbook for the errors seen most, with the log lines to look for first and the fix for each.
  • Walk your operations team through the procedure so they can repeat the checks without DeployOpen involved.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer if you want help with future releases.
  • Plan upgrade checks before each Open WebUI version change, since migrations are the step most likely to stall startup.
  • Confirm with your team which support channels, response expectations and access arrangements apply before work starts.

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.