Open LarryGF opened 2 months ago
Hey @LarryGF, can you share the logs of the application-controller component for your application and add it to the issue. Also, if you can turn on debug logs for the repo-server component and share the logs related to this method, it would greatly help understand where the error come from. https://github.com/argoproj/argo-cd/blob/0f72c19e31481c38774a26e8147c1e3bfd5e0ecc/util/git/client.go#L619
Hi, I think I was able to fix the problem (maybe not the cause, but at least the symptoms) by increasing the ARGOCD_GIT_ATTEMPTS_COUNT
env var in the repo-server
. I will enable debug mode and see what the logs throw out
Checklist:
argocd version
.Describe the bug
When you have an app-of-apps that gets refreshed by a push to the "app-of-apps repo", it refreshes successfully and updates the child apps. But sometimes when the change involves changing the targetRef the child app Sync Status goes into Unknown and there's an error saying that it can't find the Ref's SHA:
Failed to load target state: failed to compare revisions for source 1 of 1: rpc error: code = Internal desc = unable to resolve git revision
. It can get fixed by manually refreshing the child app but it doesn't happen automatically. It's worth noting that in our scenario these updates to the Refs of the child apps happen automatically when a new version is released, so the tag definitely existsTo Reproduce
Expected behavior
After the app-of-app refreshes, the child app should automatically refresh every time
Screenshots
Version
Logs Not a log, but this is the manifest for an application where this error happened: