From b634708da886736808e11a278537d7ff5948dea5 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 24 Mar 2026 12:20:13 -0700 Subject: [PATCH] fix(infra): make ollama model pull non-fatal in setup.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ollama pull piped through tail with set -euo pipefail would abort the entire 8-phase setup on a slow network or wrong model name. Only LocalMemGPT needs the model — the other 9 products are unaffected. --- docs/devops/single_azure_vm/setup.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/devops/single_azure_vm/setup.sh b/docs/devops/single_azure_vm/setup.sh index f7ee7f33..193e5c9c 100755 --- a/docs/devops/single_azure_vm/setup.sh +++ b/docs/devops/single_azure_vm/setup.sh @@ -206,10 +206,14 @@ DJSON log "Waiting for Ollama API..." wait_for_url "http://localhost:11434/api/version" 30 - # Pull default model + # Pull default model (non-fatal — LocalMemGPT needs it but other products don't) log "Pulling Ollama model: ${OLLAMA_MODEL} (this may take a few minutes)..." - ollama pull "$OLLAMA_MODEL" 2>&1 | tail -3 - ok "Ollama ready with model: ${OLLAMA_MODEL}" + if ollama pull "$OLLAMA_MODEL" 2>&1 | tail -3; then + ok "Ollama ready with model: ${OLLAMA_MODEL}" + else + warn "Ollama model pull failed (network issue?). LocalMemGPT may not work." + warn " Retry later: ollama pull ${OLLAMA_MODEL}" + fi # ── Create install directory ─────────────────────────────────────── mkdir -p "$INSTALL_DIR"