8000 [Bug]: Creation of Ollama model being failed · Issue #11089 · mindsdb/mindsdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to c 8000 ontent
[Bug]: Creation of Ollama model being failed #11089
Open
@Zedoman

Description

@Zedoman

Short description of current behavior

When attempting to create an Ollama model using the deepseek-r1:1.5b model through MindsDB, the creation process fails with the following error:
[ollama_engine]: ConnectionError: HTTPConnectionPool(host='localhost', port=11434): Max retries exceeded with url: /api/tags (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffff978bf5b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

This occurs even when:

The Ollama service is confirmed to be running (ollama serve)

The model is available locally (ollama list shows deepseek-r1:1.5b)

Direct API access works (curl http://localhost:11434/api/tags returns valid response)

Below syntax I am using:
CREATE MODEL ollama_model
PREDICT target
USING
engine = 'ollama_engine',
model_name = 'deepseek-r1:1.5b';

Video or screenshots

Image

Expected behavior

The Ollama model should:

  1. Successfully connect to the local Ollama service

  2. Validate the specified model exists

  3. Create the model in MindsDB's model registry

How to reproduce the error

  1. First I am starting Ollama service:
    ollama serve

  2. In another terminal, I am verifying if the service is accessible service is accessible:
    curl http://localhost:11434/api/tags

  3. In MindsDB, create the ML engine [which is successfully getting created]:
    CREATE ML_ENGINE ollama_engine
    FROM ollama
    USING
    base_url = 'http://localhost:11434';

  4. When I am attempting to create the model:
    CREATE MODEL ollama_model
    PREDICT target
    USING
    engine = 'ollama_engine',
    model_name = 'deepseek-r1:1.5b';

  5. Observed the connection refused error despite Ollama running.

Anything else?

Service status: ollama serve shows active connections on port 11434

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0