ERROR:apps.ollama.main:Connection error ON curl success #1163

Closed
opened 2025-11-11 14:38:59 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @rolkey on GitHub (Jun 7, 2024).

Bug Report

Description

Bug Summary:
Docker log:

INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: 

没有错误信息,但我认为是http_proxy设置引起的,但我不设置http_proxy无法正常访问网络

Steps to Reproduce:
I have test curl http://172.100.0.20:11434/api/tags and success in container,but still error
image

Actual Behavior:
[Describe what actually happened.]

Environment

  • Operating System: [Ubuntu 22.04]

Reproduction Details

Logs and Screenshots

image

Docker Container Logs:

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.5 - building the best open-source AI user interface.

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

INFO:apps.openai.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: 
INFO:     192.168.137.1:58116 - "GET /ws/socket.io/?EIO=4&transport=polling&t=O_nL1uc HTTP/1.1" 200 OK
INFO:apps.openai.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
INFO:     ('192.168.137.1', 58119) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=0bNqVrl5M0oxBM2TAAAA" [accepted]
INFO:     connection open
INFO:apps.openai.main:get_all_models()
INFO:apps.ollama.main:get_all_models()
ERROR:apps.ollama.main:Connection error: 
ERROR:apps.ollama.main:Connection error: 
connect  _ZtdUaDM7xCCEtEpAAAB
INFO:     192.168.137.1:58116 - "POST /ws/socket.io/?EIO=4&transport=polling&t=O_nL37j&sid=0bNqVrl5M0oxBM2TAAAA HTTP/1.1" 200 OK
INFO:     192.168.137.1:58120 - "GET /ws/socket.io/?EIO=4&transport=polling&t=O_nL37l&sid=0bNqVrl5M0oxBM2TAAAA HTTP/1.1" 200 OK

Installation Method

docker-compose.yaml


version: '3'

services:

  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    volumes:
      - ./ollama/open-webui:/app/backend/data
    depends_on:
      - ollama
    ports:
      - 8080:8080
    environment:
#      - OLLAMA_BASE_URLS=http://host.docker.internal:11434 #comma separated ollama hosts
      - OLLAMA_BASE_URLS=http://172.100.0.20:11434 #comma separated ollama hosts
#      - OLLAMA_BASE_URL=http://172.100.0.20:11434 #comma separated ollama hosts
      - OLLAMA_API_BASE_URL=http://172.100.0.20:11434/api
      - WEBUI_AUTH=False
      - WEBUI_NAME=Rolkey ChatRoot
#      - WEBUI_URL=http://127.0.0.1:8080
      - WEBUI_SECRET_KEY=t0p-s3cr3t
      - TZ=Asia/Shanghai
#      - http_proxy=http://192.168.137.1:7890
#      - https_proxy=http://192.168.137.1:7890
#      - no_proxy=127.0.0.1,localhost,172.100.0.0/16,192.168.0.0/16
    restart: always
Originally created by @rolkey on GitHub (Jun 7, 2024). # Bug Report ## Description **Bug Summary:** Docker log: ``` INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: ``` 没有错误信息,但我认为是http_proxy设置引起的,但我不设置http_proxy无法正常访问网络 **Steps to Reproduce:** I have test curl http://172.100.0.20:11434/api/tags and success in container,but still error ![image](https://github.com/open-webui/open-webui/assets/3341663/fa28d0c3-055e-4735-8693-73bb23fe19b6) **Actual Behavior:** [Describe what actually happened.] ## Environment - **Operating System:** [Ubuntu 22.04] ## Reproduction Details ## Logs and Screenshots ![image](https://github.com/open-webui/open-webui/assets/3341663/164e73b7-2acc-4493-834a-17815ed97913) **Docker Container Logs:** ``` 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.5 - building the best open-source AI user interface. https://github.com/open-webui/open-webui INFO:apps.openai.main:get_all_models() INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: INFO: 192.168.137.1:58116 - "GET /ws/socket.io/?EIO=4&transport=polling&t=O_nL1uc HTTP/1.1" 200 OK INFO:apps.openai.main:get_all_models() INFO:apps.ollama.main:get_all_models() INFO: ('192.168.137.1', 58119) - "WebSocket /ws/socket.io/?EIO=4&transport=websocket&sid=0bNqVrl5M0oxBM2TAAAA" [accepted] INFO: connection open INFO:apps.openai.main:get_all_models() INFO:apps.ollama.main:get_all_models() ERROR:apps.ollama.main:Connection error: ERROR:apps.ollama.main:Connection error: connect _ZtdUaDM7xCCEtEpAAAB INFO: 192.168.137.1:58116 - "POST /ws/socket.io/?EIO=4&transport=polling&t=O_nL37j&sid=0bNqVrl5M0oxBM2TAAAA HTTP/1.1" 200 OK INFO: 192.168.137.1:58120 - "GET /ws/socket.io/?EIO=4&transport=polling&t=O_nL37l&sid=0bNqVrl5M0oxBM2TAAAA HTTP/1.1" 200 OK ``` ## Installation Method docker-compose.yaml ``` version: '3' services: open-webui: image: ghcr.io/open-webui/open-webui:main container_name: open-webui volumes: - ./ollama/open-webui:/app/backend/data depends_on: - ollama ports: - 8080:8080 environment: # - OLLAMA_BASE_URLS=http://host.docker.internal:11434 #comma separated ollama hosts - OLLAMA_BASE_URLS=http://172.100.0.20:11434 #comma separated ollama hosts # - OLLAMA_BASE_URL=http://172.100.0.20:11434 #comma separated ollama hosts - OLLAMA_API_BASE_URL=http://172.100.0.20:11434/api - WEBUI_AUTH=False - WEBUI_NAME=Rolkey ChatRoot # - WEBUI_URL=http://127.0.0.1:8080 - WEBUI_SECRET_KEY=t0p-s3cr3t - TZ=Asia/Shanghai # - http_proxy=http://192.168.137.1:7890 # - https_proxy=http://192.168.137.1:7890 # - no_proxy=127.0.0.1,localhost,172.100.0.0/16,192.168.0.0/16 restart: always ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1163