`rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 10.96.12.4:8081: connect: connection refused"`
IntermediateTroubleshootingManifest Generation & ComparisonError
Answer
Likely causes → The controller or server cannot reach argocd-repo-server on 8081: repo-server pods crashed (OOM), are restarting, or a NetworkPolicy blocks it.
Diagnose →
kubectl -n argocd get pods -l app.kubernetes.io/name=argocd-repo-server
kubectl -n argocd describe pod <repo-server-pod> | grep -A5 'Last State'
kubectl -n argocd get networkpolicy
Fix → Fix the crash (memory limits, parallelism), restore network policy rules allowing controller and server to repo-server.
Prevent → Multiple repo-server replicas with a PDB and memory alerts.
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