[GH-ISSUE #14857] V0.18.0 ollama command could not connect to Ollama instance #71643

Open
opened 2026-05-05 02:16:19 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @blueinkgz on GitHub (Mar 15, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14857

What is the issue?

In Mac OSX 15.7 while start ollama instance and wait some time. In terminal type ollama --version. it will show: Warning: could not connect to a running Ollama instance. But in open-webui instance the connection is ok and work.

Image

server.log

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @blueinkgz on GitHub (Mar 15, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14857 ### What is the issue? In Mac OSX 15.7 while start ollama instance and wait some time. In terminal type ollama --version. it will show: Warning: could not connect to a running Ollama instance. But in open-webui instance the connection is ok and work. <img width="656" height="103" alt="Image" src="https://github.com/user-attachments/assets/5668df8b-4e48-4f79-adcf-465d35dd150f" /> [server.log](https://github.com/user-attachments/files/26001651/server.log) ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the macosbugneeds more info labels 2026-05-05 02:16:19 -05:00
Author
Owner

@pdevine commented on GitHub (Mar 16, 2026):

Ollama works as a client/server application, so you need to have the server running in order for it to work. Can you type:

% ps aux | grep "ollama serve"

That should show if your ollama server instance is running. I'm not sure where open webui would be connecting to unless you started ollama on a different port. One other thing you can try is typing:

% export | grep OLLAMA_HOST

which should show if you've somehow changed the host you're trying to connect to.

<!-- gh-comment-id:4070498630 --> @pdevine commented on GitHub (Mar 16, 2026): Ollama works as a client/server application, so you need to have the server running in order for it to work. Can you type: ``` % ps aux | grep "ollama serve" ``` That should show if your ollama server instance is running. I'm not sure where open webui would be connecting to unless you started ollama on a different port. One other thing you can try is typing: ``` % export | grep OLLAMA_HOST ``` which should show if you've somehow changed the host you're trying to connect to.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#71643