[GH-ISSUE #5795] Windows: could not connect to ollama app, is it running? #29372

Closed
opened 2026-04-22 08:10:37 -05:00 by GiteaMirror · 12 comments
Owner

Originally created by @NasonZ on GitHub (Jul 19, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5795

What is the issue?

Logged on to my machine today to find ollama has stopped working.

There's been no changes I can think of between when it was working 12 hours ago and now.

I've tried uninstalling and reinstalling llama but this didn't help.

>ollama --version
Warning: could not connect to a running Ollama instance
Warning: client version is 0.2.7

>ollama list
Error: could not connect to ollama app, is it running?

App logs:
app.log

OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

0.2.7

Originally created by @NasonZ on GitHub (Jul 19, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5795 ### What is the issue? Logged on to my machine today to find ollama has stopped working. There's been no changes I can think of between when it was working 12 hours ago and now. I've tried uninstalling and reinstalling llama but this didn't help. ``` >ollama --version Warning: could not connect to a running Ollama instance Warning: client version is 0.2.7 >ollama list Error: could not connect to ollama app, is it running? ``` App logs: [app.log](https://github.com/user-attachments/files/16312415/app.log) ### OS Windows ### GPU Nvidia ### CPU AMD ### Ollama version 0.2.7
GiteaMirror added the bug label 2026-04-22 08:10:37 -05:00
Author
Owner

@rick-github commented on GitHub (Jul 19, 2024):

Do you have the server log (C:\Users\Nason\AppData\Local\Ollama\server.log)?

<!-- gh-comment-id:2239224343 --> @rick-github commented on GitHub (Jul 19, 2024): Do you have the server log (C:\Users\Nason\AppData\Local\Ollama\server.log)?
Author
Owner

@TorresIgnacio commented on GitHub (Jul 19, 2024):

I have the same problem, maybe this is a dumb question but has this something to do with the crowdstrike worldwide bug situation? Does ollama need to conect to a server in order to start the service locally?

<!-- gh-comment-id:2239253698 --> @TorresIgnacio commented on GitHub (Jul 19, 2024): I have the same problem, maybe this is a dumb question but has this something to do with the crowdstrike worldwide bug situation? Does ollama need to conect to a server in order to start the service locally?
Author
Owner

@rick-github commented on GitHub (Jul 19, 2024):

@TorresIgnacio No, it doesn't need to connect to a server. But if your windows stack is messed up, who knows what else breaks.

<!-- gh-comment-id:2239259758 --> @rick-github commented on GitHub (Jul 19, 2024): @TorresIgnacio No, it doesn't need to connect to a server. But if your windows stack is messed up, who knows what else breaks.
Author
Owner

@NasonZ commented on GitHub (Jul 19, 2024):

Do you have the server log (C:\Users\Nason\AppData\Local\Ollama\server.log)?

Error: listen tcp 127.0.0.1:11434: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

<!-- gh-comment-id:2239267932 --> @NasonZ commented on GitHub (Jul 19, 2024): > Do you have the server log (C:\Users\Nason\AppData\Local\Ollama\server.log)? Error: listen tcp 127.0.0.1:11434: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Author
Owner

@rick-github commented on GitHub (Jul 19, 2024):

Sounds like a firewall or anti-virus problem. You may need to change settings on whatever is blocking the port.

<!-- gh-comment-id:2239289040 --> @rick-github commented on GitHub (Jul 19, 2024): Sounds like a firewall or anti-virus problem. You may need to change settings on whatever is blocking the port.
Author
Owner

@NasonZ commented on GitHub (Jul 19, 2024):

Sounds like a firewall or anti-virus problem. You may need to change settings on whatever is blocking the port.

C:\Users\Nason>netstat -aon | findstr :11434
  TCP    192.168.0.14:11434     188.xxx.198.xxx:xxxx ESTABLISHED     4808

C:\Users\Nason>tasklist /FI "PID eq 4808"

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
TeamViewer_Service.exe        4808 Services                   0     20,284 K

C:\Users\Nason>net stop TeamViewer
The TeamViewer service is stopping..
The TeamViewer service was stopped successfully.


C:\Users\Nason>ollama list
NAME    ID      SIZE    MODIFIED

Thanks for the heads up, teamviewer highjacked the port. No idea why as I've had both team viewer and ollama on this PC for months without issue.

<!-- gh-comment-id:2239525601 --> @NasonZ commented on GitHub (Jul 19, 2024): > Sounds like a firewall or anti-virus problem. You may need to change settings on whatever is blocking the port. ``` C:\Users\Nason>netstat -aon | findstr :11434 TCP 192.168.0.14:11434 188.xxx.198.xxx:xxxx ESTABLISHED 4808 C:\Users\Nason>tasklist /FI "PID eq 4808" Image Name PID Session Name Session# Mem Usage ========================= ======== ================ =========== ============ TeamViewer_Service.exe 4808 Services 0 20,284 K C:\Users\Nason>net stop TeamViewer The TeamViewer service is stopping.. The TeamViewer service was stopped successfully. C:\Users\Nason>ollama list NAME ID SIZE MODIFIED ``` Thanks for the heads up, teamviewer highjacked the port. No idea why as I've had both team viewer and ollama on this PC for months without issue.
Author
Owner

@gokulcoder7 commented on GitHub (Nov 16, 2024):

Error: unable to initialize llm runners unable to locate runners in any search path [C:\Users\Sushant\AppData\Local\Programs\Ollama C:\Users\Sushant\AppData\Local\Programs\Ollama\windows-amd64 C:\Users\Sushant\AppData\Local\Programs\Ollama\dist\windows-amd64 C:\Users\Sushant\AppData\Local\Programs\Ollama C:\Users\Sushant\AppData\Local\Programs\Ollama\windows-amd64 C:\Users\Sushant\AppData\Local\Programs\Ollama\dist\windows-amd64 C:\Windows\System32 C:\Windows\System32\windows-amd64 C:\Windows\System32\dist\windows-amd64]
please help

<!-- gh-comment-id:2480325910 --> @gokulcoder7 commented on GitHub (Nov 16, 2024): Error: unable to initialize llm runners unable to locate runners in any search path [C:\Users\Sushant\AppData\Local\Programs\Ollama C:\Users\Sushant\AppData\Local\Programs\Ollama\windows-amd64 C:\Users\Sushant\AppData\Local\Programs\Ollama\dist\windows-amd64 C:\Users\Sushant\AppData\Local\Programs\Ollama C:\Users\Sushant\AppData\Local\Programs\Ollama\windows-amd64 C:\Users\Sushant\AppData\Local\Programs\Ollama\dist\windows-amd64 C:\Windows\System32 C:\Windows\System32\windows-amd64 C:\Windows\System32\dist\windows-amd64] please help
Author
Owner

@rick-github commented on GitHub (Nov 16, 2024):

@gokulcoder7 Open a new issue and include server logs.

<!-- gh-comment-id:2480340576 --> @rick-github commented on GitHub (Nov 16, 2024): @gokulcoder7 Open a new issue and include [server logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues).
Author
Owner

@gokulcoder7 commented on GitHub (Nov 16, 2024):

Yes I have opened new issue : https://github.com/ollama/ollama/issues/7697

<!-- gh-comment-id:2480394933 --> @gokulcoder7 commented on GitHub (Nov 16, 2024): Yes I have opened new issue : https://github.com/ollama/ollama/issues/7697
Author
Owner

@gokulcoder7 commented on GitHub (Nov 16, 2024):

https://github.com/ollama/ollama/issues/7697#issuecomment-2480396030

<!-- gh-comment-id:2480396626 --> @gokulcoder7 commented on GitHub (Nov 16, 2024): https://github.com/ollama/ollama/issues/7697#issuecomment-2480396030
Author
Owner

@gokulcoder7 commented on GitHub (Nov 16, 2024):

server-2.log
server-3.log
server-4.log
server-5.log
server.log
server-1.log

<!-- gh-comment-id:2480396807 --> @gokulcoder7 commented on GitHub (Nov 16, 2024): [server-2.log](https://github.com/user-attachments/files/17783492/server-2.log) [server-3.log](https://github.com/user-attachments/files/17783493/server-3.log) [server-4.log](https://github.com/user-attachments/files/17783494/server-4.log) [server-5.log](https://github.com/user-attachments/files/17783495/server-5.log) [server.log](https://github.com/user-attachments/files/17783496/server.log) [server-1.log](https://github.com/user-attachments/files/17783497/server-1.log)
Author
Owner

@gokulcoder7 commented on GitHub (Nov 16, 2024):

@rick-github please help me

<!-- gh-comment-id:2480398466 --> @gokulcoder7 commented on GitHub (Nov 16, 2024): @rick-github please help me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29372