mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-07 02:24:42 +00:00
openwebui: add UV_HTTP_TIMEOUT and retry loop to prevent uv install hangs (#16917)
This commit is contained in:
committed by
GitHub
parent
8639310cfa
commit
6a5a714d18
@@ -46,7 +46,11 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||
fi
|
||||
|
||||
msg_info "Installing Open WebUI"
|
||||
$STD uv tool install --python 3.12 --constraint <(echo "numba>=0.60") "${OTEL_ARGS[@]}" open-webui[all]
|
||||
export UV_HTTP_TIMEOUT=300
|
||||
for attempt in $(seq 1 3); do
|
||||
$STD uv tool install --python 3.12 --constraint <(echo "numba>=0.60") "${OTEL_ARGS[@]}" open-webui[all] && break
|
||||
[[ $attempt -lt 3 ]] && msg_warn "Open WebUI install attempt $attempt failed, retrying..." && sleep 10
|
||||
done
|
||||
msg_ok "Installed Open WebUI"
|
||||
|
||||
read -r -p "${TAB3}Would you like to add Ollama? <y/N> " prompt
|
||||
|
||||
Reference in New Issue
Block a user