argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.48k stars 5.32k forks source link

rpc error: code = Internal desc = Failed to fetch default: `git fetch origin --tags --force --prune` failed exit status 128: kex_exchange_identification #19174

Open Puvendhan opened 2 months ago

Puvendhan commented 2 months ago

Checklist:

Describe the bug Argocd has been upgraded from version 2.7.3 to version 2.11.3 and I am getting the below error continuously on all the applications running in argocd. All the applications are becoming unknown for few seconds and then syncs automatically and becomes normal afterwards.

To Reproduce Deploy Argocd with 2.11.3, create the CREDENTIALS TEMPLATE URL under settings. Create the applications with remote repository urls.

Expected behavior All the applications should sync properly.

Screenshots

Screenshot 2024-07-23 at 10 10 33 (1)

Version

Argo CD
v2.11.3+3f344d5

Logs 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: kex_exchange_identification: Connection closed by remote host Connection closed by xx.xx.xx.xx port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

christianh814 commented 2 months ago

Possible duplicate of #16532

Puvendhan commented 1 month ago

Is anyone looking into this?

Puvendhan commented 1 month ago

Any update on this?

Puvendhan commented 1 month ago

Any fix for this?, can anyone look into this?

petrlebedev commented 2 weeks ago

Using SSH instead of HTTPS will help with that problem (I know that this is workaround and issue should be fixed separately)

cuong-ts commented 1 week ago

same error

Unable to load data: error acquiring repo lock: 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: could not read Username for 'https://github.com': terminal prompts disabled