[GH-ISSUE #13439] Ollama connection refusal(Errno: 111) in colab. #70931

Closed
opened 2026-05-04 23:29:33 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @mahendra0120 on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13439

What is the issue?

Issue came up when connecting ollama, where mistral model connected to the cloud, to the colab notebook. As u can see the method Im calling is ChatOllama which came from langchain-ollama. This is the first time I got this kind of error saying the connection refused.

if I just import ollama or wrap openai wrapper around the endpoint, it would work just fine, but ever since I import langchain, connection got refused.

After checking the code and my firewall, I realised, ollama is the culprit here. Can Anyone tell me why its acting up like this? Ollama version is the latest one. 13.3 or something

Relevant log output

<img width="1053" height="631" alt="Image" src="https://github.com/user-attachments/assets/b011f284-83be-4d96-af2f-ecfd5f856ac7" />
<img width="1055" height="559" alt="Image" src="https://github.com/user-attachments/assets/41606e64-0762-4695-8557-8d641cb2d913" />

OS

Windows

GPU

Other

CPU

Other

Ollama version

0.13.3

Originally created by @mahendra0120 on GitHub (Dec 12, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13439 ### What is the issue? Issue came up when connecting ollama, where mistral model connected to the cloud, to the colab notebook. As u can see the method Im calling is ChatOllama which came from langchain-ollama. This is the first time I got this kind of error saying the connection refused. if I just import ollama or wrap openai wrapper around the endpoint, it would work just fine, but ever since I import langchain, connection got refused. After checking the code and my firewall, I realised, ollama is the culprit here. Can Anyone tell me why its acting up like this? Ollama version is the latest one. 13.3 or something ### Relevant log output ```shell <img width="1053" height="631" alt="Image" src="https://github.com/user-attachments/assets/b011f284-83be-4d96-af2f-ecfd5f856ac7" /> <img width="1055" height="559" alt="Image" src="https://github.com/user-attachments/assets/41606e64-0762-4695-8557-8d641cb2d913" /> ``` ### OS Windows ### GPU Other ### CPU Other ### Ollama version 0.13.3
GiteaMirror added the bug label 2026-05-04 23:29:34 -05:00
Author
Owner

@mahendra0120 commented on GitHub (Dec 12, 2025):

Image Image
<!-- gh-comment-id:3646581922 --> @mahendra0120 commented on GitHub (Dec 12, 2025): <img width="1053" height="631" alt="Image" src="https://github.com/user-attachments/assets/af974058-ff98-4138-81e7-c2f0a090dd2d" /> <img width="1055" height="559" alt="Image" src="https://github.com/user-attachments/assets/2424eb93-84fd-4bae-89b7-568395ea1303" />
Author
Owner

@ganesh6361 commented on GitHub (Dec 12, 2025):

seems an issue with the port, can you try ollama serve? and is it running on windows or inside docker?? if it still says connection refused, try net stop and start ollama and make sure it is in running state.

<!-- gh-comment-id:3647595300 --> @ganesh6361 commented on GitHub (Dec 12, 2025): seems an issue with the port, can you try ollama serve? and is it running on windows or inside docker?? if it still says connection refused, try net stop and start ollama and make sure it is in running state.
Author
Owner

@mahendra0120 commented on GitHub (Dec 13, 2025):

nevermind I just set up a ngrok tunnel and it worked fabulously. Idk why it sprung up that error on me when using langchain, normally it doesnt come up but oh well thx for the help anyways

<!-- gh-comment-id:3649084975 --> @mahendra0120 commented on GitHub (Dec 13, 2025): nevermind I just set up a ngrok tunnel and it worked fabulously. Idk why it sprung up that error on me when using langchain, normally it doesnt come up but oh well thx for the help anyways
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#70931