[GH-ISSUE #4055] wsarecv: An existing connection was forcibly closed by the remote host. #2518

Closed
opened 2026-04-12 12:50:38 -05:00 by GiteaMirror · 5 comments
Owner

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

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

The Error I am getting is:
Error: Post "http://127.0.0.1:11434/api/chat": read tcp 127.0.0.1:62078->127.0.0.1:11434: wsarecv: An existing connection was forcibly closed by the remote host.

I started ollama run llama2. At first one round of chat works fine. on next prompt or round I shown this error.
image

OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.1.29

Originally created by @AmeyKuradeAK on GitHub (Apr 30, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4055 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? The Error I am getting is: ```Error: Post "http://127.0.0.1:11434/api/chat": read tcp 127.0.0.1:62078->127.0.0.1:11434: wsarecv: An existing connection was forcibly closed by the remote host.``` I started `ollama run llama2`. At first one round of chat works fine. on next prompt or round I shown this error. ![image](https://github.com/ollama/ollama/assets/69680874/d2818d15-40cb-4d02-89ea-62932716f77f) ### OS Windows ### GPU Nvidia ### CPU Intel ### Ollama version 0.1.29
GiteaMirror added the bugnvidiawindows labels 2026-04-12 12:50:38 -05:00
Author
Owner

@dhiltgen commented on GitHub (May 1, 2024):

Can you share your server log?

https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md

<!-- gh-comment-id:2089103204 --> @dhiltgen commented on GitHub (May 1, 2024): Can you share your server log? https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md
Author
Owner

@dhiltgen commented on GitHub (May 21, 2024):

Please make sure to update to the latest version, and if you're still having problems, share the server log and I'll reopen.

<!-- gh-comment-id:2123125043 --> @dhiltgen commented on GitHub (May 21, 2024): Please make sure to update to the latest version, and if you're still having problems, share the server log and I'll reopen.
Author
Owner

@basakamars commented on GitHub (Mar 2, 2025):

my ollama version is 0.5.12 and OS is windows 11。
The Error I am getting is:
Error: POST predict: Post "http://127.0.0.1:65121/completion": read tcp 127.0.0.1:65131->127.0.0.1:65121: wsarecv: An existing connection was forcibly closed by the remote host.

<!-- gh-comment-id:2692608576 --> @basakamars commented on GitHub (Mar 2, 2025): my ollama version is 0.5.12 and OS is windows 11。 The Error I am getting is: Error: POST predict: Post "http://127.0.0.1:65121/completion": read tcp 127.0.0.1:65131->127.0.0.1:65121: wsarecv: An existing connection was forcibly closed by the remote host.
Author
Owner

@jessegross commented on GitHub (Mar 3, 2025):

@basakamars Please file a new bug and include the server logs as linked above.

<!-- gh-comment-id:2695093145 --> @jessegross commented on GitHub (Mar 3, 2025): @basakamars Please file a new bug and include the server logs as linked above.
Author
Owner

@graffido commented on GitHub (Apr 29, 2025):

+1 same issue

<!-- gh-comment-id:2837169903 --> @graffido commented on GitHub (Apr 29, 2025): +1 same issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#2518