mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
Delay in Open WebUI When One Instance of Ollama Becomes Inactive #3128
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 @OriginalSimon on GitHub (Dec 27, 2024).
Bug Report
Overview
Open WebUI experiences delays or hangs when one of the connected Ollama instances is inactive. The problem persists across page reloads and creates significant usability challenges.
Installation Method
Environment
Confirmation Checklist
Expected Behavior
When one Ollama instance is inactive, Open WebUI should load without delays or dependencies on that instance. The system should bypass the inactive server and operate normally.
Actual Behavior
When one Ollama instance is inactive, Open WebUI attempts to fetch model data from all configured servers. This leads to prolonged delays or hangs until the inactive server is reactivated. Reloading the page causes the same issue to recur.
Additionally, after an extended period, the page may eventually load even if the instance remains inactive. However, the time required is unacceptably long for practical use.
Log Entry
Attempt to fetch models causes prolonged delay at this point:
Steps to Reproduce
Logs
Docker Container Logs
Screenshots
@tjbck commented on GitHub (Dec 27, 2024):
Expected behaviour, you can individually toggle your connection off or you could change
AIOHTTP_CLIENT_TIMEOUT_OPENAI_MODEL_LISTenv var.