Skip to content

sqlalchemy.exc.PendingRollbackError: Can't reconnect until invalid transaction is rolled back #57470

@rebel-wansoo

Description

@rebel-wansoo

Apache Airflow version

3.1.1

If "Other Airflow 2/3 version" selected, which one?

No response

What happened?

After upgrading from Airflow 3.1.0 to 3.1.1, the following error started occurring on the API server:
sqlalchemy.exc.PendingRollbackError: Can't reconnect until invalid transaction is rolled back.

In addition, when accessing the UI, an Internal Server Error appears in the browser, and in some cases, the Oops page is displayed instead.
This issue occurs very frequently, though there are occasional cases where it does not occur.

What you think should happen instead?

No response

How to reproduce

After upgrading from Airflow 3.1.0 to Airflow 3.1.1, please log in.

Operating System

ubuntu

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions