mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
Ollama server inaccessible when requested from different network #25
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 @Notarin on GitHub (Nov 6, 2023).
When hosting ollama on host1, and ollama-webui on host1, and attempting to access via host2 on a seperate network, the webui will refuse to connect to ollama, while working on host1.
To Reproduce
It would be expected to function appropriately, however it for whatever reason pretends as if it cannot connect to the Ollama server, despite working just fine locally. Even if you port forward Ollama and point it to the public Ollama endpoint (verified) it will still not work whatsoever.
Server:
Client:
@tjbck commented on GitHub (Nov 6, 2023):
Hi, most likely a CORS problem. Were you able to check everything outlined in the troubleshooting section in readme.md? If you did and still experiencing the same issue, it would be helpful if you could provide a console log from your browser's developer tool. Thanks.
@Notarin commented on GitHub (Nov 6, 2023):
strange, it appears to be not obeying the provided parameter
@Notarin commented on GitHub (Nov 6, 2023):
changing the default in the env file appears to have the expected effect.
I was under the false assumption that the requests were run server side, and was testing the public url via the settings menu.
@Notarin commented on GitHub (Nov 6, 2023):
the only issue now is that setting the url via the settings menu is not working, should i rename this issue or make a new one?
@tjbck commented on GitHub (Nov 6, 2023):
#70 should fix the issue. Please try again by building from the latest commit and let me know how it goes, Thanks!