`failed to fetch chart: failed to download chart: unexpected status code 401` for an OCI Helm chart.
IntermediateTroubleshootingManifest Generation & ComparisonError
Answer
Likely causes → Missing or wrong registry credentials; for ECR, an expired token (12 hours); OCI not enabled on the repo Secret.
Diagnose → argocd repo list; check the repo Secret for type: helm and enableOCI: "true"; helm pull oci://<registry>/<chart> --version <v> with the same creds.
Fix → Update credentials; for ECR, refresh with a CronJob or an ESO ECRAuthorizationToken generator writing the repo Secret.
Prevent → Use short-lived credential automation for cloud registries.
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