mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #13524] issue: Exhausting Workers in Nginx Reverse Proxy in 0.6.6 #16939
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 @borysow on GitHub (May 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13524
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.6.6
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04 Container
Browser (if applicable)
Google Chrome 121.0.6167.139
Confirmation
README.md.Expected Behavior
I have an Open WebUI instance set up via docker compose to bring up Open WebUI on port 8080 on the internal docker network, and have an nginx reverse proxy configured to establish a secure connection to users outside the host. I believe I based the nginx config on an example in the documentation.
I expect to have this configuration still work to allow end users to get a secure connection by going to https://<docker_host_name>:8080.
Everything works happily on OpenWebUI 0.6.5.
Actual Behavior
After updating to 0.6.6, I can log in briefly, but after a short amount of time my nginx server logs report that xxx "worker_connections are not enough while connecting to upstream" and I get either Error 500 or 503 (Bad Gateway).
(I know it's not the proper solution, but I increased the max_num_workers to 4096 as a test, and all it did was make it take longer to have the errors emerge).
I don't know if this is related to the changes in Websocket mentioned in the changelog.
Below are some logs of the issue as well as my docker compose file and nginx.conf.
Steps to Reproduce
With the following nginx and docker compose setup, performing any activity on the OpenWebUI server (maybe opening a few chats and wandering around the configs) very quickly causes this.
docker-compose:
I believe I basically copied one of these from the OpenWebUI documentation page somewhere.
nginx.conf
Logs & Screenshots
OpenWebUI log while this is happening:
Nginx log while this is happening:
Additional Information
No response