Open LTtt456c opened 7 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.
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 : (
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 😅
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
▲ Next.js 13.5.6
Local: http://localhost:3000
✓ Ready in 2.9s ○ Compiling / ... ✓ Compiled / in 3.3s (1652 modules) ⚠ Fast Refresh had to perform a full reload. Read more: https://nextjs.org/docs/messages/fast-refresh-reload ✓ Compiled in 1699ms (1652 modules) ✓ Compiled in 519ms (1652 modules) ✓ Compiled /api/models in 245ms (68 modules) [TypeError: fetch failed] { cause: [Error: connect ECONNREFUSED 127.0.0.1:11434] { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 11434 } } ✓ Compiled in 620ms (1720 modules) [TypeError: fetch failed] { cause: [Error: connect ECONNREFUSED 127.0.0.1:11434] { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 11434 } } [TypeError: fetch failed] { cause: [Error: connect ECONNREFUSED 127.0.0.1:11434] { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 11434 } } [TypeError: fetch failed] { cause: [Error: connect ECONNREFUSED 127.0.0.1:11434] { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 11434 } }