AI Tools & Platforms

Ollama Integration Not Working? 6 Safe Checks

Ollama integration not working? First check where the client runs and which API it expects. A program on your computer normally reaches a local Ollama server at http://127.0.0.1:11434. A container, remote machine, or cloud workflow has a different view of localhost. Test the local server before changing models, opening firewall ports, or reinstalling anything.

Ollama Integration Not Working

Keep the exact error, client name, selected model, endpoint and timestamp. “Connection refused,” “model not found,” a timeout and an invalid response describe different stages. A working Ollama chat window also does not prove that another application uses the correct address or protocol.

Ollama integration not working: choose the failing stage

Result Investigate first Next test
Connection refused from the host Server process, listening address and port Request the local model list
Host test works; a container fails Container-to-server network path Test from the client’s environment
Model not found Model name and which server answered Compare the client model with the server’s list
404 or an unexpected response format API type and endpoint path Check native versus compatibility settings
Generation starts but times out Model loading, resources and client timeout Run one small request and read server logs
Address already in use when starting Ollama An existing listener Identify and reuse the intended server

Use the AI troubleshooting hub if the failure concerns answer quality rather than connecting or generating. This guide focuses on the integration boundary, not on proving whether a model’s answer is correct.

1. Confirm the endpoint and API type

Open the connector’s documentation and check whether its field expects a server address, an API base URL or a complete request endpoint. These are not interchangeable. A connector may append its own path, so adding the same suffix twice can produce a 404.

Ollama’s API introduction distinguishes the native local API under http://localhost:11434/api from the OpenAI-compatible local API under http://localhost:11434/v1. Choose the interface the connector actually supports; an “Ollama” provider option may handle the path itself.

  1. Record the existing connector setting before changing it.
  2. Confirm that you intend to use a local server rather than Ollama’s hosted service.
  3. Enter the base URL required by that connector’s current documentation.
  4. Inspect the final request URL in a redacted diagnostic log if it still fails.

Expected result: the client reaches the intended route and receives the expected type of response. An HTML login page or a website error page is a clue that the request reached a different service.

For a default local installation, do not replace localhost with truefixguides.com or another unrelated website. Our website is not your Ollama server. Likewise, a cloud automation platform cannot reach your laptop by using that platform’s own 127.0.0.1.

2. Test the existing local server before starting another

On the computer running Ollama, request its model list. The following read-only test does not generate text or download a model. It tests the default IPv4 loopback address; use your actual configured port if it differs.

In macOS or Linux Terminal:

curl http://127.0.0.1:11434/api/tags

In Windows PowerShell:

Invoke-RestMethod -Uri 'http://127.0.0.1:11434/api/tags'

The official model-list endpoint returns information about models available on that server. A successful response shows that the HTTP listener is reachable from this environment. It does not yet prove that a selected model can load or that another environment can reach it.

If the request fails, check the Ollama app or the service manager used by your installation. Do not assume it must always be started manually: an app or service may already manage its background process. If you intentionally run it from a terminal and no server is running, use the documented ollama serve command.

If starting another copy reports a port collision, stop launching more copies. Follow the macOS address-already-in-use guide or the Windows port-conflict guide. Identify the listener before stopping anything, especially on a shared machine.

3. Match the model name to the server you reached

A model installed on one server is not automatically available on another. This matters when a desktop app, container and command-line client are configured to reach different Ollama instances.

  1. Read the names returned by the model-list test.
  2. Compare the exact name, including its tag, with the connector’s model field.
  3. Confirm that the connector is using the same server address as your successful test.
  4. Run one short, harmless prompt using a model already present on that server.

If the required model is absent, decide whether downloading it is appropriate for the available disk space, memory and intended use. Use the documented model name from Ollama’s library. Do not download a large model merely because an old example mentions it.

Expected result: the model is recognized and begins a response. If the model list works but loading fails, keep that distinction: address changes are unlikely to resolve an explicit model-memory error. If the same model works directly but not through the connector, compare the connector’s request fields and supported API features.

4. Check Docker and remote-client boundaries

In a typical isolated container, localhost refers to that container. It does not refer to an Ollama process on the host computer or to a different container. Trace the actual path from the application making the request to the process serving Ollama.

For Docker Desktop, Docker documents host.docker.internal as a way to address a host service. That hostname alone does not guarantee that the service’s listening interface and access controls accept the connection. Test the path from the container and consult the connector’s supported deployment example.

If both applications are containers on a configured shared network, use their documented service discovery and internal port arrangement. Keep host-published ports separate from container ports. Do not paste a Docker Desktop hostname into an unrelated Linux deployment without checking how its host networking is configured.

Before exposing a listener: the local Ollama API does not require authentication by default. Binding to all interfaces is not a harmless substitute for understanding the path. It can make the service reachable beyond the application you meant to connect.

A remote device needs a deliberate access design, such as an appropriately controlled private connection or authenticated gateway. Restrict access to intended clients and follow organizational policy. Do not open port 11434 to every network, enable both public and private firewall profiles indiscriminately, or expose it on the internet as a generic fix.

Expected result: the same small model-list test succeeds from the actual client environment. If a network change does not help, restore the recorded configuration. For app-managed and service-managed settings, follow the platform-specific restart and environment-variable guidance in the Ollama FAQ.

5. Separate slow loading from a broken connection

A model-list response is small; loading a model and generating an answer are different workloads. If the connection works but generation is slow, compare one short request with the longer task rather than immediately increasing every timeout.

  1. Use one request at a time and record when it starts and finishes.
  2. Keep the model, prompt and context settings unchanged while comparing results.
  3. Observe whether the first request includes model-loading time and whether a later request behaves differently.
  4. Inspect server logs for an explicit allocation, loading or execution error.

Memory requirements depend on the model, quantization, context and concurrent workload. A parameter count alone does not establish a universal RAM threshold. If the logs identify a capacity problem, compare an appropriate smaller workload or model and verify the actual behavior.

Adjust a client’s timeout only when its setting is documented and the observed request is legitimately taking longer. A larger timeout cannot make a missing server reachable. Confirm whether the client expects streaming responses or a single completed response, and whether its parser matches the chosen API.

Expected result: the response completes within the intended limits and is parsed correctly. If the request succeeds outside the integration but the connector reports a parsing error, preserve a redacted response example for the connector developer.

6. Use logs and controlled version changes

Record the Ollama version, connector version, operating system and deployment arrangement. Compare the first failing operation with the server log at that time. Ollama’s troubleshooting documentation identifies the log locations for macOS, Windows, systemd services and containers.

On a managed installation, collect logs through the administrator’s normal process. Remove prompts, generated content, usernames, internal addresses and credentials that should not be shared publicly. A minimal example is easier to investigate than an entire private application log.

If a connector update introduced the failure, check its release notes and supported Ollama versions. Back up its configuration before a supported update or rollback. Test one changed component at a time; reinstalling the runtime, deleting model files and changing endpoints together destroys the useful comparison.

Expected result: either a documented compatibility change resolves the reproduction, or support receives the exact boundary that fails. Keep the previous working configuration available until the real application workflow succeeds.

When these checks will not help

Local-server repairs will not fix an unavailable feature in a hosted API, a connector that does not support the requested operation, or a model that cannot satisfy the task. Respect an organization’s network policy rather than bypassing it. Do not delete downloaded models as a response to an unrelated authentication or routing error.

Frequently asked questions

Why does Ollama work in its app but not in my integration?

The integration may reach a different address, select another model, or use the wrong API format. Start by comparing the server and model-list result, then inspect the connector’s exact request.

Should I run ollama serve every time?

Only if that matches how your installation is managed and a server is not already running. An app or service may own the listener. A successful local model-list request is a reason to investigate the client next rather than launch another server.

Does connection refused mean I need a firewall exception?

No. Check the destination and listener first. Firewall changes require evidence about the intended network path; broad exceptions can expose a local service without fixing the wrong address.

Can I use localhost from a cloud workflow?

That address refers to the cloud workflow’s environment, not your computer. Use a supported, deliberately secured integration design or the intended hosted service. Do not expose your laptop’s local API as a quick workaround.

Verify the original workflow

Resolve an Ollama integration not working report by proving each boundary: the intended server answers, the selected model runs, the actual client reaches it, and the client understands the response. Keep the working endpoint and version record, then repeat the original task before closing the issue.

Keep troubleshooting

Need a different starting point?

Explore the AI Tools & Platforms guide →

Report a problem with this article

About Antoine Lamine

Antoine Lamine writes and maintains troubleshooting guides at TrueFixGuides, covering Windows, macOS, mobile devices, apps, and AI tools. Articles include diagnostic steps and links to supporting sources. Readers can report errors or version-specific differences through the contact page.

Author profile →