Skip to content

Postgre Connection leak

Sentry Issue: WAVEQC-F

OperationalError: connection failed: FATAL:  remaining connection slots are reserved for non-replication superuser connections
(11 additional frame(s) were not displayed)
...
  File "sqlalchemy/util/langhelpers.py", line 146, in __exit__
    raise exc_value.with_traceback(exc_tb)
  File "sqlalchemy/pool/base.py", line 898, in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
  File "sqlalchemy/engine/create.py", line 637, in connect
    return dialect.connect(*cargs, **cparams)
  File "sqlalchemy/engine/default.py", line 616, in connect
    return self.loaded_dbapi.connect(*cargs, **cparams)
  File "psycopg/connection.py", line 738, in connect
    raise ex.with_traceback(None)

OperationalError: (psycopg.OperationalError) connection failed: FATAL:  remaining connection slots are reserved for non-replication superuser connections
(Background on this error at: https://sqlalche.me/e/20/e3q8)
(33 additional frame(s) were not displayed)
...
  File "waveqc/views.py", line 63, in homepage
    query = request.dbsession.execute(
  File "<string>", line 2, in _connection_for_bind
    # Copyright (C) 2005-2023 the SQLAlchemy authors and contributors
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information