fix: Intel Mac support, RAM pre-flight check, TLS revocation, Ollama readiness poll, and model pref update on re-install#63
Open
ViperNetwork wants to merge 1 commit into
Conversation
- Added system RAM checks and advisories in install-core.ps1, install-core.sh, start-linux.sh, start-mac.command, and start-windows.bat. - Updated readiness polling for Ollama to replace fixed sleep with dynamic checks in start-linux.sh, start-mac.command, and start-windows.bat. - Improved user feedback regarding RAM requirements for AI models.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #49, #46, #60, #61, #62
Summary
Mac launcher only downloads Apple Silicon build (Intel Macs unsupported) #49 — Intel Mac support:
start-mac.commandnow usesuname -mtoselect the correct AnythingLLM DMG (
-Siliconvs plain) at first-rundownload time. Ollama's
ollama-darwin.zipis already a universal binaryand is unchanged.
Llama runner process has terminated with exit code 2 when loading large models (NemoMix/Qwen) #46 — RAM pre-flight check / OOM messaging:
linux/preflight-check.shgains a dedicated Step 4/5 that reads
/proc/meminfo, grades total RAMagainst per-model thresholds (4/6/8 GB), and fails the check if < 4 GB.
The three launchers (
start-linux.sh,start-mac.command,install-core.ps1) now emit an advisory line when available RAM is belowthe threshold for the installed models. If Ollama exits before the
readiness poll completes, the launchers now print an actionable OOM
message instead of silently hanging.
--ssl-no-revokedisables TLS certificate revocation on all binary downloads #60 — TLS revocation: Removed--ssl-no-revokefrom all threecurl.execalls ininstall-core.ps1(model files, Ollama binary,AnythingLLM installer). The flag disabled OCSP/CRL checking across all
binary downloads, which is a meaningful security downgrade.
Ollama server readiness check uses a fixed sleep instead of a health poll #61 — Ollama readiness poll: Replaced every fixed
sleep/timeoutwith a
curl/Invoke-WebRequestloop that pollsGET /api/tagsonce persecond, up to 30 s. Returns as soon as the server is ready; prints a
warning on timeout. Affects
start-linux.sh,start-mac.command,start-windows.bat, andinstall-core.ps1. (install-core.shalreadyhad a correct poll loop.)
Re-running installer to add a second model does not update
OLLAMA_MODEL_PREFin.env#62 —OLLAMA_MODEL_PREFnot updated on re-install: Bothinstall-core.shandinstall-core.ps1now update only theOLLAMA_MODEL_PREFline in an existing.envviased -i/ regexreplace. All other user settings (token limit, embedding engine, etc.) are
preserved.
Breaking changes
None. All changes are additive or remove a security downgrade.
Notes for reviewers
--ssl-no-revokeremoval may surface failures in environments where OCSPendpoints are firewall-blocked. This is intentional; the correct fix there
is to configure a trusted corporate CA, not to skip revocation globally.
OLLAMA_MODEL_PREFis now always updated by the installer on re-runs.Users who manually changed the model in the AnythingLLM UI will have their
preference overwritten the next time they run the installer. This is
consistent with the documented behaviour ("re-run install.bat to add
models") and matches what the first-time install already did.