Sync shows `Retrying attempt #5` and the operation finally fails with `admission webhook "validation.gatekeeper.sh" denied the request`.
IntermediateTroubleshootingSync Operations, Hooks & Health
Answer
Likely causes → A policy engine (Gatekeeper, Kyverno) rejects the object, for example missing resource limits or a disallowed registry. Retries cannot help.
Diagnose → argocd app get web shows the full denial message; kubectl get constraints or kubectl get clusterpolicy on the cluster.
Fix → Fix the manifest in Git to meet the policy. Do not add policy exceptions to unblock one deploy without review.
Prevent → Run the same policies in CI (gator test, kyverno apply) against rendered manifests before merge.
More on Sync Operations, Hooks & Health
Sync fails with `one or more synchronization tasks are not valid` and `the server could not find the requested resource` for a custom resource.Intermediate`one or more objects failed to apply, reason: Deployment.apps "web" is invalid: spec.selector: Invalid value: ...: field is immutable`.BeginnerSync of a large CRD fails with `metadata.annotations: Too long: must have at most 262144 bytes`.BeginnerAn app has been stuck at `Syncing` for an hour with `waiting for completion of hook batch/Job/db-migrate`.IntermediateA PreSync hook fails with `jobs.batch "db-migrate" already exists`.BeginnerA PostSync smoke-test hook never runs, even though the sync says succeeded.Intermediate