after migrating from version 2.1.4 to 2.3.0 airflow is unable to view the scheduler logs #22992
Replies: 4 comments 13 replies
-
This looks lie deployment issue - I think you should open support request to Astronomer. |
Beta Was this translation helpful? Give feedback.
-
I am seeing the same problem on my test instance with 2.3.0, Standard Upgrade vom 2.2.4, no errors on the DB migration. As far as i could reverse engineer it, it seems that there is only one entry in the log_template table and this one contains the new filename format |
Beta Was this translation helpful? Give feedback.
-
I also ran into this after upgrading airflow using the default config before and after the upgrade (like @wbg). Managed to migrate to the new logs folder structure using this quick and dirty script: https://gist.github.com/pspeter/13c18ee6cf247a5ee2b3e3b2ee8a5470 Backup your logs before running this on the system (e.g. using |
Beta Was this translation helpful? Give feedback.
-
It looks like backward compatibility bug. |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
main (development)
What happened
After migrating from version 2.1.4 to 2.3.0 and running
airflow db upgrade
I try to view the logs of tasks run in 2.1.4 in the UI and I'm given this error:It gives this error whether you update the database with
airflow db upgrade
or don't update the database at all.What you think should happen instead
I should be able to view the logs from tasks ran in a different version than what the current version is.
How to reproduce
start airflow with version 2.1.4
run dags in 2.1.4
change dockerfile to that of version 2.3.0
check logs of tasks run in version 2.1.4 and you'll receive that error
Operating System
Docker (debian:buster)
Versions of Apache Airflow Providers
No response
Deployment
Astronomer
Deployment details
quay.io/astronomer/ap-airflow-dev:2.1.4-7-buster-nightly-20220411
quay.io/astronomer/ap-airflow-dev:2.3.0.dev20220411
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions