mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-24 14:23:59 -05:00
[GH-ISSUE #560] Server connection failed: but Ollama server receives and responds to WebUI requests #27647
Reference in New Issue
Block a user
Originally created by @peperunas on GitHub (Jan 24, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/560
Bug Report
I am encountering a strange bug as the WebUI returns "Server connection failed:" while I can see that the server receives the requests and responds as well (with 200 status code). The same I can see in the browser's console, as the WebUI receives back the 200s.
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
ollama:ollama-webui:EDIT:
I can even pull a new model from the WebUI successfully - but not use (or list) any model.
EDIT 2:
When refreshing the models, the console outputs:
@tjbck commented on GitHub (Jan 24, 2024):
Hi, Could you tell us with installation method you used to install the webui? Also, please check out our troubleshooting guide if you haven't so already: https://github.com/ollama-webui/ollama-webui/blob/main/TROUBLESHOOTING.md Thanks!
One other thing, please verify that you're on the latest version of your web browser as well!
@peperunas commented on GitHub (Jan 24, 2024):
Hello,
I am using the upstream Docker image (latest).
As shown in the logs, the UI and the backend are connected and communicate. The endooints are also hit properly (200 status codes).
Thanks.
@tjbck commented on GitHub (Jan 24, 2024):
The issue seems to be resolved, I'll close this issue for now. Feel free to reach out if you're still experiencing connection problems, Thanks!
@Ashok93 commented on GitHub (Feb 12, 2024):
@tjbck I still have the same issue, I am using the latest docker image and using ollama in a server locally.
@Ashok93 commented on GitHub (Feb 12, 2024):
Here is my browser log from Chrome. My ollama server responds for
/api/tagsand also the log in ollama-webui docker container says 200 OK for tagsINFO: 127.0.0.1:58090 - "GET /ollama/api/tags HTTP/1.1" 200 OK@peperunas commented on GitHub (Feb 12, 2024):
That's the same issue I had encountered. I haven't found a fix yet.
@Ashok93 commented on GitHub (Feb 12, 2024):
@tjbck Can you please reopen the issue? The author of the issue reports that they haven't found the fix yet.
@tjbck commented on GitHub (Feb 12, 2024):
@Ashok93 @peperunas Could you guys confirm that Ollama is running from the same machine as the webui? I'm unable to reproduce this issue on all three of my machines (mac, ubuntu, windows)
FYI, the settings page should look something like this:
@Ashok93 commented on GitHub (Feb 13, 2024):
@tjbck Thanks for the response. No, my Ollama webserver is running on a separate server inside Kubernetes in my local network. But I can access this ollama server from the server where ollama webui is running. I can
curlall endpoints and I get responses there.