You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 26, 2026. It is now read-only.
Active release on recent events: dragonfly-mainframe@be6a87f9ae471bc738eadacfa8017544e5c6cb70
Stack trace fails during SQL execution in the /package query path
The SQLAlchemy engine is configured with a pool but does not enable connection liveness checks such as pool_pre_ping or a recycle policy
Relevant code:
src/mainframe/database.py
src/mainframe/endpoints/package.py
Likely Cause
A stale pooled PostgreSQL connection is being reused after the database or network side has already closed it. The connection only fails when the next query executes, surfacing as SSL SYSCALL error: EOF detected.
Priority
Low. The error is intermittent, low-volume, and the caller is an internal service. This does not look like an urgent outage, but it is a reasonable reliability hardening task.
Suggested Fix
Enable pool_pre_ping=True on the SQLAlchemy engine
Consider a conservative pool_recycle value if the upstream database or proxy aggressively closes idle connections
Verify whether the internal caller already retries /package requests before changing priority
Definition of Done
Engine configuration updated to avoid reusing dead pooled connections
Local checks pass
Sentry issue volume remains flat or drops after deploy
Summary
Sentry issue
DRAGONFLY-MAINFRAME-1WTis a recurring but low-frequencypsycopg2/SQLAlchemy database error indragonfly-mainframe:OperationalError: (psycopg2.OperationalError) SSL SYSCALL error: EOF detecteddragonfly-mainframeproduction/packageThis appears to affect an internal service caller, not a direct external user path.
What We Know
dragonfly-mainframe@be6a87f9ae471bc738eadacfa8017544e5c6cb70/packagequery pathpool_pre_pingor a recycle policyRelevant code:
src/mainframe/database.pysrc/mainframe/endpoints/package.pyLikely Cause
A stale pooled PostgreSQL connection is being reused after the database or network side has already closed it. The connection only fails when the next query executes, surfacing as
SSL SYSCALL error: EOF detected.Priority
Low. The error is intermittent, low-volume, and the caller is an internal service. This does not look like an urgent outage, but it is a reasonable reliability hardening task.
Suggested Fix
pool_pre_ping=Trueon the SQLAlchemy enginepool_recyclevalue if the upstream database or proxy aggressively closes idle connections/packagerequests before changing priorityDefinition of Done