mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #7207] Unable to start docker container in offline environment >= 0.4.0 #30184
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 @useless-bit on GitHub (Nov 22, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/7207
Bug Report
Installation Method
Docker Compose on an offline (Ubuntu Server 22 LTS) VM
Environment
Open WebUI Version: >= 0.4.0
Operating System: macOS 15.1.1 (24B91)
Browser (if applicable): Firefox 132.0.2 (aarch64)
Confirmation:
Expected Behavior:
The container should be able to start without an internet connection.
Actual Behavior:
The container does not start without an internet connection.
Description
Bug Summary:
After updating the docker container from 0.3.55 to >= 0.4.0, the Open WebUI was unable to start, if it cannot connect to the internet to download a small model.
Reproduction Details
Start the container on a version >= 0.4.0 in an offline environment. The container will be stuck at the point shown in the logs below.
If Internet connectivity is allowed for the container, it is able do download something and start. This file is downloaded at every start of the container.
Logs and Screenshots
Docker Container Logs: working system (0.3.55 | container hash @sha256:f9b59ec6872d19d38d650debe3656e8e81e29e19275827330500965d7b2739d6):
Docker Container Logs: non starting system (0.4.0 | container hash @sha256:efc8975d19d95198f243b211e911a0d1291bad339220eabce8b8cce3657353ab):
Additional Information
The Docker Containers are loaded from a private docker mirror, the System where Open WebUI is running has no internet connectivity.
@lililililli1 commented on GitHub (Nov 24, 2024):
这是因为webui开启时会用到后端服务,docker启动时只有前端,因此断网的情况下不能使用。希望作者对于完全离线可以进行优化!!!
@TheMasterFX commented on GitHub (Nov 25, 2024):
We are running also offline and didn't have this specific issue so far, but we had to disable the openai API endpoint since after updating to 0.42 it seems like get_all_models() tries to get the models from the https://api.openai.com/v1/models which is not reachable.
@nebula-it commented on GitHub (Nov 26, 2024):
Same here, but the blocker is
huggingface.co. On startup openweb-ui tries to connect and if its not able to connect tohuggingface.coit will be just stuck waiting there@TheMasterFX commented on GitHub (Dec 7, 2024):
Maybe you could try to set HF_HUB_OFFLINE=1 in the Environment of the container.
@nebula-it commented on GitHub (Dec 7, 2024):
Aha perfect. That worked. I wonder where you got it from though? I dont see it documented in https://docs.openwebui.com/getting-started/advanced-topics/env-configuration
@TheMasterFX commented on GitHub (Dec 8, 2024):
It is documented in the huggingface library documentation https://huggingface.co/docs/huggingface_hub/package_reference/environment_variables
@nebula-it commented on GitHub (Dec 8, 2024):
I see, thank you