ThinkFacility

Error messages

Error: could not connect to ollama server, run 'ollama serve' to start it

The message

Error: could not connect to ollama server, run 'ollama serve' to start it
Ollama 0.34.4 read September 26, 2026Ollamalocal models

What it means

The ollama command is only a client. It knocked on the server's address (127.0.0.1:11434 unless OLLAMA_HOST says otherwise), nothing answered, and it couldn't start one for you.

What to do

Start the server: sudo systemctl start ollama on a Linux install, the Ollama app on macOS or Windows, or ollama serve in another terminal. If it's already running, check that OLLAMA_HOST and any proxy settings in the client's shell point at it.

You type ollama run or ollama pull and get this straight back:

Error: could not connect to ollama server, run 'ollama serve' to start it

Ollama is two programs in one binary. ollama serve is the server that loads models and does the work, and every other ollama command is a client that talks to it over HTTP, at 127.0.0.1 port 11434 unless the OLLAMA_HOST variable says otherwise. Before running a command, the client checks the server is there. We read that check in Ollama 0.34.4: if the connection is refused, the client tries to start the server, and this line is what it prints when it can't.

The wording changed twice

Most search results and old issues quote a different line. We read the same function in older releases:

They all mean the same thing. As of September 26, 2026, 42 issues in the ollama/ollama repo quote the "ollama app" version and 84 contain "ollama server not responding".

Why it can't start the server for you

What happens next depends on the system. On Linux the client never tries: it prints the message at once. On macOS it starts Ollama.app only if the ollama command is a link into that app. A Homebrew or hand-built binary gets the message instead. On Windows it launches ollama app.exe and waits, so there you're more likely to see could not locate ollama app or timed out waiting for server to start.

What to do

On Linux with the standard install, the server runs as a systemd service. Ollama's Linux docs start it and check it with:

sudo systemctl start ollama
sudo systemctl status ollama

Without the service, run ollama serve in a second terminal and leave it open. On macOS or Windows, open the Ollama app, then try the command again.

If the server is running and you still get this, the client is looking in the wrong place. Check OLLAMA_HOST in the shell where you run ollama. It has to match where the server listens, and a server bound to another machine or port won't be found at the default address. A contributor put it simply in #2132: connection refused means nothing is listening on that address and port.

Proxies catch people out too. In #7697 (November 2024) the user had HTTP_PROXY pointing at a local proxy, and the proxy's own address was refusing connections. The collaborator's fix was to set NO_PROXY=127.0.0.1 in the client's environment and leave the server's proxy settings alone, since the server still needs its proxy to download models.

On Windows, the same collaborator hit this after an automatic upgrade from 0.3.14 to 0.4.2 left the install broken, and reinstalling from ollama.com fixed it.

Other lines the same feature prints

Match yours against these if the one at the top of the page is not quite it. They come from the same code and mean related things.

  • Error: could not connect to ollama app, is it running?
  • could not connect to ollama app, is it running?
  • Error: ollama server not responding - could not connect to ollama server, run 'ollama serve' to start it
  • ollama server not responding
  • could not connect to ollama server