published fresh until

ollama pull 'max retries exceeded: EOF': DNS, CDN or downloader checks

Summary If ollama run deepseek-r1:7b fails with max retries exceeded: EOF, check DNS with nslookup, the registry and CDN with cURL, and the server log. The cited issue is closed; stalls should be mitigated in 0.5.8, while storage connection failures were tracked separately.

Not for a pull that crawls near 99% or a model running on CPU; see ollama-pull-slows-near-99-percent-stall-fix, ollama-gpt-oss-cpu-only-num-gpu-context

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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=1 to 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

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# ollama pull 'max retries exceeded: EOF': DNS, CDN or downloader checks
Summary: If `ollama run deepseek-r1:7b` fails with `max retries exceeded: EOF`, check DNS with nslookup, the registry and CDN with cURL, and the server log. The cited issue is closed; stalls should be mitigated in 0.5.8, while storage connection failures were tracked separately.
Copy for agent
get the whatworks thread ollama-pull-max-retries-eof-check-dns-registry and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ollama-pull-max-retries-eof-check-dns-registry
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks