[GH-ISSUE #8773] Ubuntu 22 WSL fresh installation Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connect: connection refused #5696

Closed
opened 2026-04-12 16:59:27 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @HassanMalaabeh on GitHub (Feb 2, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8773

What is the issue?

When attempting to run Ollama on Ubuntu 22 on Windows WSL, it keeps show the below error:

useruser@useruser-pc:~$ ollama run deepseek-r1
pulling manifest
pulling 96c415656d37... 100% ▕████████████████████████████████████████████████████████▏ 4.7 GB
Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connect: connection refused
useruser@useruser-pc:~$ curl 127.0.0.1:11434
Ollama is running
useruser@useruser-pc:~$
useruser@useruser-pc:~$ ollama list
NAME    ID    SIZE    MODIFIED
Device name	useruser-pc
Processor	Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz   2.11 GHz
Installed RAM	16.0 GB (15.9 GB usable)
System type	64-bit operating system, x64-based processor

OS

Linux

GPU

No response

CPU

Intel

Ollama version

0.5.7

Originally created by @HassanMalaabeh on GitHub (Feb 2, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8773 ### What is the issue? When attempting to run Ollama on Ubuntu 22 on Windows WSL, it keeps show the below error: ``` useruser@useruser-pc:~$ ollama run deepseek-r1 pulling manifest pulling 96c415656d37... 100% ▕████████████████████████████████████████████████████████▏ 4.7 GB Error: Post "http://127.0.0.1:11434/api/show": dial tcp 127.0.0.1:11434: connect: connection refused useruser@useruser-pc:~$ curl 127.0.0.1:11434 Ollama is running useruser@useruser-pc:~$ useruser@useruser-pc:~$ ollama list NAME ID SIZE MODIFIED ``` ``` Device name useruser-pc Processor Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz 2.11 GHz Installed RAM 16.0 GB (15.9 GB usable) System type 64-bit operating system, x64-based processor ``` ### OS Linux ### GPU _No response_ ### CPU Intel ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-12 16:59:27 -05:00
Author
Owner

@rick-github commented on GitHub (Feb 2, 2025):

The server may have crashed and restarted. Server logs will show more.

<!-- gh-comment-id:2629438897 --> @rick-github commented on GitHub (Feb 2, 2025): The server may have crashed and restarted. [Server logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues) will show more.
Author
Owner

@bharat0to commented on GitHub (Feb 2, 2025):

I think I'm also facing a similar issue, Just downloaded the ollama and tried to run llama3.2 and got the dns error. Checked the domain and it is invalid

[GIN] 2025/02/02 - 21:25:38 | 200 | 24.923µs | 127.0.0.1 | HEAD "/"
[GIN] 2025/02/02 - 21:25:38 | 404 | 152.946µs | 127.0.0.1 | POST "/api/show"
time=2025-02-02T21:25:42.310+05:30 level=INFO source=download.go:175 msg="downloading dde5aa3fc5ff in 16 126 MB part(s)"
time=2025-02-02T21:25:43.546+05:30 level=INFO source=download.go:291 msg="dde5aa3fc5ff part 15 attempt 0 failed: Get "dde5aa3fc5/data": dial tcp: lookup dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com on 127.0.0.53:53: server misbehaving, retrying in 1s"

Is anyone able to pull any model?

<!-- gh-comment-id:2629461979 --> @bharat0to commented on GitHub (Feb 2, 2025): I think I'm also facing a similar issue, Just downloaded the ollama and tried to run llama3.2 and got the dns error. Checked the domain and it is invalid [GIN] 2025/02/02 - 21:25:38 | 200 | 24.923µs | 127.0.0.1 | HEAD "/" [GIN] 2025/02/02 - 21:25:38 | 404 | 152.946µs | 127.0.0.1 | POST "/api/show" time=2025-02-02T21:25:42.310+05:30 level=INFO source=download.go:175 msg="downloading dde5aa3fc5ff in 16 126 MB part(s)" time=2025-02-02T21:25:43.546+05:30 level=INFO source=download.go:291 msg="dde5aa3fc5ff part 15 attempt 0 failed: Get \"https://dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com/ollama/docker/registry/v2/blobs/sha256/dd/dde5aa3fc5ffc17176b5e8bdc82f587b24b2678c6c66101bf7da77af9f7ccdff/data?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=66040c77ac1b787c3af820529859349a%2F20250202%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20250202T155542Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=7212add8af7a3e43a8109d2afe615cb5b270ba18fbb9292a7052f40f94e7598c\": dial tcp: lookup dd20bb891979d25aebc8bec07b2b3bbc.r2.cloudflarestorage.com on 127.0.0.53:53: server misbehaving, retrying in 1s" Is anyone able to pull any model?
Author
Owner

@rick-github commented on GitHub (Feb 2, 2025):

This is likely a different issue. The Cloudfare CDN has been acting up for weeks. You can try changing your DNS server or running a script that keeps retrying the download.

<!-- gh-comment-id:2629463239 --> @rick-github commented on GitHub (Feb 2, 2025): This is likely a different issue. The Cloudfare CDN has been acting up for weeks. You can try [changing](https://github.com/ollama/ollama/issues/8632#issuecomment-2621168962) your DNS server or running a [script](https://github.com/ollama/ollama/issues/8687#issuecomment-2627397325) that keeps retrying the download.
Author
Owner

@bharat0to commented on GitHub (Feb 2, 2025):

Thanks @rick-github , chaning the dns started the download

<!-- gh-comment-id:2629466462 --> @bharat0to commented on GitHub (Feb 2, 2025): Thanks @rick-github , chaning the dns started the download
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5696