Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker big-AGI and OLLAMA integration issue #440

Closed
1 task
Shadow-Wizard-Money-Gang opened this issue Mar 1, 2024 · 3 comments
Closed
1 task

Docker big-AGI and OLLAMA integration issue #440

Shadow-Wizard-Money-Gang opened this issue Mar 1, 2024 · 3 comments
Labels
type: bug Something isn't working

Comments

@Shadow-Wizard-Money-Gang

Description

I had the netwrok error previsouly on #276 and I tried their solutions and am now running big-AGI in a docker container and ollama locally, how do I connect them though as I am now getting a new error: [Issue] Ollama: (network) fetch failed - Error: connect ECONNREFUSED 127.0.0.1:11434

Device and browser

On windows 11 on firefox latest version

Screenshots and more

image
image

Willingness to Contribute

  • 🙋‍♂️ Yes, I would like to contribute a fix.
@Shadow-Wizard-Money-Gang Shadow-Wizard-Money-Gang added the type: bug Something isn't working label Mar 1, 2024
@enricoros
Copy link
Owner

If big-agi is running in a container (an isolated network) and Olama locally, then big-AGI cannot contact Olama.

This is shown partially in this section: https://github.com/enricoros/big-AGI/blob/main/docs/config-local-ollama.md#%EF%B8%8F-network-troubleshooting

The core of the issue is a docker network configuration issue and not a bug in big-AGI.

If you look at the docs/config-browse file, there's an example Docker file to run two containers that can both see each other. Maybe that's a solution that can work for you?

@Opswatch
Copy link

Opswatch commented Mar 1, 2024

Use this as the address for ollama host.docker.internal plus the ollama port and it should work.

@Gameon666
Copy link

yep indeed it has solved the issue, thank you.
ollama docker issue solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants