-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Could not parse repo URL #9440
Comments
Just a confirmation that we are seeing this as well in our logs. |
I have investigated this issue. The origin of the WARN logs is due to a change in #8508. There is a problem with the process of extracting the hostname from the repository URL and generating the file path of the certificate associated with the hostname. As of v2.4.2, the Parse method of the net/url package is used to extract the hostname from the repository URL. That method fails to parse if it receives a Before that change, if it was not an HTTPS Scheme, it would simply return an empty string, so there was no WARN log for repository URLs of that format. For now, if we want to enjoy the same behavior as before, it appears that we should just return an empty string when git.IsSSHURL is true. However, if we are using ssh scheme git repository URL, and the CA path is an empty string, then https://github.com/argoproj/argo-cd/blob/v2.4.2/pkg/apis/application/v1alpha1/repository_types.go#L 177, the return value of the getCAPath function at 177 will always be an empty character. Therefore, I am not sure if fixing this degrade is really the right thing to do. |
The same problem |
Our ArgoCD server is showing this logs too but it doesn't look just a warning for us because our repos connection fail to connect from time to time. We can see it in Argo config > repositories - from time to time some repos got Failed status in Connection Status, then after sometime it connects back and change the status to Successfull |
tldr; I hit this issue, and it was related to node egress security groups. I ran into this issue using versions of argocd that previously worked in other clusters ( Confirmed on at least ArgoCD |
Lose 4h... to see that it works even with the error message ... |
Time killer 😢 |
I have already made tentative corrections here. |
Thanks for y'alls patience! I just merged and cherry-picked the fix. I'll see if folks are okay with a release of 2.4.10 today. |
Checklist:
argocd version
.Describe the bug
SSH URL parsing of GitHub repos is failing.
To Reproduce
Expected behavior
No warnings in the logs. Current warnings are confusing and leave a user with an impression as if something is broken.
Screenshots
Version
Paste the output from `argocd version` here.
v2.4.0+68a0a83
Logs
The text was updated successfully, but these errors were encountered: