issue: "RuntimeError: no running event loop" After upgrade to 0.3.25 via pip on Windows #2175

Closed
opened 2025-11-11 15:01:40 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @e-uhlich on GitHub (Sep 24, 2024).

Originally assigned to: @tjbck on GitHub.

Bug Report

Installation Method

pip install --upgrade open-webui

Environment

  • Open WebUI Version: 0.3.25

  • Ollama (if applicable): /

  • Operating System: Windows 10

  • Browser (if applicable): /

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

When entering "open-webui serve" in the windows command prompt, the server should be started.

Actual Behavior:

After entering "open-webui serve" I'm getting an error message ending with:
"RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'periodic_usage_pool_cleanup' was never awaited"

open-webui version 0.3.23 worked just fine and after reverting to this version, the server starts.

Description

Bug Summary:
After upgrading to open-webui version 0.3.25 the server doesn't start and returns an error.

Reproduction Details

Steps to Reproduce:

  • latest working open-webui version: 0.3.23
  • run "pip install --upgrade open-webui"
  • run "open-webui serve"

Logs and Screenshots

Browser Console Logs:
[Include relevant browser console logs, if applicable]

Docker Container Logs:
[Include relevant Docker container logs, if applicable]

Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Additional Information

Error message after running "open-webui serve":
RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'periodic_usage_pool_cleanup' was never awaited

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!

Originally created by @e-uhlich on GitHub (Sep 24, 2024). Originally assigned to: @tjbck on GitHub. # Bug Report ## Installation Method pip install --upgrade open-webui ## Environment - **Open WebUI Version:** 0.3.25 - **Ollama (if applicable):** / - **Operating System:** Windows 10 - **Browser (if applicable):** / **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: When entering "open-webui serve" in the windows command prompt, the server should be started. ## Actual Behavior: After entering "open-webui serve" I'm getting an error message ending with: "RuntimeError: no running event loop sys:1: RuntimeWarning: coroutine 'periodic_usage_pool_cleanup' was never awaited" open-webui version 0.3.23 worked just fine and after reverting to this version, the server starts. ## Description **Bug Summary:** After upgrading to open-webui version 0.3.25 the server doesn't start and returns an error. ## Reproduction Details **Steps to Reproduce:** - latest working open-webui version: 0.3.23 - run "pip install --upgrade open-webui" - run "open-webui serve" ## Logs and Screenshots **Browser Console Logs:** [Include relevant browser console logs, if applicable] **Docker Container Logs:** [Include relevant Docker container logs, if applicable] **Screenshots/Screen Recordings (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Additional Information Error message after running "open-webui serve": RuntimeError: no running event loop sys:1: RuntimeWarning: coroutine 'periodic_usage_pool_cleanup' was never awaited ## 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!
Author
Owner

@shenyunhuan commented on GitHub (Sep 24, 2024):

0.3.26 on windows issue "RuntimeError: no running event loop
sys:1: RuntimeWarning: coroutine 'periodic_usage_pool_cleanup' was never awaited"

@shenyunhuan commented on GitHub (Sep 24, 2024): 0.3.26 on windows issue "RuntimeError: no running event loop sys:1: RuntimeWarning: coroutine 'periodic_usage_pool_cleanup' was never awaited"
Author
Owner

@tjbck commented on GitHub (Sep 24, 2024):

https://pypi.org/project/open-webui/0.3.27.dev2/ seems to have solved the issue, 0.3.27 will be released shortly.

@tjbck commented on GitHub (Sep 24, 2024): https://pypi.org/project/open-webui/0.3.27.dev2/ seems to have solved the issue, 0.3.27 will be released shortly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2175