I have read and followed all the instructions provided in the README.md.
I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
Expected Behavior:
The container should be able to start without an internet connection.
Actual Behavior:
The container does not start without an internet connection.
Description
Bug Summary:
After updating the docker container from 0.3.55 to >= 0.4.0, the Open WebUI was unable to start, if it cannot connect to the internet to download a small model.
Reproduction Details
Start the container on a version >= 0.4.0 in an offline environment. The container will be stuck at the point shown in the logs below.
If Internet connectivity is allowed for the container, it is able do download something and start. This file is downloaded at every start of the container.
Logs and Screenshots
Docker Container Logs: working system (0.3.55 | container hash @sha256:f9b59ec6872d19d38d650debe3656e8e81e29e19275827330500965d7b2739d6):
[+] Running 1/1
✔ Container open-webui Recreated 0.1s
Attaching to open-webui
open-webui | Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
open-webui | Generating WEBUI_SECRET_KEY
open-webui | Loading WEBUI_SECRET_KEY from .webui_secret_key
open-webui | /app/backend/open_webui
open-webui | /app/backend
open-webui | /app
open-webui | INFO:open_webui.env:GLOBAL_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:AUDIO_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:COMFYUI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:CONFIG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:DB_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:IMAGES_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MAIN_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MODELS_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OLLAMA_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OPENAI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:RAG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:WEBHOOK_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:SOCKET_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.apps.webui.internal.wrappers:Connected to SQLite database
open-webui | INFO:open_webui.apps.webui.internal.db:Starting migrations
open-webui | DEBUG:peewee:('CREATE TABLE IF NOT EXISTS "migratehistory" ("id" INTEGER NOT NULL PRIMARY KEY, "name" VARCHAR(255) NOT NULL, "migrated_at" DATETIME NOT NULL)', [])
open-webui | DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
open-webui | INFO:open_webui.apps.webui.internal.db:There is nothing to migrate
open-webui | Running migrations
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'SafeConfigParser': <class 'configparser.ConfigParser'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'NativeStringIO': <class '_io.StringIO'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'BytesIO': <class '_io.BytesIO'>
open-webui | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
open-webui | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
open-webui | INFO [open_webui.env]'JWT_EXPIRES_IN' loaded from the latest database entry
open-webui | INFO [open_webui.env]'OLLAMA_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_OPENAI_API' loaded from the latest database entry
open-webui | INFO [open_webui.env]'OPENAI_API_KEYS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'OPENAI_API_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_SIGNUP' loaded from the latest database entry
open-webui | INFO [open_webui.env]'DEFAULT_MODELS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'DEFAULT_USER_ROLE' loaded from the latest database entry
open-webui | INFO [open_webui.env]'USER_PERMISSIONS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_MODEL_FILTER' loaded from the latest database entry
open-webui | INFO [open_webui.env]'MODEL_FILTER_LIST' loaded from the latest database entry
open-webui | INFO [open_webui.env]'WEBHOOK_URL' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_COMMUNITY_SHARING' loaded from the latest database entry
open-webui | INFO [open_webui.env]'SHOW_ADMIN_DETAILS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_TOP_K' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_RELEVANCE_THRESHOLD' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_RAG_HYBRID_SEARCH' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_EMBEDDING_ENGINE' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_EMBEDDING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
open-webui | INFO [open_webui.env]'RAG_RERANKING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_TEMPLATE' loaded from the latest database entry
open-webui | INFO [open_webui.apps.audio.main] whisper_device_type: cpu
open-webui | DEBUG [open_webui.apps.retrieval.utils] model: sentence-transformers/all-MiniLM-L6-v2
open-webui | DEBUG [open_webui.apps.retrieval.utils] snapshot_kwargs: {'cache_dir': '/app/backend/data/cache/embedding/models', 'local_files_only': True}
open-webui | DEBUG [open_webui.apps.retrieval.utils] model_repo_path: /app/backend/data/cache/embedding/models/models--sentence-transformers--all-MiniLM-L6-v2/snapshots/e4ce9877abf3edfe10b0d82785e83bdcb973e22e
open-webui | INFO: Started server process [1]
open-webui | INFO: Waiting for application startup.
open-webui | INFO: Application startup complete.
open-webui | INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
open-webui | INFO [open_webui.apps.ollama.main] get_all_models()
open-webui | DEBUG [open_webui.main] Commit session after request
Docker Container Logs: non starting system (0.4.0 | container hash @sha256:efc8975d19d95198f243b211e911a0d1291bad339220eabce8b8cce3657353ab):
[+] Running 1/1
✔ Container open-webui Recreated 0.1s
Attaching to open-webui
open-webui | Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
open-webui | Generating WEBUI_SECRET_KEY
open-webui | Loading WEBUI_SECRET_KEY from .webui_secret_key
open-webui | /app/backend/open_webui
open-webui | /app/backend
open-webui | /app
open-webui | INFO:open_webui.env:GLOBAL_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:AUDIO_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:COMFYUI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:CONFIG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:DB_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:IMAGES_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MAIN_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MODELS_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OLLAMA_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OPENAI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:RAG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:WEBHOOK_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:SOCKET_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.apps.webui.internal.wrappers:Connected to SQLite database
open-webui | INFO:open_webui.apps.webui.internal.db:Starting migrations
open-webui | DEBUG:peewee:('CREATE TABLE IF NOT EXISTS "migratehistory" ("id" INTEGER NOT NULL PRIMARY KEY, "name" VARCHAR(255) NOT NULL, "migrated_at" DATETIME NOT NULL)', [])
open-webui | DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
open-webui | INFO:open_webui.apps.webui.internal.db:There is nothing to migrate
open-webui | Running migrations
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'SafeConfigParser': <class 'configparser.ConfigParser'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'NativeStringIO': <class '_io.StringIO'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'BytesIO': <class '_io.BytesIO'>
open-webui | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
open-webui | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
open-webui | INFO [open_webui.env]'JWT_EXPIRES_IN' loaded from the latest database entry
open-webui | INFO [open_webui.env]'OLLAMA_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_OPENAI_API' loaded from the latest database entry
open-webui | INFO [open_webui.env]'OPENAI_API_KEYS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'OPENAI_API_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_SIGNUP' loaded from the latest database entry
open-webui | INFO [open_webui.env]'DEFAULT_MODELS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'DEFAULT_USER_ROLE' loaded from the latest database entry
open-webui | INFO [open_webui.env]'WEBHOOK_URL' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_COMMUNITY_SHARING' loaded from the latest database entry
open-webui | INFO [open_webui.env]'SHOW_ADMIN_DETAILS' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_TOP_K' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_RELEVANCE_THRESHOLD' loaded from the latest database entry
open-webui | INFO [open_webui.env]'ENABLE_RAG_HYBRID_SEARCH' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_EMBEDDING_ENGINE' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_EMBEDDING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
open-webui | INFO [open_webui.env]'RAG_RERANKING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env]'RAG_TEMPLATE' loaded from the latest database entry
open-webui | INFO [open_webui.apps.audio.main] whisper_device_type: cpu
open-webui | DEBUG [open_webui.apps.retrieval.utils] model: sentence-transformers/all-MiniLM-L6-v2
open-webui | DEBUG [open_webui.apps.retrieval.utils] snapshot_kwargs: {'cache_dir': '/app/backend/data/cache/embedding/models', 'local_files_only': False} <----- will not go further after this point
Additional Information
The Docker Containers are loaded from a private docker mirror, the System where Open WebUI is running has no internet connectivity.
Originally created by @useless-bit on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7207
# Bug Report
## Installation Method
Docker Compose on an offline (Ubuntu Server 22 LTS) VM
## Environment
- **Open WebUI Version:** >= 0.4.0
- **Operating System:** macOS 15.1.1 (24B91)
- **Browser (if applicable):** Firefox 132.0.2 (aarch64)
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [ ] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## Expected Behavior:
The container should be able to start without an internet connection.
## Actual Behavior:
The container does not start without an internet connection.
## Description
**Bug Summary:**
After updating the docker container from 0.3.55 to >= 0.4.0, the Open WebUI was unable to start, if it cannot connect to the internet to download a small model.
## Reproduction Details
Start the container on a version >= 0.4.0 in an offline environment. The container will be stuck at the point shown in the logs below.
If Internet connectivity is allowed for the container, it is able do download something and start. This file is downloaded at every start of the container.
## Logs and Screenshots
**Docker Container Logs:** working system (0.3.55 | container hash @sha256:f9b59ec6872d19d38d650debe3656e8e81e29e19275827330500965d7b2739d6):
```shell
[+] Running 1/1
✔ Container open-webui Recreated 0.1s
Attaching to open-webui
open-webui | Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
open-webui | Generating WEBUI_SECRET_KEY
open-webui | Loading WEBUI_SECRET_KEY from .webui_secret_key
open-webui | /app/backend/open_webui
open-webui | /app/backend
open-webui | /app
open-webui | INFO:open_webui.env:GLOBAL_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:AUDIO_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:COMFYUI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:CONFIG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:DB_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:IMAGES_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MAIN_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MODELS_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OLLAMA_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OPENAI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:RAG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:WEBHOOK_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:SOCKET_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.apps.webui.internal.wrappers:Connected to SQLite database
open-webui | INFO:open_webui.apps.webui.internal.db:Starting migrations
open-webui | DEBUG:peewee:('CREATE TABLE IF NOT EXISTS "migratehistory" ("id" INTEGER NOT NULL PRIMARY KEY, "name" VARCHAR(255) NOT NULL, "migrated_at" DATETIME NOT NULL)', [])
open-webui | DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
open-webui | INFO:open_webui.apps.webui.internal.db:There is nothing to migrate
open-webui | Running migrations
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'SafeConfigParser': <class 'configparser.ConfigParser'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'NativeStringIO': <class '_io.StringIO'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'BytesIO': <class '_io.BytesIO'>
open-webui | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
open-webui | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
open-webui | INFO [open_webui.env] 'JWT_EXPIRES_IN' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'OLLAMA_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_OPENAI_API' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'OPENAI_API_KEYS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'OPENAI_API_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'DEFAULT_MODELS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'DEFAULT_USER_ROLE' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'USER_PERMISSIONS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_MODEL_FILTER' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'MODEL_FILTER_LIST' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'WEBHOOK_URL' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_COMMUNITY_SHARING' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'SHOW_ADMIN_DETAILS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_TOP_K' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_RELEVANCE_THRESHOLD' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_RAG_HYBRID_SEARCH' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_EMBEDDING_ENGINE' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_EMBEDDING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
open-webui | INFO [open_webui.env] 'RAG_RERANKING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_TEMPLATE' loaded from the latest database entry
open-webui | INFO [open_webui.apps.audio.main] whisper_device_type: cpu
open-webui | DEBUG [open_webui.apps.retrieval.utils] model: sentence-transformers/all-MiniLM-L6-v2
open-webui | DEBUG [open_webui.apps.retrieval.utils] snapshot_kwargs: {'cache_dir': '/app/backend/data/cache/embedding/models', 'local_files_only': True}
open-webui | DEBUG [open_webui.apps.retrieval.utils] model_repo_path: /app/backend/data/cache/embedding/models/models--sentence-transformers--all-MiniLM-L6-v2/snapshots/e4ce9877abf3edfe10b0d82785e83bdcb973e22e
open-webui | INFO: Started server process [1]
open-webui | INFO: Waiting for application startup.
open-webui | INFO: Application startup complete.
open-webui | INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
open-webui | INFO [open_webui.apps.ollama.main] get_all_models()
open-webui | DEBUG [open_webui.main] Commit session after request
```
**Docker Container Logs:** non starting system (0.4.0 | container hash @sha256:efc8975d19d95198f243b211e911a0d1291bad339220eabce8b8cce3657353ab):
```shell
[+] Running 1/1
✔ Container open-webui Recreated 0.1s
Attaching to open-webui
open-webui | Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
open-webui | Generating WEBUI_SECRET_KEY
open-webui | Loading WEBUI_SECRET_KEY from .webui_secret_key
open-webui | /app/backend/open_webui
open-webui | /app/backend
open-webui | /app
open-webui | INFO:open_webui.env:GLOBAL_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:AUDIO_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:COMFYUI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:CONFIG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:DB_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:IMAGES_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MAIN_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:MODELS_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OLLAMA_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:OPENAI_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:RAG_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:WEBHOOK_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.env:SOCKET_LOG_LEVEL: DEBUG
open-webui | INFO:open_webui.apps.webui.internal.wrappers:Connected to SQLite database
open-webui | INFO:open_webui.apps.webui.internal.db:Starting migrations
open-webui | DEBUG:peewee:('CREATE TABLE IF NOT EXISTS "migratehistory" ("id" INTEGER NOT NULL PRIMARY KEY, "name" VARCHAR(255) NOT NULL, "migrated_at" DATETIME NOT NULL)', [])
open-webui | DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."migrated_at" FROM "migratehistory" AS "t1" ORDER BY "t1"."id"', [])
open-webui | INFO:open_webui.apps.webui.internal.db:There is nothing to migrate
open-webui | Running migrations
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'SafeConfigParser': <class 'configparser.ConfigParser'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'NativeStringIO': <class '_io.StringIO'>
open-webui | DEBUG:passlib.utils.compat:loaded lazy attr 'BytesIO': <class '_io.BytesIO'>
open-webui | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
open-webui | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
open-webui | INFO [open_webui.env] 'JWT_EXPIRES_IN' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'OLLAMA_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_OPENAI_API' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'OPENAI_API_KEYS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'OPENAI_API_BASE_URLS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'DEFAULT_MODELS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'DEFAULT_USER_ROLE' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'WEBHOOK_URL' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_COMMUNITY_SHARING' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'SHOW_ADMIN_DETAILS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_TOP_K' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_RELEVANCE_THRESHOLD' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_RAG_HYBRID_SEARCH' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_EMBEDDING_ENGINE' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_EMBEDDING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
open-webui | INFO [open_webui.env] 'RAG_RERANKING_MODEL' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'RAG_TEMPLATE' loaded from the latest database entry
open-webui | INFO [open_webui.apps.audio.main] whisper_device_type: cpu
open-webui | DEBUG [open_webui.apps.retrieval.utils] model: sentence-transformers/all-MiniLM-L6-v2
open-webui | DEBUG [open_webui.apps.retrieval.utils] snapshot_kwargs: {'cache_dir': '/app/backend/data/cache/embedding/models', 'local_files_only': False} <----- will not go further after this point
```
## Additional Information
The Docker Containers are loaded from a private docker mirror, the System where Open WebUI is running has no internet connectivity.
We are running also offline and didn't have this specific issue so far, but we had to disable the openai API endpoint since after updating to 0.42 it seems like get_all_models() tries to get the models from the https://api.openai.com/v1/models which is not reachable.
<!-- gh-comment-id:2498776670 -->
@TheMasterFX commented on GitHub (Nov 25, 2024):
We are running also offline and didn't have this specific issue so far, but we had to disable the openai API endpoint since after updating to 0.42 it seems like get_all_models() tries to get the models from the https://api.openai.com/v1/models which is not reachable.
Same here, but the blocker is huggingface.co. On startup openweb-ui tries to connect and if its not able to connect to huggingface.co it will be just stuck waiting there
<!-- gh-comment-id:2501752291 -->
@nebula-it commented on GitHub (Nov 26, 2024):
Same here, but the blocker is `huggingface.co`. On startup openweb-ui tries to connect and if its not able to connect to `huggingface.co` it will be just stuck waiting there
Same here, but the blocker is huggingface.co. On startup openweb-ui tries to connect and if its not able to connect to huggingface.co it will be just stuck waiting there
Maybe you could try to set HF_HUB_OFFLINE=1 in the Environment of the container.
<!-- gh-comment-id:2525224858 -->
@TheMasterFX commented on GitHub (Dec 7, 2024):
> Same here, but the blocker is `huggingface.co`. On startup openweb-ui tries to connect and if its not able to connect to `huggingface.co` it will be just stuck waiting there
Maybe you could try to set HF_HUB_OFFLINE=1 in the Environment of the container.
<!-- gh-comment-id:2525261579 -->
@nebula-it commented on GitHub (Dec 7, 2024):
Aha perfect. That worked. I wonder where you got it from though? I dont see it documented in https://docs.openwebui.com/getting-started/advanced-topics/env-configuration
<!-- gh-comment-id:2525767530 -->
@TheMasterFX commented on GitHub (Dec 8, 2024):
It is documented in the huggingface library documentation https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @useless-bit on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7207
Bug Report
Installation Method
Docker Compose on an offline (Ubuntu Server 22 LTS) VM
Environment
Open WebUI Version: >= 0.4.0
Operating System: macOS 15.1.1 (24B91)
Browser (if applicable): Firefox 132.0.2 (aarch64)
Confirmation:
Expected Behavior:
The container should be able to start without an internet connection.
Actual Behavior:
The container does not start without an internet connection.
Description
Bug Summary:
After updating the docker container from 0.3.55 to >= 0.4.0, the Open WebUI was unable to start, if it cannot connect to the internet to download a small model.
Reproduction Details
Start the container on a version >= 0.4.0 in an offline environment. The container will be stuck at the point shown in the logs below.
If Internet connectivity is allowed for the container, it is able do download something and start. This file is downloaded at every start of the container.
Logs and Screenshots
Docker Container Logs: working system (0.3.55 | container hash @sha256:f9b59ec6872d19d38d650debe3656e8e81e29e19275827330500965d7b2739d6):
Docker Container Logs: non starting system (0.4.0 | container hash @sha256:efc8975d19d95198f243b211e911a0d1291bad339220eabce8b8cce3657353ab):
Additional Information
The Docker Containers are loaded from a private docker mirror, the System where Open WebUI is running has no internet connectivity.
@lililililli1 commented on GitHub (Nov 24, 2024):
这是因为webui开启时会用到后端服务,docker启动时只有前端,因此断网的情况下不能使用。希望作者对于完全离线可以进行优化!!!
@TheMasterFX commented on GitHub (Nov 25, 2024):
We are running also offline and didn't have this specific issue so far, but we had to disable the openai API endpoint since after updating to 0.42 it seems like get_all_models() tries to get the models from the https://api.openai.com/v1/models which is not reachable.
@nebula-it commented on GitHub (Nov 26, 2024):
Same here, but the blocker is
huggingface.co. On startup openweb-ui tries to connect and if its not able to connect tohuggingface.coit will be just stuck waiting there@TheMasterFX commented on GitHub (Dec 7, 2024):
Maybe you could try to set HF_HUB_OFFLINE=1 in the Environment of the container.
@nebula-it commented on GitHub (Dec 7, 2024):
Aha perfect. That worked. I wonder where you got it from though? I dont see it documented in https://docs.openwebui.com/getting-started/advanced-topics/env-configuration
@TheMasterFX commented on GitHub (Dec 8, 2024):
It is documented in the huggingface library documentation https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables
@nebula-it commented on GitHub (Dec 8, 2024):
I see, thank you