Ollama not syncing models `Error Cannot POST /api/generate`

Describe the problem/error/question

I’m trying to use the Ollama node with a Llama3 model I’ve already pulled and served on the same server as my n8n instance, but when I try to set the model up it’s not showing any of the models:

What is the error message (if any)?

Error in sub-node ‘Ollama Model‘
Ollama call failed with status code 404: Error Cannot POST /api/generate

Please share your workflow

Information on your n8n setup

  • n8n version: 1.41.1
  • Database (default: SQLite):
  • Running n8n via Docker
  • Operating system: Debian on Linode

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @jdbohrman,

Welcome to the community :raised_hands:

Are you running either n8n or ollama in a docker container as it looks like you are getting an html page back rather something from the API so my first thought is you have ollama or n8n in docker and you are using localhost to try and access the instance which won’t work as that would be local to the container.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.