The repo-server logs `Error: unknown command "kustomize" for "argocd"` or a plugin app shows `couldn't find cmp-server plugin`.
AdvancedTroubleshootingManifest Generation & ComparisonError
Answer
Likely causes → The Application references a plugin that is not installed as a sidecar, the sidecar is crash-looping, or the plugin name (including version suffix) does not match.
Diagnose →
kubectl -n argocd get pod -l app.kubernetes.io/name=argocd-repo-server -o jsonpath='{.items[0].spec.containers[*].name}'
kubectl -n argocd logs deploy/argocd-repo-server -c <plugin-sidecar>
Fix → Install or fix the CMP sidecar with its plugin.yaml; reference it as plugin.name: <name>-<version> when a version is set, or let discovery match it.
Prevent → Version and test plugin sidecars as part of the Argo CD deployment.
More on Manifest Generation & ComparisonError
`ComparisonError: Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): ...`Intermediate`rpc error: code = Unknown desc = `helm template . --name-template web --namespace web ... --include-crds` failed exit status 1: Error: template: web/templates/deployment.yaml:24:20: executing "web/templates/deployment.yaml" at <.Values.image.tag>: nil pointer evaluating interface {}.tag`Beginner`Error: open envs/prod/values.yaml: no such file or directory` when the app renders.Beginner`Error: values file '../../envs/prod/values.yaml' resolved to outside repository root`IntermediateKustomize app fails: `kustomize build ... failed exit status 1: Error: accumulating resources: accumulation err='accumulating resources from '../../base': ... must build at directory: not a valid directory'`.Beginner`Error: trouble configuring builtin HelmChartInflationGenerator with config: ... must specify --enable-helm`Intermediate