mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[GH-ISSUE #627] webui is able to connect to server ollama but after it uploads a model it gets a "Server connection failed" error #115460
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 @noknownerrors on GitHub (Feb 3, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/627
Bug Report
Description
I can connect to the server and use the webui without error unless the server has models on it. Then I get network errors.
Bug Summary:
[Provide a brief but clear summary of the bug]
I can connect to the server and use the webui without error unless the server has models on it. Then I get network errors.
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Have server on runpod, with ollama/ollama container.
My env variables there:
OLLAMA_API_BASE_URL=http://127.0.0.1:11434/api
OLLAMA_MODELS=/workspace/models
30 GB container, 100GB volume
On my PC:
have most recent ollama:
ollama version is 0.1.23Use command:
sudo docker run -d -p 3000:8080 -e OLLAMA_API_BASE_URL=https://myrunpod.proxy.net/api -v ollama-webui:/app/backend/data --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:mainGoto webui:
localhost:3000Connects
Webui settings show correct url, the server.net/api
I can go to this url, server.net/api/tags and I can see the model I had sent from the webui to the server there.
Can't select the model, get Server connection failed
Expected Behavior:
[Describe what you expected to happen.]
To select a model and use it
Actual Behavior:
[Describe what actually happened.]
Can't select the model, get Server connection failed
Environment
Confirmation:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Logs from runpod:
Screenshots (if applicable):

Installation Method
Server is runpod, used ollama/ollama container
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@noknownerrors commented on GitHub (Feb 3, 2024):
I am able to curl the server from my WSL where the webui is hosted:
@tjbck commented on GitHub (Feb 3, 2024):
Hi, could you try connecting to ollama directly without the proxy?
https://myrunpod.proxy.netmost likely is causing the issue here.