Closed adrianrego closed 8 months ago
@adrianrego, thanks for reporting this issue. You may very well be right that it's a packaging issue. A lot seems to have changed between 2.8.0 and 2.8.1 in terms of the airflow build.
Are you able to provide a more specific reproducer than the screenshot? I'm not able to do much with that, I'm afraid and it doesn't give me much of a clue about what might be wrong with the packaging.
@xylar happy to help. I'm just running airflow standalone
inside of a docker image.
Okay, I'll see if I can figure this out but I'm not sure when I'll have time. Next week at the earliest, I'm afraid.
I included the Network tab of the browser devtools since it highlights the files that it can't find. Files not found are being requested at the /static/
root:
http://localhost:8080/static/dags.js
Other files deeper in static hierarchy seem to be ok:
@adrianrego, those files are in static/js
not in static
. So we'll need to figure out what (perhaps in my packaging, though I don't understand why) is pointing to the wrong location.
Okay, It looks like the www/static/dist/
directory didn't get populated as part of the package build.
I'm going to have to learn a bit more about how hatch
builds work to fix this, I'm afraid.
I believe https://github.com/conda-forge/airflow-feedstock/pull/129 will fix this. The missing files are available in the source distributed on PyPI but not on GitHub.
I'm building and testing locally right now.
airflow standalone
seemed to work for me with my local build, so I'm hopeful that this is fixed.
@adrianrego, thanks again for reporting this.
@xylar looks good on my end. thanks for the quick turnaround!!!
Solution to issue cannot be found in the documentation.
Issue
After upgrading to 2.8.1 the webserver UI is not functional as the static assets are not found:
Assuming this is a recipe issue as I haven't seen any reported issues on the main Airflow github project. This is not an issue in our image running Airflow 2.8.0.
Installed packages
Environment info