Error: one or more synchronization tasks are not valid - when creating App of Apps using kustomize

Solution In Progress - Updated -

Issue

  • When creating an Apps of Apps, where each app is a kustomize app, apps do not get created. They throw the following error: one or more synchronization tasks are not valid.

  • These log entries from the argo-cd-application-controller pod seem to show a permission issue also:

time="2021-06-24T14:52:15Z" level=info msg="updated 'esig-stats-api-dev' operation (phase: Failed)"
time="2021-06-24T14:52:15Z" level=info msg="Sync operation to f00127047da9a1fffef1b2b8bf7b205a320a7bda failed: one or more synchronization tasks are not valid" application=esig-stats-api-dev dest-namespace=dcipowersystems-dev dest-server="https://kubernetes.default.svc" reason=OperationCompleted type=Warning
time="2021-06-24T14:52:15Z" level=error msg="Unable to create audit event: events is forbidden: User \"system:serviceaccount:omf-gitops:argo-cd-argocd-application-controller\" cannot create resource \"events\" in API group \"\" in the namespace \"omf-gitops\"" application=esig-stats-api-dev dest-namespace=dcipowersystems-dev dest-server="https://kubernetes.default.svc" reason=OperationCompleted type=Warning

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content