Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / context deadline exceeded
Fix · Ollama

Ollama: context deadline exceeded and pull model manifest errors

Both errors mean a network request made while downloading a model did not finish in time or was cut off. The Ollama server log names the request that failed; the fix is usually the network path, a proxy setting, or retrying.

Fix it

  1. Read the server log right after the failure (the client only shows the last error):
    # macOS
    cat ~/.ollama/logs/server.log
    # Linux (systemd)
    journalctl -u ollama --no-pager --follow --pager-end
    # Docker
    docker logs <container-name>
    On Windows, open %LOCALAPPDATA%\Ollama and read server.log.
  2. Retry the pull (ollama pull <model>). In issue #17361 the reporter's error stopped on its own and was put down to a short outage.
  3. Behind a proxy, set HTTPS_PROXY for the Ollama server, not your shell, and install the proxy's certificate as a system certificate. Don't set HTTP_PROXY: Ollama pulls only over HTTPS, and that variable can interrupt client connections to the server.
  4. Restart the server after changing variables: launchctl setenv then restart the app on macOS; systemctl edit ollama.service, systemctl daemon-reload, systemctl restart ollama on Linux; on Windows, quit Ollama from the taskbar, edit the variable, start it again.
  5. Update Ollama: "Restart to update" in the menu bar or taskbar app, or re-run curl -fsSL https://ollama.com/install.sh | sh on Linux.

What the errors look like

Error: context deadline exceeded

Error: pull model manifest: Get "https://ollama.com/token?...": net/http: TLS handshake timeout
Error: pull model manifest: Get "https://ollama.com/token?...": read tcp ...: read: connection reset by peer
Error: pull model manifest: realm host "ollama.com" does not match original host "registry.ollama.ai"

context deadline exceeded is Go's standard error text for an operation whose deadline passed (Ollama is written in Go). It tells you something timed out, not what; the server log does.

Causes, and how to tell them apart

Clue in the log or outputLikely causeFix
TLS handshake timeout or connection reset by peer on the manifest requestNetwork, firewall or proxy between you and ollama.comSteps 2 to 4; try another network to confirm
Pulls fail only behind a corporate networkProxy not set for the server, or its certificate not trustedHTTPS_PROXY plus system certificate
Downloads crawl inside WSL2 on Windows 10Known WSL2 networking slowdownDisable Large Send Offload (below)
hf.co/... model downloads to 100%, then context deadline exceededOpen issue #17484 with Hugging Face pullsSee below
Docker container can't pull but the host canProxy not passed into the containerdocker run -e HTTPS_PROXY=https://proxy.example.com ...

Slow downloads in WSL2 (Windows 10)

Ollama's FAQ: open Control Panel → Networking and Internet → View network status and tasks → Change adapter settings, right-click vEthernet (WSL) → Properties → Configure → Advanced, and disable Large Send Offload Version 2 (IPv4) and (IPv6).

Hugging Face (hf.co) pulls that fail at the end

Issue #17484 (open as of 29 Nov 2026) reports ollama run hf.co/... downloading every layer and then failing with context deadline exceeded. Until it is fixed, one documented route avoids the pull entirely: download the .gguf file yourself and import it.

# Modelfile
FROM /path/to/model.gguf
ollama create my-model -f Modelfile

Ollama does not quantize GGUF files on import, so download the quantization you want. If you work with partly downloaded files, OLLAMA_NOPRUNE=1 stops the server from pruning model blobs on startup.

Timeouts while loading, not downloading

If the log shows the model load stalling rather than a download, the relevant setting is OLLAMA_LOAD_TIMEOUT: how long a model load may stall before Ollama gives up (default 5 minutes).

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

What does 'context deadline exceeded' mean in Ollama?

It is Go's standard error for an operation whose deadline passed. In Ollama it usually appears when a network request during a pull times out; the server log shows which request.

Should I set HTTP_PROXY or HTTPS_PROXY for Ollama?

HTTPS_PROXY. Ollama's FAQ says it pulls only over HTTPS and that setting HTTP_PROXY may interrupt client connections to the server.

Where are Ollama's logs?

macOS: ~/.ollama/logs/server.log. Linux with systemd: journalctl -u ollama. Windows: %LOCALAPPDATA%\Ollama\server.log. Docker: docker logs <container>.

Can I add a model to Ollama without ollama pull?

Yes. Download a GGUF file, create a Modelfile with FROM /path/to/file.gguf, and run ollama create <name> -f Modelfile.

Related errors

Sources

Read 29 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools