mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
No connection to Windows Ollama #368
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @themw123 on GitHub (Feb 27, 2024).
Bug Report
Description
Installed ollama on native windows and tested it.
Installed open-webui in docker on server(same network as windows maschine) with the following command:
docker run -d -p 8080:8080 -e OLLAMA_API_BASE_URL=https://192.168.178.23/api -v /my_path_to_data:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:mainI am facing a white blank screen in browser after sign in.
in browser console i am getting the following two errors:
Failed to load resource: net::ERR_BLOCKED_BY_CLIENTManifest: Line: 1, column: 1, Syntax error.After a while it loads the page but it is not connected to ollama, i cant see any model that i had installed before
all but one status code are 200:
INFO: my_ip:0 - "GET / HTTP/1.1" 304 Not ModifiedWithin the container of open-webui i am able to ping the windows maschine
@justinh-rahb commented on GitHub (Feb 27, 2024):
Set the
OLLAMA_HOST=0.0.0.0andOLLAMA_ORIGINS=*environment variables for Ollama, per their FAQ@themw123 commented on GitHub (Feb 28, 2024):
My fault. Now in postman i can succesfully call the models by using the ip and port.
But still i am faceing the same problems with the webui.
Tried different browser and cleared cashe.
@justinh-rahb commented on GitHub (Feb 28, 2024):
This smells like CORS getting in the way, which setting the
OLLAMA_ORIGINS=*variable should fix, did you do that?@tjbck commented on GitHub (Feb 28, 2024):
Try replacing
httpswithhttp.@justinh-rahb commented on GitHub (Feb 28, 2024):
🤦♂️ Missed that, ya.. that'll do it.
@themw123 commented on GitHub (Feb 28, 2024):
yes i am using
OLLAMA_ORIGINS=*also tried with http
Browser console logs once in a while:
401 (Unauthorized)@themw123 commented on GitHub (Feb 28, 2024):
omg now its working. Changed
http://192.168.178.23/apitohttp://192.168.178.23:11434/apidid it once before but there i hadnt set the env variables.
Thanks a lot. I should have gone to bed earlier
@themw123 commented on GitHub (Feb 28, 2024):
Now its working with docker run but with compose i am getting no answer when asking a question to the model(loading forever) and in browser console i am getting:
Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSONdocker run:
docker run -d --network=host -e OLLAMA_API_BASE_URL=http://192.168.178.23:11434/api -v /my_path_to_data:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:maindocker compose: