Compare commits

...
1 Commits
Author SHA1 Message Date
hermes a0b5f974e2 feat: reintento del ollama pull (3 intentos)
El pull de ~2 GB puede morir por red (unexpected EOF / i/o timeout,
visto en smoke test real en Windows). Reintenta 3 veces con pausa
y, si agota, deja el comando a mano para reintentar.
2026-09-12 20:43:27 +02:00
4 changed files with 52 additions and 4 deletions

No files matched your search

+13 -1
View File
@@ -121,8 +121,20 @@ while ($true) {
} }
} }
Warn ' Descargando modelo (llama3.2:3b, ~2 GB)...' Warn ' Descargando modelo (llama3.2:3b, ~2 GB)...'
$PullOk = $false
foreach ($Attempt in 1..3) {
if ($Attempt -gt 1) { Warn "Reintento $Attempt de 3..." }
docker exec d0a1-hermes-ollama ollama pull llama3.2:3b docker exec d0a1-hermes-ollama ollama pull llama3.2:3b
if ($LASTEXITCODE -ne 0) { Err 'Fallo la descarga del modelo.'; exit 1 } if ($LASTEXITCODE -eq 0) { $PullOk = $true; break }
Warn 'Descarga interrumpida (red). Reintentando en 5 s...'
Start-Sleep -Seconds 5
}
if (-not $PullOk) {
Err 'Fallo la descarga del modelo tras 3 intentos.'
Write-Host ' Revisa tu red (VPN/proxy) y reintenta a mano:'
Write-Host ' docker exec d0a1-hermes-ollama ollama pull llama3.2:3b'
exit 1
}
Ok "Ollama corriendo en http://localhost:${OllamaPort}" Ok "Ollama corriendo en http://localhost:${OllamaPort}"
# --- 2. Instalar Hermes Agent ------------------------------------------------ # --- 2. Instalar Hermes Agent ------------------------------------------------
+13 -1
View File
@@ -121,8 +121,20 @@ while ($true) {
} }
} }
Warn ' Descargando modelo (llama3.2:3b, ~2 GB)...' Warn ' Descargando modelo (llama3.2:3b, ~2 GB)...'
$PullOk = $false
foreach ($Attempt in 1..3) {
if ($Attempt -gt 1) { Warn "Reintento $Attempt de 3..." }
docker exec d0a1-openclaw-ollama ollama pull llama3.2:3b docker exec d0a1-openclaw-ollama ollama pull llama3.2:3b
if ($LASTEXITCODE -ne 0) { Err 'Fallo la descarga del modelo.'; exit 1 } if ($LASTEXITCODE -eq 0) { $PullOk = $true; break }
Warn 'Descarga interrumpida (red). Reintentando en 5 s...'
Start-Sleep -Seconds 5
}
if (-not $PullOk) {
Err 'Fallo la descarga del modelo tras 3 intentos.'
Write-Host ' Revisa tu red (VPN/proxy) y reintenta a mano:'
Write-Host ' docker exec d0a1-openclaw-ollama ollama pull llama3.2:3b'
exit 1
}
Ok "Ollama corriendo en http://localhost:${OllamaPort}" Ok "Ollama corriendo en http://localhost:${OllamaPort}"
# --- 2. Instalar OpenClaw ----------------------------------------------------- # --- 2. Instalar OpenClaw -----------------------------------------------------
+13 -1
View File
@@ -132,8 +132,20 @@ while ($true) {
exit 1 exit 1
} }
} }
$PullOk = $false
foreach ($Attempt in 1..3) {
if ($Attempt -gt 1) { Warn "Reintento $Attempt de 3..." }
docker exec d0a1-ollama ollama pull llama3.2:3b docker exec d0a1-ollama ollama pull llama3.2:3b
if ($LASTEXITCODE -ne 0) { Err 'Fallo la descarga del modelo.'; exit 1 } if ($LASTEXITCODE -eq 0) { $PullOk = $true; break }
Warn 'Descarga interrumpida (red). Reintentando en 5 s...'
Start-Sleep -Seconds 5
}
if (-not $PullOk) {
Err 'Fallo la descarga del modelo tras 3 intentos.'
Write-Host ' Revisa tu red (VPN/proxy) y reintenta a mano:'
Write-Host ' docker exec d0a1-ollama ollama pull llama3.2:3b'
exit 1
}
# --- Done ------------------------------------------------------------------- # --- Done -------------------------------------------------------------------
Write-Host '' Write-Host ''
+13 -1
View File
@@ -170,8 +170,20 @@ while ($true) {
exit 1 exit 1
} }
} }
$PullOk = $false
foreach ($Attempt in 1..3) {
if ($Attempt -gt 1) { Warn "Reintento $Attempt de 3..." }
docker exec d0a1-wp-ollama ollama pull llama3.2:3b docker exec d0a1-wp-ollama ollama pull llama3.2:3b
if ($LASTEXITCODE -ne 0) { Err 'Fallo la descarga del modelo.'; exit 1 } if ($LASTEXITCODE -eq 0) { $PullOk = $true; break }
Warn 'Descarga interrumpida (red). Reintentando en 5 s...'
Start-Sleep -Seconds 5
}
if (-not $PullOk) {
Err 'Fallo la descarga del modelo tras 3 intentos.'
Write-Host ' Revisa tu red (VPN/proxy) y reintenta a mano:'
Write-Host ' docker exec d0a1-wp-ollama ollama pull llama3.2:3b'
exit 1
}
# --- Done ------------------------------------------------------------------- # --- Done -------------------------------------------------------------------
Write-Host '' Write-Host ''