[GH-ISSUE #2844] Unable to connect to Ollama #13038

Closed
opened 2026-04-19 19:51:32 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @galsi on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2844

Bug Report

Description

Cannot select model in main drop-down or in admin panel .

Bug Summary:
Cannot select model on any of the select options

Steps to Reproduce:
installed on clean machine
Ubuntu 24.04
open-webui
ollama with GPU support
Tested ollama without webui - working.
Tested Openwebui on firefox and Chrome both cannot select model

Expected Behavior:
select a model

Actual Behavior:
model is not selected or displayed
model is listed in the models list and connection is varified

Environment

  • Open WebUI Version: [v0.2.4]

  • Ollama (if applicable): [ollama version is 0.1.41]

  • Operating System: [Ubuntu 24.04]

  • Browser (if applicable): [Chrome 125.0.6422.141, Firefox 126.01]

Reproduction Details

Confirmation:

  • [X ] I have read and followed all the instructions provided in the README.md.
  • [ X] 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.

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]
Screenshot from 2024-06-05 17-07-38

Docker Container Logs:

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:     Started server process [1]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
/app

  ___                    __        __   _     _   _ ___ 
 / _ \ _ __   ___ _ __   \ \      / /__| |__ | | | |_ _|
| | | | '_ \ / _ \ '_ \   \ \ /\ / / _ \ '_ \| | | || | 
| |_| | |_) |  __/ | | |   \ V  V /  __/ |_) | |_| || | 
 \___/| .__/ \___|_| |_|    \_/\_/ \___|_.__/ \___/|___|
      |_|                                               

      
v0.2.4 - building the best open-source AI user interface.

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

INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "POST /ollama/urls/update HTTP/1.1" 401 Unauthorized
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "POST /ollama/urls/update HTTP/1.1" 401 Unauthorized
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "POST /ollama/urls/update HTTP/1.1" 401 Unauthorized
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "GET / HTTP/1.1" 304 Not Modified
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "GET /api/config HTTP/1.1" 200 OK
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "GET /api/v1/auths/ HTTP/1.1" 401 Unauthorized
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "GET /static/favicon.png HTTP/1.1" 200 OK
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:apps.webui.models.auths:authenticate_user: gals@camtek.com
INFO:     172.17.0.1:51944 - "POST /api/v1/auths/signin HTTP/1.1" 200 OK
INFO:apps.ollama.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:51944 - "GET /api/changelog HTTP/1.1" 200 OK
INFO:     172.17.0.1:57412 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
INFO:apps.ollama.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:     172.17.0.1:57420 - "GET /api/v1/configs/banners HTTP/1.1" 200 OK
INFO:     172.17.0.1:51944 - "GET /api/models HTTP/1.1" 200 OK
INFO:     172.17.0.1:57412 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK
INFO:     172.17.0.1:57418 - "GET /api/v1/documents/ HTTP/1.1" 200 OK
INFO:     172.17.0.1:57426 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK
INFO:apps.ollama.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused]
INFO:apps.ollama.main:get_all_models()

Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Installation Method

[ Docker]

Additional Information

Firewall Status : Inactive

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @galsi on GitHub (Jun 5, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/2844 # Bug Report ## Description Cannot select model in main drop-down or in admin panel . **Bug Summary:** Cannot select model on any of the select options **Steps to Reproduce:** installed on clean machine Ubuntu 24.04 open-webui ollama with GPU support Tested ollama without webui - working. Tested Openwebui on firefox and Chrome both cannot select model **Expected Behavior:** select a model **Actual Behavior:** model is not selected or displayed model is listed in the models list and connection is varified ## Environment - **Open WebUI Version:** [v0.2.4] - **Ollama (if applicable):** [ollama version is 0.1.41] - **Operating System:** [Ubuntu 24.04] - **Browser (if applicable):** [Chrome 125.0.6422.141, Firefox 126.01] ## Reproduction Details **Confirmation:** - [X ] I have read and followed all the instructions provided in the README.md. - [ X] 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. ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] ![Screenshot from 2024-06-05 17-07-38](https://github.com/open-webui/open-webui/assets/16662563/cef87942-5917-4b55-b41d-6e0b222a2fa5) **Docker Container Logs:** ``` 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: Started server process [1] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit) /app ___ __ __ _ _ _ ___ / _ \ _ __ ___ _ __ \ \ / /__| |__ | | | |_ _| | | | | '_ \ / _ \ '_ \ \ \ /\ / / _ \ '_ \| | | || | | |_| | |_) | __/ | | | \ V V / __/ |_) | |_| || | \___/| .__/ \___|_| |_| \_/\_/ \___|_.__/ \___/|___| |_| v0.2.4 - building the best open-source AI user interface. https://github.com/open-webui/open-webui INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "POST /ollama/urls/update HTTP/1.1" 401 Unauthorized INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "POST /ollama/urls/update HTTP/1.1" 401 Unauthorized INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "POST /ollama/urls/update HTTP/1.1" 401 Unauthorized INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "GET / HTTP/1.1" 304 Not Modified INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "GET /api/config HTTP/1.1" 200 OK INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "GET /api/v1/auths/ HTTP/1.1" 401 Unauthorized INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "GET /static/favicon.png HTTP/1.1" 200 OK INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO:apps.webui.models.auths:authenticate_user: gals@camtek.com INFO: 172.17.0.1:51944 - "POST /api/v1/auths/signin HTTP/1.1" 200 OK INFO:apps.ollama.main:get_all_models() INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:51944 - "GET /api/changelog HTTP/1.1" 200 OK INFO: 172.17.0.1:57412 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK INFO:apps.ollama.main:get_all_models() INFO:apps.ollama.main:get_all_models() INFO:apps.ollama.main:get_all_models() INFO:apps.ollama.main:get_all_models() INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO: 172.17.0.1:57420 - "GET /api/v1/configs/banners HTTP/1.1" 200 OK INFO: 172.17.0.1:51944 - "GET /api/models HTTP/1.1" 200 OK INFO: 172.17.0.1:57412 - "GET /api/v1/prompts/ HTTP/1.1" 200 OK INFO: 172.17.0.1:57418 - "GET /api/v1/documents/ HTTP/1.1" 200 OK INFO: 172.17.0.1:57426 - "GET /api/v1/chats/tags/all HTTP/1.1" 200 OK INFO:apps.ollama.main:get_all_models() INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] ERROR:apps.ollama.main:Connection error: Cannot connect to host host.docker.internal:11434 ssl:default [Connection refused] INFO:apps.ollama.main:get_all_models() ``` **Screenshots (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Installation Method [ Docker] ## Additional Information Firewall Status : Inactive ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#13038