ivanfioravanti / chatbot-ollama

Chatbot Ollama is an open source chat UI for Ollama.
Other
1.33k stars 217 forks source link

Error: connect ECONNREFUSED 127.0.0.1:11434] #27

Open LTtt456c opened 7 months ago

LTtt456c commented 7 months ago

Hello everyone! My ollama in My docker docker Start ollama command is docker run -e OLLAMA_HOST=0.0.0.0:11434 -d -v ollama serve -p 11434:11434 --name ollama ollama/ollama Then I in vscode open chatbot-ollama And then input npm run dev And then Report an error

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ Here is the error log ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

PS G:\AI\chatbot-ollama> npm run dev

chatbot-ollama@0.1.0 dev next dev

▲ Next.js 13.5.6

ahmad-alkadri commented 6 months ago

Couldn't get the ollama docker command you gave running; are you sure it's the right command? Have you checked if your ollama container is running?

FYI according to the official dockerhub for ollama, the command for running its docker container (CPU only) would be:

docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama

I'd suggest you to read up the documentation on getting ollama up and running on docker first.

Dispa1r commented 4 months ago

i have the same problem just on ubuntu 22.04 with docker, both add --add-host=host.docker.internal:host-gateway or --add-host=host.docker.internal:host-gateway doesn't work for me : (

Dispa1r commented 4 months ago

i have the same problem just on ubuntu 22.04 with docker, both add --add-host=host.docker.internal:host-gateway or --add-host=host.docker.internal:host-gateway doesn't work for me : (

at last, i chose to deploy the chatollama locally with yarn, and it works 😅