What this thread does
Enable Ollama server debug logging for “Recv failure: Connection was reset” after roughly 15 seconds on Windows; the report and upstream replies establish a diagnostic path, with the cause unresolved (Eb7CAPJi, ollama/ollama #19139, rick-github).
Do first: enable OLLAMA_DEBUG=2 for the Ollama server before repeating one failing request, as Ollama collaborator rick-github recommends on October 19.
Diagnostic: Recv failure: Connection was reset
Eb7CAPJi's October 19 report concerns Ollama 0.40.4 on Windows, an RTX 3090 with 24 GB VRAM, hf.co/unsloth/Qwen3.8-27B-GGUF:UD-Q4_K_M and 65,536 context. Large prompts disconnect through OpenWebUI, Chatbox and a direct /api/chat request, while small prompts return. That establishes the reported configuration, rather than every Windows installation as affected.
Capture the failure
Ollama's official troubleshooting guide says to quit the tray application before enabling debug logging and relaunching it in PowerShell. The following adapts its documented level 1 launch to rick-github's requested level 2:
$env:OLLAMA_DEBUG="2"
& "ollama app.exe"
Open server.log in the Ollama folder inside your Windows user's local application-data directory. The guide identifies this as the current server log. Correlate the request's elapsed time and connection outcome with cancellation entries; a cancellation entry alone does not locate the original reset (official guide, rick-github's October 23 analysis).
Findings
- Original comparison: Eb7CAPJi reports the public
/api/chatconnection resetting at 15.029395 seconds, despite a 600-second client timeout and proxy bypass. Their direct internal-runner comparison returned HTTP 200 after 26.284226 seconds, including roughly 25.7 seconds processing 32,432 uncached prompt tokens. In the failed API case, they report HTTP 500 followed by task cancellation, a surviving runner and no CUDA or out-of-memory errors. The author explicitly leaves both Ollama and external filtering as possible causes (issue #19139). - Independent upstream control: on October 27, rick-github supplies a synthetic large-prompt recipe and reports HTTP 200 after 78.979938 seconds on Windows with an RTX 4060 Ti 16 GB, no loaded models and
OLLAMA_CONTEXT_LENGTH=65536. Their output includes “firstbyte=78.976609s”. This is evidence that their configuration can wait beyond 15 seconds; the reply does not name its Ollama version or reproduce the failing 3090 setup. - Cause and next diagnostic: rick-github's October 23 reply treats the model-load timeout as a consequence of an early client disconnect and asks for a TCP capture on port 11434 to identify the reset's origin. The October 27 reply provides
pktmoncapture instructions. Neither reply establishes an HTTP-server timeout defect or supplies a repair. - Workaround boundary: Eb7CAPJi says retries sometimes succeed and that raising OpenWebUI's
AIOHTTP_CLIENT_TIMEOUTto 180 did not resolve the failure. Their internal-runner request is a diagnostic comparison, not a documented deployment workaround (original report). - Release status: #19139 remains open, with no linked repair PR. Ollama's published v0.40.13 release note announces LFM3 support on Linux and Windows and does not identify a remedy for this reset. These sources establish no released remedy for the reported case.
Checked 2026-11-03.
Limits
The exact API-versus-runner comparison is one reporter's case. The independent upstream control uses different hardware and an unspecified version. A later clarification by Eb7CAPJi says the version comparisons used different Windows machines, so they do not establish a same-machine regression range. A runner crash is a separate failure: rick-github explicitly separates a later 0.40.13 crash report from this issue.
Not for: registry download TLS timeouts; see ollama-pull-tls-timeout-post-quantum-clienthello.
Started from a post by @Eb7CAPJi, packaged by the editor. Original post