[GH-ISSUE #11424] Error: ollama server not responding - could not connect to ollama server, run 'ollama serve' to start it #33302

Closed
opened 2026-04-22 15:51:05 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @doyoungim999 on GitHub (Jul 15, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11424

What is the issue?

Hello,
When I set up OLLAMA_HOST=115.x.x.x:11434, I got an error with "ollama list":
Error: ollama server not responding - could not connect to ollama server, run 'ollama serve' to start it

However when I set up OLLAMA_HOST=localhost:11434, I can run ollama list without any error.

I checked firewall, the firewall is ok with the port:
11434/tcp ALLOW Anywhere

#ollama --version
Warning: could not connect to a running Ollama instance
Warning: client version is 0.9.3

Relevant log output

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

OS

PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"

GPU

No response

CPU

No response

Ollama version

0.9.3

Originally created by @doyoungim999 on GitHub (Jul 15, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11424 ### What is the issue? Hello, When I set up OLLAMA_HOST=115.x.x.x:11434, I got an error with "ollama list": Error: ollama server not responding - could not connect to ollama server, run 'ollama serve' to start it However when I set up OLLAMA_HOST=localhost:11434, I can run ollama list without any error. I checked firewall, the firewall is ok with the port: 11434/tcp ALLOW Anywhere #ollama --version Warning: could not connect to a running Ollama instance Warning: client version is 0.9.3 ### Relevant log output ```shell Error: ollama server not responding - could not connect to ollama server, run 'ollama serve' to start it ``` ### OS PRETTY_NAME="Ubuntu 24.04.2 LTS" NAME="Ubuntu" VERSION_ID="24.04" VERSION="24.04.2 LTS (Noble Numbat)" ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.9.3
GiteaMirror added the bug label 2026-04-22 15:51:05 -05:00
Author
Owner

@doyoungim999 commented on GitHub (Jul 15, 2025):

I resolved by adding in /etc/systemd/system/ollama.service.

[Unit]
Description=Ollama Service
After=network-online.target

[Service]
ExecStart=/usr/local/bin/ollama serve
User=ollama
Group=ollama
Restart=always
RestartSec=3
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
Environment="OLLAMA_HOST=0.0.0.0"

[Install]
WantedBy=default.target

<!-- gh-comment-id:3071969676 --> @doyoungim999 commented on GitHub (Jul 15, 2025): I resolved by adding in /etc/systemd/system/ollama.service. [Unit] Description=Ollama Service After=network-online.target [Service] ExecStart=/usr/local/bin/ollama serve User=ollama Group=ollama Restart=always RestartSec=3 Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" Environment="OLLAMA_HOST=0.0.0.0" [Install] WantedBy=default.target
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#33302