mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 10:04:14 -05:00
Uh-oh! There was an issue connecting to Ollama. #105
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 @ralyodio on GitHub (Dec 18, 2023).
Uh-oh! There was an issue connecting to Ollama.
@ralyodio commented on GitHub (Dec 18, 2023):
is this on my side? or is ollama.ai servers down?
@tjbck commented on GitHub (Dec 18, 2023):
Hi, We cannot help you with the limited information you've included, please provide the commands you used to install, browser console logs and docker container logs. Also, please make sure that you have followed and checked the troubleshooting guide provided in the readme.md, Thanks.
@justinh-rahb commented on GitHub (Dec 18, 2023):
@ralyodio The Ollama WebUI does not interact with ollama.ai servers, but rather only communicates with a locally running instance of Ollama on the same machine or another machine via API. Therefore, if there is an issue, it would be specific to your local installation and not related to any third-party servers on the internet.
@ralyodio commented on GitHub (Dec 19, 2023):
i can't sseem to get it to work w/o using docker and even with docker it worked the first time I ran build, but after that I always get server connection fail
@ralyodio commented on GitHub (Dec 19, 2023):
[2023-12-19T00:46:09.652Z] "GET /ollama/api/tags" Error (404): "connect ECONNREFUSED ::1:5432"this is what i get in the logs.
@ralyodio commented on GitHub (Dec 19, 2023):
Here's what I'm doing:
OLLAMA_HOST=0.0.0.0 OLLAMA_ORIGINS=* ollama servein another shell I run:
OLLAMA_API_BASE_URL=http://localhost:11434 PORT=5432 npm startand when I go to https://ai.profullstack.com the UI loads but can't connect to ollama server. In the ollama server log I see a 404 for
/api/v1/but that's it.Here's my nginx config incase:
@tjbck commented on GitHub (Dec 19, 2023):
Please refer to https://github.com/ollama-webui/ollama-webui#how-to-install-without-docker, to install locally and fully understand all the ollama-webui components. Thanks.
@ralyodio commented on GitHub (Dec 19, 2023):
Yeah I went through all that.
@tjbck commented on GitHub (Dec 19, 2023):
Hmm, I have no idea how exactly you have Ollama/Ollama WebUI set up, and If you follow all the steps outlined in the readme.md, you should have the webui up and running.
Also, I cannot reproduce at all with the given information, Could you tell us more about your setup, as detailed as possible so that we can better help you with your issue? Thanks.
@oliverbob commented on GitHub (Dec 19, 2023):
Pull the latest ollama-webui and try the build method:
Remove/kill both ollama and ollama-webui in docker:
If ollama is not running on docker (sudo systemctl stop ollama)
If ollama is running on docker:
docker remove ollama ollama-webui.
docker compose up -d --build
[
Optional:
Then on the same terminal, try to do: ollama pull orca-mini:3b
]
Then open ollama-webui at http://localhost:8080
@ralyodio commented on GitHub (Dec 19, 2023):
As I've stated I'm not using docker.
@tjbck commented on GitHub (Dec 19, 2023):
We do not support the command
npm startfor deployment and is strictly for development and testing purposes. Do you also have the backend running as outlined in the readme.md?@ralyodio commented on GitHub (Dec 19, 2023):
yes,
npm run devis for development.@ralyodio commented on GitHub (Dec 19, 2023):
I figured it out. I think its a bug with using
npm startI had to change the settings in the UI to use
/apiinstead of/ollama/apiand it connected!@tjbck commented on GitHub (Dec 19, 2023):
Seems like you have not read the instructions here: https://github.com/ollama-webui/ollama-webui#how-to-install-without-docker, and you're using an unsupported method of installation, I'll close this issue.
If you'd like to follow the instructions provided, refer to the screenshot of the readme.md I took below, Thanks.

@ralyodio commented on GitHub (Dec 19, 2023):
your instructions suck ass and you got a bug anyway, but hey what do i know. i've only been doing this 25 years.
@tjbck commented on GitHub (Dec 19, 2023):
Again, to reiterate
npm startis not a supported method of deploying the webui, and it won't work unless you configure everything the right way. Thank you.@oliverbob commented on GitHub (Dec 20, 2023):
Timothy,
Please only remove only the abusive part of comments, not the entire comments. I've been reading the convo in my email. Lets be open to developer frustrations. It happens at times.
Anyways, you have a very great work TJBCK. You're perhaps even better than Sam Altman. Cheers my friend. 👍
Thanks a lot.