You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/09 15:26:51 UTC
[GitHub] [airflow] Jeoffreybauvin opened a new issue, #28804: Error on db upgrade (no attribute execution_date)
Jeoffreybauvin opened a new issue, #28804:
URL: https://github.com/apache/airflow/issues/28804
### Apache Airflow version
2.5.0
### What happened
When upgrading to Airflow 2.5.0, I have this error :
`
airflow-scheduler | ERROR [root] type object 'TaskFail' has no attribute 'execution_date'
`
### What you think should happen instead
Airflow is working fine, but maybe no error ? :D
### How to reproduce
Run db upgrade.
### Operating System
Debian 10.13
### Versions of Apache Airflow Providers
airflow-exporter==1.5.3
apache-airflow==2.5.0
apache-airflow-providers-amazon==6.2.0
apache-airflow-providers-apache-cassandra==3.1.0
apache-airflow-providers-apache-hdfs==3.2.0
apache-airflow-providers-apache-hive==4.1.1
apache-airflow-providers-apache-spark==4.0.0
apache-airflow-providers-celery==3.1.0
apache-airflow-providers-cncf-kubernetes==5.0.0
apache-airflow-providers-common-sql==1.3.2
apache-airflow-providers-docker==3.3.0
apache-airflow-providers-elasticsearch==4.3.1
apache-airflow-providers-ftp==3.3.0
apache-airflow-providers-google==8.6.0
apache-airflow-providers-grpc==3.1.0
apache-airflow-providers-hashicorp==3.2.0
apache-airflow-providers-http==4.1.0
apache-airflow-providers-imap==3.1.1
apache-airflow-providers-microsoft-azure==5.0.0
apache-airflow-providers-mysql==3.4.0
apache-airflow-providers-odbc==3.2.1
apache-airflow-providers-oracle==3.5.1
apache-airflow-providers-postgres==5.3.1
apache-airflow-providers-redis==3.1.0
apache-airflow-providers-sendgrid==3.1.0
apache-airflow-providers-sftp==4.2.0
apache-airflow-providers-slack==7.1.0
apache-airflow-providers-sqlite==3.3.1
apache-airflow-providers-ssh==3.3.0
google-cloud-orchestration-airflow==1.4.1
### Deployment
Docker-Compose
### Deployment details
I'm using MySQL Percona version 8.0.29.
### Anything else
Here are the full upgrade logs :
```
hdp-airflowdocker01-u01.dc05-airflow-scheduler | DB: mysql+mysqldb://airflow:***@10.2.235.183/airflow
hdp-airflowdocker01-u01.dc05-airflow-scheduler | Performing upgrade with database mysql+mysqldb://airflow:***@10.2.235.183/airflow
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,088] {db.py:1436} DEBUG - running check function check_conn_id_duplicates
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,259] {db.py:1436} DEBUG - running check function check_conn_type_null
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,267] {db.py:1436} DEBUG - running check function check_run_id_null
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,438] {db.py:1436} DEBUG - running check function check_bad_references
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,690] {db.py:1382} DEBUG - checking model task_instance
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,691] {db.py:1382} DEBUG - checking model task_reschedule
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,691] {db.py:1382} DEBUG - checking model rendered_task_instance_fields
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,691] {db.py:1382} DEBUG - checking model task_fail
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,691] {db.py:1382} DEBUG - checking model xcom
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,691] {db.py:1436} DEBUG - running check function check_username_duplicates
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,738] {migration.py:204} INFO - Context impl MySQLImpl.
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,738] {migration.py:207} INFO - Will assume non-transactional DDL.
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,757] {db.py:1570} INFO - Creating tables
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,758] {settings.py:407} DEBUG - Disposing DB connection pool (PID 6)
hdp-airflowdocker01-u01.dc05-airflow-scheduler | [2023-01-09 13:58:31,760] {settings.py:266} DEBUG - Setting up DB connection pool (PID 6)
hdp-airflowdocker01-u01.dc05-airflow-scheduler | INFO [alembic.runtime.migration] Context impl MySQLImpl.
hdp-airflowdocker01-u01.dc05-airflow-scheduler | INFO [alembic.runtime.migration] Will assume non-transactional DDL.
hdp-airflowdocker01-u01.dc05-airflow-scheduler | INFO [alembic.runtime.migration] Running upgrade b0d31815b5a6 -> e07f49787c9d, Add case-insensitive unique constraint for username
hdp-airflowdocker01-u01.dc05-airflow-scheduler | INFO [alembic.runtime.migration] Running upgrade e07f49787c9d -> ee8d93fcc81e, Add updated_at column to DagRun and TaskInstance
hdp-airflowdocker01-u01.dc05-airflow-scheduler | INFO [alembic.runtime.migration] Running upgrade ee8d93fcc81e -> 1986afd32c1b, Add DagRunNote and TaskInstanceNote
hdp-airflowdocker01-u01.dc05-airflow-scheduler | INFO [alembic.runtime.migration] Running upgrade 1986afd32c1b -> 290244fb8b83, Add is_orphaned to DatasetModel
hdp-airflowdocker01-u01.dc05-airflow-scheduler | ERROR [root] type object 'TaskFail' has no attribute 'execution_date'
hdp-airflowdocker01-u01.dc05-airflow-scheduler | /home/airflow/.local/lib/python3.8/site-packages/airflow/models/param.py:67 RemovedInAirflow3Warning: The use of non-json-serializable params is deprecated and will be removed in a future release
hdp-airflowdocker01-u01.dc05-airflow-scheduler | Upgrades done
hdp-airflowdocker01-u01.dc05-airflow-scheduler exited with code 0
```
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error on db upgrade (no attribute execution_date) [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #28804:
URL: https://github.com/apache/airflow/issues/28804#issuecomment-2002336692
This issue has been closed because it has not received response from the issue author.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error on db upgrade (no attribute execution_date) [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #28804:
URL: https://github.com/apache/airflow/issues/28804#issuecomment-1940530835
This issue has been automatically marked as stale because it has been open for 365 days without any activity. There has been several Airflow releases since last activity on this issue. Kindly asking to recheck the report against latest Airflow version and let us know if the issue is reproducible. The issue will be closed in next 30 days if no further activity occurs from the issue author.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] arjunanan6 commented on issue #28804: Error on db upgrade (no attribute execution_date)
Posted by "arjunanan6 (via GitHub)" <gi...@apache.org>.
arjunanan6 commented on issue #28804:
URL: https://github.com/apache/airflow/issues/28804#issuecomment-1426978196
@Jeoffreybauvin Is there anything specific that you did besides `airflow db upgrade`? I'm running Airflow with a MySQL backend, but cannot reproduce the problem.
Although, I could add execution_date as an attribute to the TaskFail class with None as default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] arjunanan6 commented on issue #28804: Error on db upgrade (no attribute execution_date)
Posted by "arjunanan6 (via GitHub)" <gi...@apache.org>.
arjunanan6 commented on issue #28804:
URL: https://github.com/apache/airflow/issues/28804#issuecomment-1425989259
I'd like to work on this, if no one else has expressed interest. :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] ephraimbuddy commented on issue #28804: Error on db upgrade (no attribute execution_date)
Posted by "ephraimbuddy (via GitHub)" <gi...@apache.org>.
ephraimbuddy commented on issue #28804:
URL: https://github.com/apache/airflow/issues/28804#issuecomment-1426024351
@arjunanan6 , I have assigned it to you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #28804: Error on db upgrade (no attribute execution_date)
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #28804:
URL: https://github.com/apache/airflow/issues/28804#issuecomment-1376297835
This is a harmles error but it would be nice to remove it. Marked it as good-first-issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error on db upgrade (no attribute execution_date) [airflow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #28804: Error on db upgrade (no attribute execution_date)
URL: https://github.com/apache/airflow/issues/28804
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org