Open WebUI not working when Ollama is not reachable #3630

Closed
opened 2025-11-11 15:35:32 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @sebiweise on GitHub (Feb 6, 2025).

Bug Report

Installation Method

Docker Compose

Environment

  • Open WebUI Version: v0.5.10

  • Ollama (if applicable): 0.5.7-0-ga420a45-dirty

  • Operating System: Ubuntu

  • Browser (if applicable): Chrome

Confirmation:

  • 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 WebUI should load without an error and just don´t show the Ollama Models (because they are not available currently).

Actual Behavior:

The WebUi just shows a blank page and prints an error in the Docker logs.

Description

Bug Summary:
Open WebUI not working when Ollama is not reachable

Reproduction Details

Steps to Reproduce:

  • Define a Ollama connection.
  • Take the Ollama instance offline and try to reload Open WebUI

Logs and Screenshots

Browser Console Logs:

Error GET https://chat.*********.com/api/models 524 (<none>)

Error VM244:1 Uncaught (in promise) SyntaxError: Failed to execute 'json' on 'Response': Unexpected end of JSON input
    at index.ts:14:33
    at async j (index.ts:5:14)
    at async +layout.svelte:96:11

Docker Container Logs:

INFO  [open_webui.routers.openai] get_all_models()

ERROR [open_webui.routers.ollama] Connection error: Cannot connect to host ***.***.***.***:11434 ssl:default [Connect call failed ('***.***.***.***', 11434)]
Originally created by @sebiweise on GitHub (Feb 6, 2025). # Bug Report ## Installation Method Docker Compose ## Environment - **Open WebUI Version:** v0.5.10 - **Ollama (if applicable):** 0.5.7-0-ga420a45-dirty - **Operating System:** Ubuntu - **Browser (if applicable):** Chrome **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. - [x] 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 WebUI should load without an error and just don´t show the Ollama Models (because they are not available currently). ## Actual Behavior: The WebUi just shows a blank page and prints an error in the Docker logs. ## Description **Bug Summary:** Open WebUI not working when Ollama is not reachable ## Reproduction Details **Steps to Reproduce:** - Define a Ollama connection. - Take the Ollama instance offline and try to reload Open WebUI ## Logs and Screenshots **Browser Console Logs:** ``` Error GET https://chat.*********.com/api/models 524 (<none>) Error VM244:1 Uncaught (in promise) SyntaxError: Failed to execute 'json' on 'Response': Unexpected end of JSON input at index.ts:14:33 at async j (index.ts:5:14) at async +layout.svelte:96:11 ``` **Docker Container Logs:** ``` INFO [open_webui.routers.openai] get_all_models() ERROR [open_webui.routers.ollama] Connection error: Cannot connect to host ***.***.***.***:11434 ssl:default [Connect call failed ('***.***.***.***', 11434)] ```
Author
Owner

@tjbck commented on GitHub (Feb 6, 2025):

Deliberate design choice we made here, AIOHTTP_CLIENT_TIMEOUT_OPENAI_MODEL_LIST env is provided for this.

@tjbck commented on GitHub (Feb 6, 2025): Deliberate design choice we made here, `AIOHTTP_CLIENT_TIMEOUT_OPENAI_MODEL_LIST` env is provided for this.
Author
Owner

@sebiweise commented on GitHub (Feb 6, 2025):

Perfect thanks a lot, setting the ENV var AIOHTTP_CLIENT_TIMEOUT_OPENAI_MODEL_LIST: 1 solves the problem.

@sebiweise commented on GitHub (Feb 6, 2025): Perfect thanks a lot, setting the ENV var `AIOHTTP_CLIENT_TIMEOUT_OPENAI_MODEL_LIST: 1` solves the problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#3630