Skip to content

Commit 1bcf55c

Browse files
fix: increase model download timeouts to 60 minutes
Bumps wget --timeout from 300s/600s to 3600s for GGUF and FLUX model downloads. This is the network stall timeout (no data received), not a total time cap. Prevents false failures on slow or intermittent connections without affecting fast downloads. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1705ac9 commit 1bcf55c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dream-server/installers/phases/11-services.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ else
8989
_dl_success=false
9090
for _attempt in 1 2 3; do
9191
[[ $_attempt -gt 1 ]] && ai "Retry attempt $_attempt of 3..."
92-
wget -c -q --timeout=300 -O "$GGUF_DIR/$GGUF_FILE.part" "$GGUF_URL" \
92+
wget -c -q --timeout=3600 -O "$GGUF_DIR/$GGUF_FILE.part" "$GGUF_URL" \
9393
>> "$INSTALL_DIR/logs/model-download.log" 2>&1 &
9494
dl_pid=$!
9595

@@ -184,7 +184,7 @@ else
184184
# Diffusion model (~24GB)
185185
if [[ ! -f "$FLUX_DIFFUSION_DIR/flux1-schnell.safetensors" ]]; then
186186
echo "[FLUX] Downloading flux1-schnell.safetensors (~24GB)..."
187-
wget -c -q --show-progress --timeout=600 -O "$FLUX_DIFFUSION_DIR/flux1-schnell.safetensors.part" \
187+
wget -c -q --show-progress --timeout=3600 -O "$FLUX_DIFFUSION_DIR/flux1-schnell.safetensors.part" \
188188
"https://huggingface.co/Comfy-Org/flux1-schnell/resolve/main/flux1-schnell.safetensors" 2>&1 && \
189189
mv "$FLUX_DIFFUSION_DIR/flux1-schnell.safetensors.part" "$FLUX_DIFFUSION_DIR/flux1-schnell.safetensors" && \
190190
echo "[FLUX] flux1-schnell.safetensors complete" || \
@@ -194,7 +194,7 @@ else
194194
# CLIP-L text encoder (~246MB)
195195
if [[ ! -f "$FLUX_ENCODER_DIR/clip_l.safetensors" ]]; then
196196
echo "[FLUX] Downloading clip_l.safetensors (~246MB)..."
197-
wget -c -q --show-progress --timeout=600 -O "$FLUX_ENCODER_DIR/clip_l.safetensors.part" \
197+
wget -c -q --show-progress --timeout=3600 -O "$FLUX_ENCODER_DIR/clip_l.safetensors.part" \
198198
"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors" 2>&1 && \
199199
mv "$FLUX_ENCODER_DIR/clip_l.safetensors.part" "$FLUX_ENCODER_DIR/clip_l.safetensors" && \
200200
echo "[FLUX] clip_l.safetensors complete" || \
@@ -204,7 +204,7 @@ else
204204
# T5-XXL text encoder (~10GB)
205205
if [[ ! -f "$FLUX_ENCODER_DIR/t5xxl_fp16.safetensors" ]]; then
206206
echo "[FLUX] Downloading t5xxl_fp16.safetensors (~10GB)..."
207-
wget -c -q --show-progress --timeout=600 -O "$FLUX_ENCODER_DIR/t5xxl_fp16.safetensors.part" \
207+
wget -c -q --show-progress --timeout=3600 -O "$FLUX_ENCODER_DIR/t5xxl_fp16.safetensors.part" \
208208
"https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors" 2>&1 && \
209209
mv "$FLUX_ENCODER_DIR/t5xxl_fp16.safetensors.part" "$FLUX_ENCODER_DIR/t5xxl_fp16.safetensors" && \
210210
echo "[FLUX] t5xxl_fp16.safetensors complete" || \
@@ -214,7 +214,7 @@ else
214214
# VAE (~335MB)
215215
if [[ ! -f "$FLUX_VAE_DIR/ae.safetensors" ]]; then
216216
echo "[FLUX] Downloading ae.safetensors (~335MB)..."
217-
wget -c -q --show-progress --timeout=600 -O "$FLUX_VAE_DIR/ae.safetensors.part" \
217+
wget -c -q --show-progress --timeout=3600 -O "$FLUX_VAE_DIR/ae.safetensors.part" \
218218
"https://huggingface.co/Comfy-Org/Lumina_Image_2.0_Repackaged/resolve/main/split_files/vae/ae.safetensors" 2>&1 && \
219219
mv "$FLUX_VAE_DIR/ae.safetensors.part" "$FLUX_VAE_DIR/ae.safetensors" && \
220220
echo "[FLUX] ae.safetensors complete" || \

0 commit comments

Comments
 (0)