mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
OpenAI (local server) going offline brings Open-WebUI down #4225
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 @frenzybiscuit on GitHub (Mar 4, 2025).
Installation Method
Python 3.11 with pip/venv
Environment
Open WebUI Version: 0.5.18
Operating System: Debian 12
Browser (if applicable): Firefox (MacOS)
Confirmation:
Expected Behavior:
Works as expected
Actual Behavior:
When the OpenAI (locally hosted) API endpoint goes down, it brings down Open-WebUI with it. Open-WebUI does not return until the OpenAI endpoint does.
Description
Bug Summary:
See above
Reproduction Details
Steps to Reproduce:
Create a OpenAI endpoint like so:
Take the OpenAI endpoint offline (shut the OpenAI compatible server down).
Watch Open-WebUI turn into a white page on page refresh and refuse to load anything until the OpenAI endpoint is back up.
Watch open-webui logs, which will show the following:
2025-03-03 17:17:59.554 | INFO | open_webui.routers.openai:get_all_models:379 - get_all_models() - {}
2025-03-03 17:20:09.640 | ERROR | open_webui.routers.openai:send_get_request:78 - Connection error: Cannot connect to host 192.168.0.200:5000 ssl:default [Connect call failed ('192.168.0.200', 5000)] - {}
Additional Information
Open-WebUI DOES NOT come back online until the OpenAI endpoint is back online! Not even the admin section
@tjbck commented on GitHub (Mar 4, 2025):
https://docs.openwebui.com/getting-started/env-configuration#aiohttp_client_timeout_openai_model_list