issue: Container shows long Alembic migration sequence and CORS * warning on first (and possibly every) start with ghcr.io/open-webui/open-webui:main #6781

Closed
opened 2025-11-11 17:05:41 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @sidney-neto on GitHub (Oct 27, 2025).

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

ghcr.io/open-webui/open-webui:main

Ollama Version (if applicable)

n/a

Operating System

Ubuntu 24.04

Browser (if applicable)

Chrome 141

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

The OpenWebUI container should start successfully and make the web service available on port 3000.

Actual Behavior

The container starts successfully, stays healthy, and the TCP port 3000 is listening, but the web service does not open or respond in the browser.

Always shows:

CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS
USER_AGENT environment variable not set

Steps to Reproduce

  1. Run on Ubuntu 24.04.3 LTS with Docker 28.0.4
  2. Pull image "ghcr.io/open-webui/open-webui:main"
  3. Start container "docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main"
  4. Check logs: docker logs -f open-webui
  5. See full Alembic migration chain and the warnings above.
  6. Stop/start container again → same result.

Logs & Screenshots

root@ai-w02:# docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main
Unable to find image 'ghcr.io/open-webui/open-webui:main' locally
main: Pulling from open-webui/open-webui
5c32499ab806: Pull complete
923f706c7da6: Pull complete
3305e2b7fc7c: Pull complete
13973b95de7b: Pull complete
b124c04c3dda: Pull complete
4f4fb700ef54: Pull complete
93f7d71a43ad: Pull complete
77127ed2bb0c: Pull complete
5cc688decb4c: Pull complete
11ba7592cf55: Pull complete
94bdc704e2ab: Pull complete
3105e7a030e6: Pull complete
71e9b7206fa8: Pull complete
4b74cd7f42f2: Pull complete
c41c20ad99da: Pull complete
Digest: sha256:d6ab9bce3030f5b58e59144a7db9fe3012b39c94d27bc2979e98e6d6dc2161da
Status: Downloaded newer image for ghcr.io/open-webui/open-webui:main
15c87d5549f49d18f4a76b368f9e3705566753c3c9580fd0f0537bb3060cd39c
root@ai-w02:# docker logs -f open-webui
Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Generating WEBUI_SECRET_KEY
Loading WEBUI_SECRET_KEY from .webui_secret_key
INFO [alembic.runtime.migration] Context impl SQLiteImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
WARNI [open_webui.env]

WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.

INFO [open_webui.env] VECTOR_DB: chroma
INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.

██████╗ ██████╗ ███████╗███╗ ██╗ ██╗ ██╗███████╗██████╗ ██╗ ██╗██╗
██╔═══██╗██╔══██╗██╔════╝████╗ ██║ ██║ ██║██╔════╝██╔══██╗██║ ██║██║
██║ ██║██████╔╝█████╗ ██╔██╗ ██║ ██║ █╗ ██║█████╗ ██████╔╝██║ ██║██║
██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║ ██║███╗██║██╔══╝ ██╔══██╗██║ ██║██║
╚██████╔╝██║ ███████╗██║ ╚████║ ╚███╔███╔╝███████╗██████╔╝╚██████╔╝██║
╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝

v0.6.34 - building the best AI user interface.

https://github.com/open-webui/open-webui

Fetching 30 files: 100%|██████████| 30/30 [00:00<00:00, 304670.99it/s]
INFO: Started server process [1]
INFO: Waiting for application startup.
2025-10-27 23:48:15.595 | INFO | open_webui.utils.logger:start_logger:162 - GLOBAL_LOG_LEVEL: INFO
2025-10-27 23:48:15.595 | INFO | open_webui.main:lifespan:561 - Installing external dependencies of functions and tools...
2025-10-27 23:48:15.601 | INFO | open_webui.utils.plugin:install_frontmatter_requirements:283 - No requirements found in frontmatter.

Additional Information

Image: ghcr.io/open-webui/open-webui:main
Host: Ubuntu 24.04.3 LTS with Docker 28.0.4
Using named volume: open-webui:/app/backend/data
It seems migrations and warnings appear on every start, even with persistent volume.

Originally created by @sidney-neto on GitHub (Oct 27, 2025). ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version ghcr.io/open-webui/open-webui:main ### Ollama Version (if applicable) n/a ### Operating System Ubuntu 24.04 ### Browser (if applicable) Chrome 141 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior The OpenWebUI container should start successfully and make the web service available on port 3000. ### Actual Behavior The container starts successfully, stays healthy, and the TCP port 3000 is listening, but the web service does not open or respond in the browser. Always shows: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS USER_AGENT environment variable not set ### Steps to Reproduce 1. Run on Ubuntu 24.04.3 LTS with Docker 28.0.4 2. Pull image "ghcr.io/open-webui/open-webui:main" 3. Start container "docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main" 4. Check logs: docker logs -f open-webui 5. See full Alembic migration chain and the warnings above. 6. Stop/start container again → same result. ### Logs & Screenshots root@ai-w02:# docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main Unable to find image 'ghcr.io/open-webui/open-webui:main' locally main: Pulling from open-webui/open-webui 5c32499ab806: Pull complete 923f706c7da6: Pull complete 3305e2b7fc7c: Pull complete 13973b95de7b: Pull complete b124c04c3dda: Pull complete 4f4fb700ef54: Pull complete 93f7d71a43ad: Pull complete 77127ed2bb0c: Pull complete 5cc688decb4c: Pull complete 11ba7592cf55: Pull complete 94bdc704e2ab: Pull complete 3105e7a030e6: Pull complete 71e9b7206fa8: Pull complete 4b74cd7f42f2: Pull complete c41c20ad99da: Pull complete Digest: sha256:d6ab9bce3030f5b58e59144a7db9fe3012b39c94d27bc2979e98e6d6dc2161da Status: Downloaded newer image for ghcr.io/open-webui/open-webui:main 15c87d5549f49d18f4a76b368f9e3705566753c3c9580fd0f0537bb3060cd39c root@ai-w02:# docker logs -f open-webui Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. Generating WEBUI_SECRET_KEY Loading WEBUI_SECRET_KEY from .webui_secret_key INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. WARNI [open_webui.env] WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS. INFO [open_webui.env] VECTOR_DB: chroma INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2 WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests. ██████╗ ██████╗ ███████╗███╗ ██╗ ██╗ ██╗███████╗██████╗ ██╗ ██╗██╗ ██╔═══██╗██╔══██╗██╔════╝████╗ ██║ ██║ ██║██╔════╝██╔══██╗██║ ██║██║ ██║ ██║██████╔╝█████╗ ██╔██╗ ██║ ██║ █╗ ██║█████╗ ██████╔╝██║ ██║██║ ██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║ ██║███╗██║██╔══╝ ██╔══██╗██║ ██║██║ ╚██████╔╝██║ ███████╗██║ ╚████║ ╚███╔███╔╝███████╗██████╔╝╚██████╔╝██║ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝ v0.6.34 - building the best AI user interface. https://github.com/open-webui/open-webui Fetching 30 files: 100%|██████████| 30/30 [00:00<00:00, 304670.99it/s] INFO: Started server process [1] INFO: Waiting for application startup. 2025-10-27 23:48:15.595 | INFO | open_webui.utils.logger:start_logger:162 - GLOBAL_LOG_LEVEL: INFO 2025-10-27 23:48:15.595 | INFO | open_webui.main:lifespan:561 - Installing external dependencies of functions and tools... 2025-10-27 23:48:15.601 | INFO | open_webui.utils.plugin:install_frontmatter_requirements:283 - No requirements found in frontmatter. ### Additional Information Image: ghcr.io/open-webui/open-webui:main Host: Ubuntu 24.04.3 LTS with Docker 28.0.4 Using named volume: open-webui:/app/backend/data It seems migrations and warnings appear on every start, even with persistent volume.
GiteaMirror added the bug label 2025-11-11 17:05:41 -06:00
Author
Owner

@silentoplayz commented on GitHub (Oct 28, 2025):

Nothing is actually broken here. The two messages you see are only warnings and the container is already past them and waiting for requests.

The first start of Open WebUI downloads some embedding models and can take 30-60 s on a slow link.

Once the embedding models have finished downloading, Open WebUI should be ready.
Because you mapped -p 3000:8080, open:

http://localhost:3000

in the same machine’s browser.

If you are on another machine use the host’s IP, e.g.:

http://192.168.1.42:3000

If the page still does not load:

  • curl -I http://localhost:3000 – should return HTTP/1.1 200 OK.
  • ss -tlnp | grep 3000 – make sure something is listening on 0.0.0.0:3000.
  • Check that no local firewall (ufw, nftables, cloud security-group) blocks the port.

If curl works but a remote browser fails, the traffic is simply being filtered outside the container; the OpenWebUI container itself is fine.

@silentoplayz commented on GitHub (Oct 28, 2025): Nothing is actually broken here. The two messages you see are only warnings and the container is already past them and waiting for requests. The first start of Open WebUI downloads some embedding models and can take 30-60 s on a slow link. Once the embedding models have finished downloading, Open WebUI should be ready. Because you mapped `-p 3000:8080`, open: ``` http://localhost:3000 ``` in the **same machine’s browser**. If you are on another machine use the host’s IP, e.g.: ``` http://192.168.1.42:3000 ``` If the page still does not load: - `curl -I http://localhost:3000` – should return HTTP/1.1 200 OK. - `ss -tlnp | grep 3000` – make sure something is listening on 0.0.0.0:3000. - Check that no local firewall (`ufw`, `nftables`, cloud security-group) blocks the port. If curl works but a remote browser fails, the traffic is simply being filtered outside the container; the OpenWebUI container itself is fine.
Author
Owner

@sidney-neto commented on GitHub (Oct 28, 2025):

Hey, thanks for replying to this issue and confirming that nothing is broken.

I believe the container isn’t able to download the embedding models… Which models would those be?

Could you please clarify exactly which URLs or destination domains the container connects to during this process?

I’m setting up Open WebUI in a restricted environment with outbound traffic filtering, so I need to whitelist the endpoints.

@sidney-neto commented on GitHub (Oct 28, 2025): Hey, thanks for replying to this issue and confirming that nothing is broken. I believe the container isn’t able to download the embedding models… Which models would those be? Could you please clarify exactly which URLs or destination domains the container connects to during this process? I’m setting up Open WebUI in a restricted environment with outbound traffic filtering, so I need to whitelist the endpoints.
Author
Owner

@silentoplayz commented on GitHub (Oct 28, 2025):

Open WebUI tries to download sentence-transformers/all-MiniLM-L6-v2 as an embedding model from HuggingFace.

Check out https://docs.openwebui.com/getting-started/env-configuration#offline_mode

@silentoplayz commented on GitHub (Oct 28, 2025): Open WebUI tries to download `sentence-transformers/all-MiniLM-L6-v2` as an embedding model from HuggingFace. Check out https://docs.openwebui.com/getting-started/env-configuration#offline_mode
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6781