mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
Server Connection Failed #66
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 @RasPintz on GitHub (Nov 29, 2023).
Describe the bug
Seems Ollama-webui can't contact ollama server
To Reproduce
I installed ollama server on LTS 22.04 Ubuntu and tryed ollama-webui while cloning the repo and with docker instance.
Both can't connect to ollama server.
I launched ollama server with systemctl and bash
ollama standard client works fine
curl working too (tested with url http://localhost:11434/api/generate -d )
when launching it with npm run dev, I got this error (like api/v1 not working anymore with ollama server) :
Expected behavior
Webui connected to the ollama server
Screenshots
None
Desktop (please complete the following information):
Additional context
Computer is on GCP, port (8080) of the webui is opened and accessible over my webbrowser no other port accessible
Launch seemed fine :
Thanks for help
@tjbck commented on GitHub (Nov 29, 2023):
Hi, Just to make sure, is the Ollama instance also running on the same server as the WebUI? Please provide us with the exact commands you ran for faster help. I'll close this issue for now as if you have everything setup correctly, we've verified that it works perfectly on macos, ubuntu and windows.
Also,
/api/v1route is for the webui backend api, not Ollama. Keep us updated, Thanks!@RasPintz commented on GitHub (Nov 29, 2023):
@tjbck :
Yes the ollama server is running on same instance (using loopback).
Here is the way to reproduce
Launching ollama server with (adding the & cause I m a lazzy guy :p ) :
I cloned the repo locally
I modified the dev port listen (line 122)
Launching webui with :
When I access to the webui with : http://XXXIPV4XXX:8080/
I can see the webpage, I got the message :
"Server connection failed"
In the terminal I got the following message :
@tjbck commented on GitHub (Nov 29, 2023):
Hi, If you're hosting the webui with the
npm run devcommand, you should also run the python backend for webui backend/api/v1routes. Alternatively, you can also set theOLLAMA_API_BASE_URLdirectly from the webui settings tohttp://localhost:11434/apiand should connect to your ollama instance directly, bypassing the backend reverse proxy. Thanks.