[GH-ISSUE #11742] Error: "dial tcp 127.0.0.1:11434: connectex: connection refused" after closing chat session during model pull #33538

Open
opened 2026-04-22 16:21:55 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @muhammad-fiaz on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11742

What is the issue?

I was pulling a large model (e.g., qwen3-coder) using ollama pull and also had the Ollama Chat GUI open and actively using it with other predownloaded models.

While the model was still downloading, I closed the Chat GUI window.

Immediately after closing the GUI, the ongoing model pull was terminated, and I got the following error:

Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connectex: No connection could be made because the target machine actively refused it.

When I tried to download the same model again, the download started from scratch, even though several GBs had already been downloaded.


Expected Behavior:

  • The model pull should continue in the background even if the Chat GUI is closed.
  • If interrupted, the download should resume from the last completed chunk, not start over.

Actual Behavior:

  • Closing the Ollama Chat GUI window during an active pull completely terminates the process.
  • Download progress is lost, and rerunning the command starts the pull from 0%.

Relevant log output

PS C:\Users\name> ollama run qwen3-coder
pulling manifest
pulling 1194192cf2a1:  33% ▕███████████████████                                       ▏ 6.2 GB/ 18 GB  3.8 MB/s  54m57s
Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connectex: No connection could be made because the target machine actively refused it.
PS C:\Users\name> ollama run qwen3-coder
pulling manifest
pulling 1194192cf2a1:   8% ▕████                                                      ▏ 1.5 GB/ 18 GB  3.6 MB/s   1h19m

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

ollama version is 0.11.2

Originally created by @muhammad-fiaz on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11742 ### What is the issue? I was pulling a large model (e.g., `qwen3-coder`) using `ollama pull` and also had the **Ollama Chat GUI open and actively using it with other predownloaded models**. While the model was still downloading, I closed the Chat GUI window. **Immediately after closing the GUI, the ongoing model pull was terminated**, and I got the following error: ``` Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connectex: No connection could be made because the target machine actively refused it. ``` When I tried to download the same model again, the download started **from scratch**, even though several GBs had already been downloaded. --- ✅ **Expected Behavior:** * The model pull should continue in the background even if the Chat GUI is closed. * If interrupted, the download should **resume from the last completed chunk**, not start over. ❌ **Actual Behavior:** * Closing the Ollama Chat GUI window during an active pull completely terminates the process. * Download progress is lost, and rerunning the command starts the pull from 0%. ### Relevant log output ```shell PS C:\Users\name> ollama run qwen3-coder pulling manifest pulling 1194192cf2a1: 33% ▕███████████████████ ▏ 6.2 GB/ 18 GB 3.8 MB/s 54m57s Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connectex: No connection could be made because the target machine actively refused it. PS C:\Users\name> ollama run qwen3-coder pulling manifest pulling 1194192cf2a1: 8% ▕████ ▏ 1.5 GB/ 18 GB 3.6 MB/s 1h19m ``` ### OS Windows ### GPU Nvidia ### CPU Intel ### Ollama version ollama version is 0.11.2
GiteaMirror added the appbug labels 2026-04-22 16:21:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33538