I'm unable to add ollama I'm running 2026.2.1

When I try to add ollama with http://olama-server-ip:11434 I get Unexpected Error. There’s nothing in the supervisor logs. AI suggests installing ollama in a docker container. Is that really the only path forward? *** I am running ollama as a snap on an ubuntu machine. It turned out I needed to change the ollama host to allow remote access like this.

sudo snap stop ollama
sudo snap set ollama host=0.0.0.0:11434
sudo snap restart ollama

I can’t answer if that’s your only path because you’re basically telling me…I had an error huh?

What did yih try to do.
Exactly what happened. When did the error appear. Any logs. Etc? Need a LOT more to help.

Tbe ollama integration goes on your HA machine and connects to an ollama installation you have or have access to.

I tried to add the ollama integration. It asked for the hostname or ip address of my server. I entered http://server-ip:11434 and recieved the message “Unexpected error” if I enter server-ip:11434 I get invalid hostname or ip address. There’s nothing in the supervisor logs. If i try to contact the server from my main system using http://server-ip:11434 i get site cannot be reached. If I try http:127.0.0.1:11434 from the server i get ollama is running. I wish I’d though to do this
before I posted. Sounds like I need to allow remote access to ollama in it’s configuration. I’ll look into how to do that. If I manage I’ll mark this post complete.

1 Like

Have you got an ollama instance running? The intergration is only a way for HA to connect to your ollama server. It is not a way to run ollama. This will need to be setup somewhere. It will also need a powerful pc to run it on.

Your troubleshooting to date says you can’t get to ollama. Look forward to seeing the results!

The issues is resolved. I needed to change ```
sudo snap set ollama host=0.0.0.0:11434

1 Like

The issues is resolved. I needed to change ```
sudo snap set ollama host=0.0.0.0:11434 in the ollama server.

Hi, good that you got it solved!

Also: please take the time to mark the post that holds the answer.
You do that by selecting the three dots under the post:

image

Then select the check box:

image
By doing so:

  • this thread can be useful to other users as well (this thread comes up as solution when starting a thread which is similar to yours).
  • this prevents that someone else steps in trying to help

Thanks for giving back to the community! :+1: