You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(k8s): Ollama model pulls stall through squid because ranged blob requests are fetched from byte 0 #460
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/bugType bug: the code does not do what it must
Ollama cannot pull models through the squid proxy. Pulls hang for hours and retry forever; the gateway aliases that depend on those models (devops-chat, devops-embedding) fail with model not found, so every gateway fallback chain ends in a broken tier.
Ollama downloads each blob from Cloudflare R2 as many parallel byte ranges. squid runs range_offset_limit -1, which answers a ranged request by fetching the whole object from byte 0. Every range beyond the start waits for the full prefix, Ollama's stall detection aborts it after ~30 s, and the pull restarts. Over 54 minutes squid logged 1,498 ranged GETs to R2, all TCP_MISS_ABORTED, delivering 0 bytes.
Single-stream downloads (vLLM weights from Hugging Face) are unaffected because they start at byte 0.
Proposal
Forward ranged requests to Ollama's blob storage (.r2.cloudflarestorage.com) unchanged (range_offset_limit 0 for that domain) and keep whole-object fetching for everything else. Partial responses are not cacheable, so Ollama blobs stop being cached, which they never were in practice.
Acceptance criteria
ollama pull completes through squid.
Hugging Face downloads keep whole-object caching.
A test pins the range handling order in k8s/squid/configmap.yaml.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/bugType bug: the code does not do what it must
Activity
fix(k8s): forward Ollama's ranged blob requests through squid unchang…
dan-petty commentedon Sep 23, 2026
Closed by #461, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.23 (#681)