[GH-ISSUE #19376] issue: open-webui docker compose service does not resolve ollama service name #18853

Closed
opened 2026-04-20 01:05:21 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @SorenPoulsen on GitHub (Nov 21, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19376

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

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

  • 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

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:

docker exec -it open-webui bash
root@572a95607390:/app/backend# netcat -nz ollama 11434
netcat: getaddrinfo for host "ollama" port 11434: Name or service not known

Originally created by @SorenPoulsen on GitHub (Nov 21, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/19376 ### 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 have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### 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 - [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 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: > docker exec -it open-webui bash > root@572a95607390:/app/backend# netcat -nz ollama 11434 netcat: getaddrinfo for host "ollama" port 11434: Name or service not known
GiteaMirror added the bug label 2026-04-20 01:05:21 -05:00
Author
Owner

@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".

<!-- gh-comment-id:3565947598 --> @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".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#18853