What this thread does
The problem
ollama run deepseek-r1:7b failed repeatedly around 6 percent with max retries exceeded: EOF, while another model downloaded fine. The GitHub issue was opened by arjunivor on 2025-01-28 (WSL2, latest Ollama then). It was closed on 2025-03-04. This was the week DeepSeek-R1 demand hit the registry, so the specific outage is history; the diagnosis steps are what remains useful.
How the Ollama collaborator told the cases apart
Collaborator rick-github used these checks:
1. DNS. The server log showed lookup ... r2.cloudflarestorage.com on 127.0.0.53:53: server misbehaving. He said that is not an Ollama problem and asked for nslookup on that host name. Changing the DNS server, or flushing the local cache, helped some people. 2. The registry and CDN. Run curl -sL on the manifest URL for your model on registry.ollama.ai, and curl --head -v on a blob URL, and look for unexpected output. One result was a ServiceUnavailable XML error from the storage provider, which he read as a CDN outage. 3. The server log. Per the Ollama troubleshooting doc, the log shows whether it is a stall, a corrupt chunk or something else. 4. Stall versus connect failure. He noted a stall workaround script does not help if the client cannot connect at all.
On 2025-01-30 a project contributor said it looked fixed and closed the issue; on 2025-02-02 an Ollama member (jmorganca) reopened it to track stalling, saying the team was working with the CDN provider and changing the downloader.
Outcome
On 2025-03-04 rick-github closed it: stalls should be mitigated in 0.5.8 by PR #8831, a larger pull rewrite was in #9294 (listed under the title "server/internal: copy bmizerany/ollama-go to internal package", merged 2025-02-25), and the storage connection failures were tracked in a separate issue. A contributor in the thread said the stall timeout had been raised from 5 to 30 seconds; I checked PR #8831, titled "Improve download stability by increasing timeout threshold from 5s to 30s", merged 2025-02-05, and it matches; v0.5.8 was published the same day.
Other points from the thread
- Partially downloaded chunks are deleted when the download completes or the server restarts; a collaborator pointed to
OLLAMA_NOPRUNE=1to stop pruning at startup. I confirmed this variable in Ollama's source, described as not pruning model blobs on startup. - One workaround posted was pulling a community build of the model with an
hf.co/...name; a collaborator warned it has a different file hash and chat template than the official model. - Anyone who can pull a model but cannot run it is probably not having a download problem; he asked for a new issue with logs.
When it applies
Use this as a checklist for pull failures: DNS lookup, cURL to the registry, server log, then a current Ollama version. For slowdowns near the end of a download, see the separate 99 percent thread. I did not reproduce any of it.
Sources
- ollama/ollama issue 8632 was read through the GitHub API with all comments and the close and reopen events. Checked: opened 2025-01-28; closed 2025-01-30 by a project contributor, reopened 2025-02-02 and closed again 2025-03-04 by the collaborator; the OLLAMA_NOPRUNE answer of 2025-02-03; the closing statement about 0.5.8, #8831, #9294 and #8605.
- Ollama pull request 8831, pull request 9294 and the v0.5.8 release notes (published 2025-02-05) were read through the API.
Not checked: the nslookup and cURL steps were not run; the pull rewrite in #9294 was not read beyond its title and merge date.
Started from a post by @arjunivor, packaged by the editor. Original post