Skip to content

Commit ebbaff0

Browse files
authored
Merge pull request #514 from Abir-Tx/master
Addition of troubleshooting section for Ollama IPv6/IPv4 connection issues into the documentation
2 parents c904a78 + 4f164a3 commit ebbaff0

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

.github/github-mark-white.png

-1.89 KB
Loading

.github/logo-black.png

-471 Bytes
Loading

.github/logo-grad.svg

Lines changed: 1 addition & 13 deletions
Loading

.github/logo.svg

Lines changed: 1 addition & 4 deletions
Loading

.github/opencommit-example.png

-67.4 KB
Loading

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@ oco config set OCO_API_URL='http://192.168.1.10:11434/api/chat'
7474

7575
where 192.168.1.10 is example of endpoint URL, where you have ollama set up.
7676

77+
#### Troubleshooting Ollama IPv6/IPv4 Connection Fix
78+
79+
If you encounter issues with Ollama, such as the error
80+
81+
```sh
82+
local model issues. details: connect ECONNREFUSED ::1:11434
83+
```
84+
85+
It's likely because Ollama is not listening on IPv6 by default. To fix this, you can set the OLLAMA_HOST environment variable to 0.0.0.0 before starting Ollama:
86+
87+
```bash
88+
export OLLAMA_HOST=0.0.0.0
89+
```
90+
91+
This will make Ollama listen on all interfaces, including IPv6 and IPv4, resolving the connection issue. You can add this line to your shell configuration file (like `.bashrc` or `.zshrc`) to make it persistent across sessions.
92+
7793
### Flags
7894

7995
There are multiple optional flags that can be used with the `oco` command:

0 commit comments

Comments
 (0)