Skip to content

Clean Postgres database on Python3.10 gives foreign key error #34859

@kuikeelc

Description

@kuikeelc

Apache Airflow version

2.7.1

What happened

When running:

airflow tasks test DAG_NAME TASK_NAME

the task runs fine, but ends with the error message:

airflow.exceptions.AirflowException: Foreign key associated with column 'dag_run_note.user_id' could not find table 'ab_user' with which to generate a foreign key to target column 'id'

What you think should happen instead

The error message shouldn't be there.

How to reproduce

create a clean database in Postgres on Python3.10 on Mac OS X. You then get the error.

Operating System

Mac OS X latest version

Versions of Apache Airflow Providers

apache-airflow-providers-amazon==8.5.1
apache-airflow-providers-cncf-kubernetes==7.4.2
apache-airflow-providers-common-sql==1.7.0
apache-airflow-providers-ftp==3.5.0
apache-airflow-providers-google==10.6.0
apache-airflow-providers-http==4.5.0
apache-airflow-providers-imap==3.3.0
apache-airflow-providers-jdbc==4.0.1
apache-airflow-providers-mysql==5.2.1
-e git+ssh://git@github.com/onesecondbefore/osb-transfer.git@32e126f5d250cdceca4afb4cf9cbf8953ba9ece5#egg=apache_airflow_providers_onesecondbefore&subdirectory=providers/apache-airflow-providers-onesecondbefore
apache-airflow-providers-postgres==5.6.0
apache-airflow-providers-slack==7.3.2
apache-airflow-providers-snowflake==4.4.2
apache-airflow-providers-sqlite==3.4.3
apache-airflow-providers-ssh==3.7.1

Deployment

Virtualenv installation

Deployment details

It is on my local machine.

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

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions