Quick fix
# One-liner: start the server (background) + verify the API
nohup ollama serve >/tmp/ollama.log 2>&1 & sleep 3 && curl -s http://127.0.0.1:11434/api/version
A {"version":"0.33.2"} response means the server is ready.
What you will run into
After installing ollama, ollama --version / ollama list print Warning: could not connect to a running Ollama instance; you think the install is broken or the service is down.
Actually this just means the server isn't running — ollama is a client + server in one; model operations need the server up (ollama serve, default 127.0.0.1:11434).
Why this happens
The ollama command connects to the local 11434 service by default; when the server isn't running, commands still print the version but append Warning: could not connect to a running Ollama instance.
You need ollama serve to bring the server up (measured shape: Listening on 127.0.0.1:11434 (version 0.33.2)).
ollama is a "thin client + separate server" architecture: the command is only a client; actual inference and pulls are handled by the ollama serve process (listening on 127.0.0.1:11434).
When the client cannot connect, the CLI does not treat "cannot connect" as a fatal error — it downgrades to a warning and still prints version info. That design choice is exactly why "the version prints but the server is not running" is a trap.
Deterministic takeaway: Warning: could not connect to a running Ollama instance next to ollama --version or ollama list means the server is not up — first check pgrep -f "ollama serve" or start it with ollama serve;
in WSL/systemd environments the server must be a background process — do not serve in an interactive terminal and then exit; when connection fails, check "is the server process running" first, not the command itself.
Step by step
1. First tell a warning from an error — Required
ollama --version
Version prints + a Warning attached → client fine, server not started; go to the next step.
2. Start the server — Required
ollama serve
Run in the foreground (measured log shape: server config normal, Listening on 127.0.0.1:11434 (version 0.33.2)). The model directory can be set with OLLAMA_MODELS (default ~/.ollama/models; point it at a big partition).
3. For background running — Required
nohup ollama serve >/tmp/ollama.log 2>&1 &
Logs go to /tmp/ollama.log; check there for later troubleshooting.
4. Verify the API and commands — Required
curl -s http://127.0.0.1:11434/api/version && ollama list
API returns the version + ollama list works (empty table exit 0) means success (measured).
How to confirm it works
curl -s http://127.0.0.1:11434/api/version
A {"version":"0.33.2"} response means the server is ready. Measured output shape: Listening on 127.0.0.1:11434 (version 0.33.2); ollama list empty table exit 0.
Other environments
| Environment | Notes | |||
|---|---|---|---|---|
| Server not started | Commands attach the Warning; ollama serve brings it up (measured shape) | |||
| Background | nohup + log file; verify via /api/version | |||
| OLLAMA_MODELS | Model dir env var; point at a big partition (per the guide) | |||
| OLLAMA_HOST | After changing listen addr/port, commands and clients must point at the same place; to serve externally use OLLAMA_HOST=0.0.0.0:11434 (default binds 127.0.0.1 only, LAN/external can't reach); older releases had a localhost-only regression (ollama#12053), fixed by upgrading (0.33.2 locally did not reproduce it; mechanism noted per official) | OLLAMA_HOST | After changing listen addr/port, commands and clients must point at the same place (not measured) | |
| Port occupied | serve errors if 11434 is taken; check occupancy first (not measured) |
Symptom
ollama --version / ollama list print Warning: could not connect to a running Ollama instance; model operations unavailable.
Cause
The ollama command is client + server in one: when the server (ollama serve, default 127.0.0.1:11434) isn't running, commands still print the version but warn about no running instance.
Solution
- Start the server with
ollama serve(foreground or nohup background). - Verify with
curl -s http://127.0.0.1:11434/api/version. - Confirm the command surface with
ollama list.
Verification Evidence
- Measured (2026-08-29, WSL Ubuntu, ollama 0.33.2):
ollama servestartup logs normal (ssh key generation, blobs: 0, Listening on 127.0.0.1:11434 (version 0.33.2));/api/versionreturned{"version":"0.33.2"};ollama listempty table exit 0 (local repro log,).
Related canonicals
Read in order: precondition -> same root / same domain / related:
- Same domain:
- ollama pull hangs/times out (same domain: download chain)
- Related (similar errors, different cause):
- Open WebUI shows "cannot connect to Ollama" (troubleshooting when the WebUI can't reach the ollama server)
Applicable tools (1)
This problem is linked from the tool pages below — reachable from either side.
ollamaBundled solutions (combos)
This problem is part of the following verified bundles.
Source & evidence
← Local LLM domain | Problem Catalog Experience | Facing another issue? Go to the Helpdesk