Closed dav-ell closed 2 weeks ago
I fixed this using these commands on the remote
docker run -it --net host -e DEFAULT_MODEL="llama3:70b" -e OLLAMA_HOST="http://localhost:11434" chatbot-ollama
sudo su # was getting permission issues without running ollama as root
root$ export OLLAMA_HOST=0.0.0.0:11434
root$ ollama serve
Then on my client
ssh -L 11434:localhost:11434 -L 3000:localhost:3000 user@remote
And go to http://localhost:3000 in your browser.
The --net host
was what seemed to be required. Unclear why, though.
I'm hosting the UI on a remote machine like so
and then I've port forwarded port 3000 and port 11434 to my local machine and went to localhost:3000/ in the browser. This resulted in the below errors when I opened the web page.
And in the browser logs