-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache Airflow DAGs are not synchronised when using git-sync:v4.3.0 #928
Comments
The logs you posted indicate success. Can you help me understand what the failure looks like t a lower level? To start, you could run git-sync with If you The inner-loop change should not change the results of running git-sync, and especially not make it claim success but actually fail. There are a number of flags that changed in v4 and it's possible that one of those is tripping you up, maybe? |
Hello @thockin, Thanks for your reply. I'm not sure how to modify the git-sync command that is executed since I'm not running Git-sync manually but using this Airflow helm chart, I'll try to figure it out. Regarding the other question, this is the output of
It appears that the content of my repo, with the subpath
But when I tried to run any of those DAGs from the UI, there's and error saying that the DAG doesn't exist, and if I add a new DAG to the branch, it doesn't get reflected in the UI. Something that I noticed from the logs that I previously shared with you:
And, when I check one of our instances that is working using the old GitSync version, I see something like this:
It seems that the path for the old version is I guess I should try to mount that EmptyDir in Regards, |
It looks like you are not setting the --root flag, which is ironically not something that changed in v4. I don't know how it would have worked before either. |
Helm has a "render" function which will show you the full result without sending it to the kube API |
Hello @thockin I believed the is the newer version expecting the mount point to be |
Look at your original logs:
Note that "/dags" is a perfectly fine value for Digging into it, I think I have a problem with my Dockerfile, which sets Once again, a reason flags are better than env :) Change all your envs to |
I will look at fixing this properly. Nice bug. |
Hello,
We've recently encountered a security issue with some of the Airflow and Git-sync versions, you can check the details here. Our remediation process is:
For nghttp2/libnghttp2-14: 1.43.0-1 upgrade Debian:11 nghttp2 to version 1.43.0-1+deb11u1 or higher.
However, it seems that we need to update the version of the git-sync sidecar container as well seems the current default version doesn't provide the updated package. I've been trying to update the version to
v4.3.0
and it seems to be working as expected, but when I push a new DAG to the branch, the DAGs seems not to be reflected in the Airflow pods (i.e. is not visible in the Web UI) when I check the logs for thedags-git-sync
sidecar container I always see something like this:In this case, the name of my branch is
airflow-dags
I understand that there has been some mayor changes from
v3
tov4
for example some of the used flags have change, but more importantly it fundamentally changes the way the internal sync-loop works (reference here), so I was wondering if there's some recommendation on how to migrate fromv3
tov4
without breaking functionality.Regards,
Alejandro.
The text was updated successfully, but these errors were encountered: