mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 04:24:03 -05:00
AIOHTTP_CLIENT_TIMEOUT Does not work #1299
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 @uninstall-your-browser on GitHub (Jun 18, 2024).
Bug Report
Setting
AIOHTTP_CLIENT_TIMEOUThas no effect, it is impossible for longer responses with a larger model to complete using this software on my GPU.Description
I am using host ollama with a docker compose file, where I set
AIOHTTP_CLIENT_TIMEOUTlike this:Bug Summary:
Setting
AIOHTTP_CLIENT_TIMEOUThas no effect. Setting it to 1 does not fail after 1 second. Setting it to 99999999 still fails in 5 minutes.Steps to Reproduce:
AIOHTTP_CLIENT_TIMEOUTto anythingExpected Behavior:
Failing after the time specified by
AIOHTTP_CLIENT_TIMEOUTActual Behavior:
Ignores
AIOHTTP_CLIENT_TIMEOUTEnvironment
Open WebUI Version: 0.3.5
Ollama (if applicable): 0.1.44
Operating System: Linux
Browser (if applicable): Firefox
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
Docker compose with host ollama
@uninstall-your-browser commented on GitHub (Jun 18, 2024):
It would also be nice if it was higher than 5 minutes by default (e.g. 20 minutes), please consider that some people do not have high end hardware
@TheTerrasque commented on GitHub (Jun 18, 2024):
Which docker image are you using? And did you redeploy the compose file after changing it? (docker compose up)
@uninstall-your-browser commented on GitHub (Jun 18, 2024):
Using
ghcr.io/open-webui/open-webui:mainI did this:
@TheTerrasque commented on GitHub (Jun 18, 2024):
Hmm.. Using
ghcr.io/open-webui/open-webui:v0.3.5(which should be the same image) andAIOHTTP_CLIENT_TIMEOUT, I can generate 5+ minutes of responses on my system.I did put it at 15 minutes in my PR, but it was changed back to the default (5 min) before being accepted.
Edit: Could you post your docker-compose file?
@uninstall-your-browser commented on GitHub (Jun 18, 2024):
@TheTerrasque commented on GitHub (Jun 18, 2024):
Hmm.. Is the keep-alive still on default setting?
Can you try changing it if it's default? In Open Webui, under Settings -> General -> Advanced Settings -> Keep Alive and set it to something like 30m? I don't think this should kick in when it's generating, but it's worth checking out.
Also, do you know if ollama spent more than 5 minutes loading the model? Did it start responding before it stopped?
@uninstall-your-browser commented on GitHub (Jun 18, 2024):
It starts generating before it stops
Does not fix it
@TheTerrasque commented on GitHub (Jun 18, 2024):
since you have a build section in the docker compose file, is it built from the folder or do you use image from the web? And are you using ollama embedded in the image or separate external install?
@uninstall-your-browser commented on GitHub (Jun 18, 2024):
Ollama is running outside of docker
I mostly copied from the example docker files:
https://github.com/open-webui/open-webui/blob/main/docker-compose.yaml
@TheTerrasque commented on GitHub (Jun 18, 2024):
Could you try this docker file?
and if it still doesn't work, can you give the output of
docker compose exec open-webui /bin/bash -c "export"@uninstall-your-browser commented on GitHub (Jun 18, 2024):
Hmm, it seems to be working now
@TheTerrasque commented on GitHub (Jun 18, 2024):
Glad to hear! I wonder what the issue was.
I suspect it was either using an old image somehow or the image has old code in it. Both of those seems weird, though. Main should have the newest code, and pull should have pulled the newest image..
Edit: And since it's working, maybe you can close the bug report :)