[GH-ISSUE #4042] Unable to pull model #64544

Open
opened 2026-05-03 18:03:23 -05:00 by GiteaMirror · 14 comments
Owner

Originally created by @353167931 on GitHub (Apr 30, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4042

What is the issue?

PS C:\WINDOWS\system32> ollama run llama3
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/llama3/manifests/latest": read tcp 10.204.34.68:61116->104.21.75.227:443: wsarecv: An existing connection was forcibly closed by the remote host.

OS

Windows

GPU

Intel

CPU

Intel, AMD

Ollama version

0.1.27

Originally created by @353167931 on GitHub (Apr 30, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4042 ### What is the issue? PS C:\WINDOWS\system32> ollama run llama3 pulling manifest Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/llama3/manifests/latest": read tcp 10.204.34.68:61116->104.21.75.227:443: wsarecv: An existing connection was forcibly closed by the remote host. ### OS Windows ### GPU Intel ### CPU Intel, AMD ### Ollama version 0.1.27
GiteaMirror added the networkingbug labels 2026-05-03 18:03:23 -05:00
Author
Owner

@353167931 commented on GitHub (Apr 30, 2024):

I encountered an error when installing both 0.1.27 and 0.1.33 that prevented me from pulling the model, but the other computers were functioning properly.

<!-- gh-comment-id:2084667634 --> @353167931 commented on GitHub (Apr 30, 2024): I encountered an error when installing both 0.1.27 and 0.1.33 that prevented me from pulling the model, but the other computers were functioning properly.
Author
Owner

@gioco77 commented on GitHub (Apr 30, 2024):

Same issue on windows

<!-- gh-comment-id:2084724018 --> @gioco77 commented on GitHub (Apr 30, 2024): Same issue on windows
Author
Owner

@353167931 commented on GitHub (Apr 30, 2024):

来件已收悉,谢谢!

<!-- gh-comment-id:2084724900 --> @353167931 commented on GitHub (Apr 30, 2024): 来件已收悉,谢谢!
Author
Owner

@pdevine commented on GitHub (Apr 30, 2024):

@353167931 Can you double check:

  1. the system clock is set correctly on the machine; and
  2. that you're up-to-date with system updates

I think this is an error with Windows having issues w/ TLS being misconfigured in some way. Either the certs haven't been refreshed, or the clock skew is large enough that the handshake doesn't happen.

<!-- gh-comment-id:2085329381 --> @pdevine commented on GitHub (Apr 30, 2024): @353167931 Can you double check: 1. the system clock is set correctly on the machine; and 2. that you're up-to-date with system updates I *think* this is an error with Windows having issues w/ TLS being misconfigured in some way. Either the certs haven't been refreshed, or the clock skew is large enough that the handshake doesn't happen.
Author
Owner

@cdsartor commented on GitHub (Jul 6, 2024):

ENABLING TCP/IPV6 MAY RESOLVE THE ISSUE

<!-- gh-comment-id:2211781543 --> @cdsartor commented on GitHub (Jul 6, 2024): ENABLING TCP/IPV6 MAY RESOLVE THE ISSUE
Author
Owner

@353167931 commented on GitHub (Jul 6, 2024):

来件已收悉,谢谢!

<!-- gh-comment-id:2211781670 --> @353167931 commented on GitHub (Jul 6, 2024): 来件已收悉,谢谢!
Author
Owner

@springsuu commented on GitHub (Aug 3, 2024):

thanks ,but still not resolved。
I looked into the above possibilities....but still not resolved

<!-- gh-comment-id:2266740875 --> @springsuu commented on GitHub (Aug 3, 2024): thanks ,but still not resolved。 I looked into the above possibilities....but still not resolved
Author
Owner

@353167931 commented on GitHub (Aug 3, 2024):

来件已收悉,谢谢!

<!-- gh-comment-id:2266741145 --> @353167931 commented on GitHub (Aug 3, 2024): 来件已收悉,谢谢!
Author
Owner

@pdevine commented on GitHub (Sep 10, 2024):

@springsuu what version of Windows are you running? Are you up-to-date with patches?

<!-- gh-comment-id:2339360659 --> @pdevine commented on GitHub (Sep 10, 2024): @springsuu what version of Windows are you running? Are you up-to-date with patches?
Author
Owner

@353167931 commented on GitHub (Sep 10, 2024):

来件已收悉,谢谢!

<!-- gh-comment-id:2339361201 --> @353167931 commented on GitHub (Sep 10, 2024): 来件已收悉,谢谢!
Author
Owner

@JV-X commented on GitHub (Jan 3, 2025):

Similar errors

error log:

D:\ChromeDownload\HuatuoGPT-o1-7B>ollama run hf.co/mradermacher/HuatuoGPT-o1-7B-GGUF:IQ4_XS
pulling manifest
pulling 55952604bfa2... 100% ▕████████████████████████████████████████████████████████▏ 4.3 GB
pulling e94a8ecb9327...   0% ▕                                                        ▏    0 B/1.6 KB
Error: max retries exceeded: Get "https://huggingface.co/v2/mradermacher/HuatuoGPT-o1-7B-GGUF/blobs/sha256:e94a8ecb9327ded799604a2e478659bc759230fe316c50d686358f932f52776c?__sign=eyJhbGciOiJFZERTQSJ9.eyJyZWFkIjp0cnVlLCJwZXJtaXNzaW9ucyI6eyJyZXBvLmNvbnRlbnQucmVhZCI6dHJ1ZX0sImlhdCI6MTczNTg4Mjk4MCwic3ViIjoiL21yYWRlcm1hY2hlci9IdWF0dW9HUFQtbzEtN0ItR0dVRiIsImV4cCI6MTczNTg4MzU4MCwiaXNzIjoiaHR0cHM6Ly9odWdnaW5nZmFjZS5jbyJ9.T55YaO-5-KUl5WXbQIwt-dJw-o4A4d_f_6PNq0NCfgcC6cmp8Fre0AgoK7PAuZmoOYhQswzaJ8e4OnHcLgMdCg": read tcp 192.168.1.159:52232->18.164.174.17:443: wsarecv: An existing connection was forcibly closed by the remote host.

I tried to open the download link of this file with a browser, and the browser was able to download the file, but when I tried to put the file downloaded by the browser into the .ollama\models\blobs path to skip the download step, I failed, and ollama still tried to download the file

OS
windows 11

GPU
4090D

CPU
i9-14900KF

Ollama version
0.4.7
<!-- gh-comment-id:2568722682 --> @JV-X commented on GitHub (Jan 3, 2025): Similar errors error log: ``` D:\ChromeDownload\HuatuoGPT-o1-7B>ollama run hf.co/mradermacher/HuatuoGPT-o1-7B-GGUF:IQ4_XS pulling manifest pulling 55952604bfa2... 100% ▕████████████████████████████████████████████████████████▏ 4.3 GB pulling e94a8ecb9327... 0% ▕ ▏ 0 B/1.6 KB Error: max retries exceeded: Get "https://huggingface.co/v2/mradermacher/HuatuoGPT-o1-7B-GGUF/blobs/sha256:e94a8ecb9327ded799604a2e478659bc759230fe316c50d686358f932f52776c?__sign=eyJhbGciOiJFZERTQSJ9.eyJyZWFkIjp0cnVlLCJwZXJtaXNzaW9ucyI6eyJyZXBvLmNvbnRlbnQucmVhZCI6dHJ1ZX0sImlhdCI6MTczNTg4Mjk4MCwic3ViIjoiL21yYWRlcm1hY2hlci9IdWF0dW9HUFQtbzEtN0ItR0dVRiIsImV4cCI6MTczNTg4MzU4MCwiaXNzIjoiaHR0cHM6Ly9odWdnaW5nZmFjZS5jbyJ9.T55YaO-5-KUl5WXbQIwt-dJw-o4A4d_f_6PNq0NCfgcC6cmp8Fre0AgoK7PAuZmoOYhQswzaJ8e4OnHcLgMdCg": read tcp 192.168.1.159:52232->18.164.174.17:443: wsarecv: An existing connection was forcibly closed by the remote host. ``` I tried to open the download link of this file with a browser, and the browser was able to download the file, but when I tried to put the file downloaded by the browser into the `.ollama\models\blobs` path to skip the download step, I failed, and ollama still tried to download the file ``` OS windows 11 GPU 4090D CPU i9-14900KF Ollama version 0.4.7 ```
Author
Owner

@353167931 commented on GitHub (Jan 3, 2025):

来件已收悉,谢谢!

<!-- gh-comment-id:2568723056 --> @353167931 commented on GitHub (Jan 3, 2025): 来件已收悉,谢谢!
Author
Owner

@Skizzy-create commented on GitHub (Jan 31, 2025):

This will give you the exact script, just run it: GitHub Issue Comment.

For Windows:

while ($true) {
    Write-Host "Attempting to download model..."
    $process = Start-Process -FilePath "ollama" -ArgumentList "pull deepseek-r1" -PassThru -NoNewWindow
    try {
        $process | Wait-Process -Timeout 10 -ErrorAction Stop
        if ($process.ExitCode -eq 0) {
            Write-Host "Model downloaded successfully!"
            break
        } else {
            Write-Host "Download failed (Exit code: $($process.ExitCode)). Retrying..."
        }
    } catch {
        Write-Host "Timeout occurred, restarting download..."
        $process | Stop-Process -Force -ErrorAction SilentlyContinue
    }
    Start-Sleep -Seconds 2
}

For Linux/mac:

#!/bin/bash

while true; do
    echo "Attempting to download model..."
    ollama pull deepseek-r1 &
    process_pid=$!
    sleep 10

    if wait $process_pid; then
        echo "Model downloaded successfully!"
        break
    else
        echo "Download failed. Retrying..."
        kill -9 $process_pid 2>/dev/null
    fi

    sleep 2
done
<!-- gh-comment-id:2627412792 --> @Skizzy-create commented on GitHub (Jan 31, 2025): This will give you the exact script, just run it: [GitHub Issue Comment](https://github.com/ollama/ollama/issues/8652). ### For Windows: ```powershell while ($true) { Write-Host "Attempting to download model..." $process = Start-Process -FilePath "ollama" -ArgumentList "pull deepseek-r1" -PassThru -NoNewWindow try { $process | Wait-Process -Timeout 10 -ErrorAction Stop if ($process.ExitCode -eq 0) { Write-Host "Model downloaded successfully!" break } else { Write-Host "Download failed (Exit code: $($process.ExitCode)). Retrying..." } } catch { Write-Host "Timeout occurred, restarting download..." $process | Stop-Process -Force -ErrorAction SilentlyContinue } Start-Sleep -Seconds 2 } ``` ### For Linux/mac: ```bash #!/bin/bash while true; do echo "Attempting to download model..." ollama pull deepseek-r1 & process_pid=$! sleep 10 if wait $process_pid; then echo "Model downloaded successfully!" break else echo "Download failed. Retrying..." kill -9 $process_pid 2>/dev/null fi sleep 2 done ```
Author
Owner

@353167931 commented on GitHub (Jan 31, 2025):

来件已收悉,谢谢!

<!-- gh-comment-id:2627414189 --> @353167931 commented on GitHub (Jan 31, 2025): 来件已收悉,谢谢!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#64544