mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 16:28:32 -05:00
[GH-ISSUE #24605] issue: db healthcheck stuck, possible regression from 0.9.3 #107350
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 @olevitt on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24605
Check Existing Issues
Installation Method
Other
Open WebUI Version
v0.9.4
Ollama Version (if applicable)
No response
Operating System
Kubernetes (debian 13)
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
DB healthcheck should not get stuck
Actual Behavior
DB healthcheck got stuck with error :
sqlalchemy.exc.PendingRollbackError: Can't reconnect until invalid transaction is rolled back. Please rollback() fully before proceedingand could not recover.Connection to the database was fine (confirmed manually and by restarting another similar pod that got through without issues) but the db healthcheck (triggered by the readyness probe) was stuck with this error. Only fix was to manually restart the pod.
I suspect this may be caused by recent changes to db healthcheck from v0.9.3 (#24380 and/or #24384) as we never encountered this issue in versions < 0.9.3 with the same setup.
Steps to Reproduce
Not sure exactly how to reproduce as you have to have your db healthcheck fail at some point + probably have some kind of load on the database or transactions in progress ("Can't reconnect until invalid transaction is rolled back")
Logs & Screenshots
sqlalchemy.exc.PendingRollbackError: Can't reconnect until invalid transaction is rolled back. Please rollback() fully before proceeding (Background on this error at: https://sqlalche.me/e/20/8s2b)
Additional Information
I strongly suspect this may be caused by recent changes to db healthcheck from v0.9.3 (#24380 and/or #24384) as we never encountered this issue in versions < 0.9.3 with the same setup.
@owui-terminator[bot] commented on GitHub (May 12, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟣 #9496 PgvectorClient.search() Fails After Connection Loss – Causes Stuck Transactions and Query Failures
This issue reports PostgreSQL connection-loss behavior leaving SQLAlchemy transactions stuck until a rollback/restart, which is very close to the same underlying failure mode as a healthcheck getting wedged with
PendingRollbackError. It is the strongest match for transaction state not being cleared after a DB problem.by tintina95
🟣 #21349 issue: upgrade to 0.8.0 can not start up
Although about startup rather than readiness probes, it is another database-related regression around startup/connection handling in Open WebUI and may reflect the same class of SQLAlchemy/DB initialization failures that can prevent the app from recovering cleanly.
by hzr42strrs-hash ·
bug💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.
@jmleksan commented on GitHub (May 14, 2026):
Good catch, my bad. I don't think I encountered any failures during my testing, so might have slipped past.
@Classic298 commented on GitHub (May 14, 2026):
Might be addressed in dev testing wanted