Skip to content
Trouble connecting ...
 
Notifications
Clear all

Trouble connecting to self-hosted Ollama

5 Posts
4 Users
0 Reactions
6 Views
Eric_Noel
(@eric_noel)
Posts: 2
New Member
Topic starter
 

Hi, as a beginner, I'm attempting to build a workflow that utilizes an AI agent node to connect with a self-hosted Ollama instance. My callin.io setup is running inside a Docker container, while Ollama is running directly on my Windows machine. Despite this, I'm encountering an "ECONNREFUSED" error when trying to access " http://localhost:11434 " as the base URL. Interestingly, I can ping this address successfully from the Docker container via the shell. Do you have any recommendations on how to resolve or troubleshoot this issue? Thanks!

 
Posted : 15/04/2024 6:55 pm
n8n
 n8n
(@n8n)
Posts: 97
Trusted Member
 

It appears your topic is missing some crucial details. Could you please provide the following information, if relevant?

  • callin.io version:
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app):
  • Operating system:
 
Posted : 15/04/2024 6:55 pm
netroy
(@netroy)
Posts: 5
Active Member
 

Hey Eric, welcome to the callin.io community

:heart_decoration:

When you run callin.io inside docker, it gets its own network, and localhost inside the container refers to the container itself, not the host (where you are running ollama).
You could try running ollama in docker as well, and then use http://ollama:11434 instead.

 
Posted : 18/04/2024 11:42 am
Eric_Noel
(@eric_noel)
Posts: 2
New Member
Topic starter
 

Thanks! I'm now one step further thanks to the advice. The http://ollama:11434 URL wasn't recognized, but I replaced it with the Docker IP address, and it worked perfectly. For anyone interested: Open your command prompt > type: docker ps > type: docker inspect [Container_ID] > find the "IPAddress" field.

 
Posted : 20/04/2024 11:06 am
system
(@system)
Posts: 332
Reputable Member
 

This thread was automatically closed 7 days following the last response. New replies are no longer permitted.

 
Posted : 27/04/2024 11:06 am
Share: