Open DhamodharReddy opened 7 months ago
i am facing the same issue
Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default: git fetch origin --tags --force --prune
failed exit status 128: fatal: fetch-pack: invalid index-pack output
Check if in repository pod/container you have HOME environment variable set to /home/argocd. Not sure if it was in latest argocd image from redhat, or gitops-operator, but something did set it to HOME=/ instead. When you tried to pull image it tried to create .ssh folder in /.ssh, and git crashed. If you use gitops-operator in openshift, fix is to set this in your ArgoCD resource:
spec:
repo:
env:
- name: HOME
value: /home/argocd
Discussed in https://github.com/argoproj/argo-cd/discussions/17917