mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-11 00:13:40 -05:00
[GH-ISSUE #5294] OpenWebUI Hangs for Several Minutes Without Error After Ollama URL Becomes Unreachable #13931
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 @ForestRealms on GitHub (Sep 9, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5294
Bug Report
Installation Method
Docker
Environment
Open WebUI Version: v0.3.21
Operating System: OpenCloudOS 8
Browser (if applicable): Chrome 128.0.6613.120
Confirmation:
Expected Behavior:
When thr Ollama URL in the admin settings panel under External Connections is unreachable or invalid (or OpenAI API URL is unreachable for some resons, the same phenomenon occurs), OpenWebUI should provide feedback or error messages quickly, or display the UI first, rather than trying to test the URL for reachability and then display the UI.
Actual Behavior:
When setting an Ollama URL or OpenAI API URL that is not available or invalid, the OpenWebUI takes an excessively long time (several minutes) to load in the External Connections section under the admin settings panel. During this time, the UI is unresponsive, and no immediate error or feedback is provided in UI to indicate that the connection has failed.
Description
Bug Summary:
When configuring an unavailable or incorrect Ollama URL, OpenWebUI takes an excessive amount of time to respond in the admin panel's External Connections section, resulting in loading times of several minutes without proper error feedback.
Reproduction Details
Steps to Reproduce:
Note: A similar phenomenon occurs when the OpenAI API is not reachable, such as when the server cannot connect to api.openai.com
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots/Screen Recordings (if applicable):

Additional Information