mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #19376] issue: open-webui docker compose service does not resolve ollama service name #18853
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SorenPoulsen on GitHub (Nov 21, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19376
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.36
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04.1
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
open-webui should be able to resolve http://ollama:11434
Actual Behavior
Admin Settings->Setting->Connections->Manage Ollama API Connections is set to:
http://ollama:11434
Click download button shows popup with error:
"Failed to fetch models"
Docker compose logs suggest name resolution failure for "ollama".
Steps to Reproduce
In the git cloned project
1a. ./run-compose.sh
1b. or run "docker compose up -d"
2. Open http://localhost:3000 in browser
3. Navigate to Admin Settings->Setting->Connections->Manage Ollama API Connections
4. Click download button for models.
5. Popup appears with error "Failed to fetch models".
Logs & Screenshots
docker compose logs with error:
open-webui | requests.exceptions.ConnectionError: HTTPConnectionPool(host='ollama', port=11434): Max retries exceeded with url: /api/tags (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x71a290e79610>: Failed to resolve 'ollama' ([Errno -3] Temporary failure in name resolution)"))
open-webui | 2025-11-21 23:35:36.208 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.19.0.1:41298 - "GET /ollama/api/tags/0 HTTP/1.1" 500
docker compose logs from docker compose startup:
Attaching to ollama, open-webui
ollama | time=2025-11-21T23:48:14.015Z level=INFO source=routes.go:1544 msg="server config" env="map[CUDA_VISIBLE_DEVICES: GGML_VK_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:4096 OLLAMA_DEBUG:INFO OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://0.0.0.0:11434 OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/root/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* vscode-file://] OLLAMA_REMOTES:[ollama.com] OLLAMA_SCHED_SPREAD:false OLLAMA_VULKAN:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
ollama | time=2025-11-21T23:48:14.015Z level=INFO source=images.go:522 msg="total blobs: 0"
ollama | time=2025-11-21T23:48:14.015Z level=INFO source=images.go:529 msg="total unused blobs removed: 0"
ollama | time=2025-11-21T23:48:14.015Z level=INFO source=routes.go:1597 msg="Listening on [::]:11434 (version 0.13.0)"
ollama | time=2025-11-21T23:48:14.015Z level=INFO source=runner.go:67 msg="discovering available GPUs..."
ollama | time=2025-11-21T23:48:14.016Z level=INFO source=runner.go:102 msg="experimental Vulkan support disabled. To enable, set OLLAMA_VULKAN=1"
ollama | time=2025-11-21T23:48:14.016Z level=INFO source=server.go:392 msg="starting runner" cmd="/usr/bin/ollama runner --ollama-engine --port 34719"
ollama | time=2025-11-21T23:48:14.035Z level=INFO source=server.go:392 msg="starting runner" cmd="/usr/bin/ollama runner --ollama-engine --port 36721"
ollama | time=2025-11-21T23:48:14.052Z level=INFO source=types.go:60 msg="inference compute" id=cpu library=cpu compute="" name=cpu description=cpu libdirs=ollama driver="" pci_id="" type="" total="15.3 GiB" available="15.3 GiB"
ollama | time=2025-11-21T23:48:14.052Z level=INFO source=routes.go:1638 msg="entering low vram mode" "total vram"="0 B" threshold="20.0 GiB"
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 | INFO [alembic.runtime.migration] Context impl SQLiteImpl.
open-webui | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
open-webui | INFO [open_webui.env] 'ENABLE_OLLAMA_API' 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] 'OLLAMA_API_CONFIGS' 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] 'OPENAI_API_CONFIGS' loaded from the latest database entry
open-webui | INFO [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry
open-webui | WARNI [open_webui.env]
open-webui |
open-webui | WARNING: CORS_ALLOW_ORIGIN IS SET TO '' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.
open-webui |
open-webui | INFO [open_webui.env] VECTOR_DB: chroma
open-webui | INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
open-webui | WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.
open-webui |
open-webui | ██████╗ ██████╗ ███████╗███╗ ██╗ ██╗ ██╗███████╗██████╗ ██╗ ██╗██╗
open-webui | ██╔═══██╗██╔══██╗██╔════╝████╗ ██║ ██║ ██║██╔════╝██╔══██╗██║ ██║██║
open-webui | ██║ ██║██████╔╝█████╗ ██╔██╗ ██║ ██║ █╗ ██║█████╗ ██████╔╝██║ ██║██║
open-webui | ██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║ ██║███╗█���║██╔══╝ ██╔══██╗██║ ██║██║
open-webui | ╚██████╔╝██║ ███████╗██║ ╚████║ ╚███╔███╔╝███████╗██████╔╝╚██████╔╝██║
open-webui | ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝
open-webui |
open-webui |
open-webui | v0.6.36 - building the best AI user interface.
open-webui |
open-webui | https://github.com/open-webui/open-webui
open-webui |
Fetching 30 files: 100%|██████████| 30/30 [00:00<00:00, 96273.24it/s]
open-webui | INFO: Started server process [1]
open-webui | INFO: Waiting for application startup.
open-webui | 2025-11-21 23:48:23.559 | INFO | open_webui.utils.logger:start_logger:162 - GLOBAL_LOG_LEVEL: INFO
open-webui | 2025-11-21 23:48:23.560 | INFO | open_webui.main:lifespan:578 - Installing external dependencies of functions and tools...
open-webui | 2025-11-21 23:48:23.567 | INFO | open_webui.utils.plugin:install_frontmatter_requirements:283 - No requirements found in frontmatter.
open-webui | 2025-11-21 23:48:23.831 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.19.0.1:54232 - "GET /_app/version.json HTTP/1.1" 304
open-webui | 2025-11-21 23:48:24.815 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.19.0.1:54232 - "GET /api/version HTTP/1.1" 200
Additional Information
Tried disabling ipv6 just in case it's the problem, but it didn't change the outcome:
/etc/docker/daemon.json
{
"ipv6" : false,
"bridge" : "docker0"
}
systemctl restart docker.service
Also fails to resolve "ollama" from within open-webui container:
@SorenPoulsen commented on GitHub (Nov 22, 2025):
Works if I set the API connection to 172.19.0.2.
Doesnt work with "ollama" nor "host.docker.internal".