Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH agent requested but SSH_AUTH_SOCK not-specified Error occured when upgrade version to v2.12.0 #2877

Open
wangxin-trec opened this issue Aug 13, 2024 · 6 comments
Labels
argo-cd bug Something isn't working

Comments

@wangxin-trec
Copy link

Describe the bug

Error occured when upgrade version to v2.12.0
Error:
error resolving repo revision: rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"

Sync operation to failed: ComparisonError: 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: [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. (retried 5 times)

Related helm chart

argo-cd

Helm chart version

3.9.3

To Reproduce

1.version 2.11.7 -> 2.12.0

Expected behavior

SSH related error

Screenshots

image

Additional context

No response

@wangxin-trec wangxin-trec added the bug Something isn't working label Aug 13, 2024
@wangxin-trec
Copy link
Author

PS:Use this PR
#2820

@yu-croco
Copy link
Collaborator

yu-croco commented Aug 14, 2024

Hi @wangxin-trec , argo-helm is for supporting to install Argo CD but we don't take care of Argo CD itself.
This issue seems to be related Argo CD's behavior, not Helm Chart itself, so I think you can get more help in upstream.

[updated]

Helm chart version
3.9.3

Helm chart version looks too old for Argo CD v2.12.0 since we also update CRD, CM and Secret as following upstream. So I recommend you to update Helm Chart itself.
*The latest Helm chart version is v7.4.3

@lcapka
Copy link

lcapka commented Aug 20, 2024

Hi, we are having the same issue after upgrading argo-cd Helm Chart 6.11.1 -> 7.4.4. No idea how to fix it other than rollback to 6.11.1.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@4TT1L4
Copy link

4TT1L4 commented Oct 25, 2024

I am getting the same error now after updating to v2.12.6+4dab5bd (Build Date: 2024-10-18T17:39:26Z).

We haven't seen this error previously with the earlier versions.

Comparison error is shown for the app state:

ComparisonError
Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = error creating SSH agent: "SSH agent requested but SSH_AUTH_SOCK not-specified"

There is a related StackOverflow question:

Some people managed to resolve the issue by updating to a different version. For others it was due to some indentation problem in the repositories.yaml.

UPDATE: I have managed to resolve this issue by simply removing the connection from the repositories via the ArgoCD UI, then setting it up again with a new SSH key. After this, the SSH connection started to work again. I am not really sure what caused the issue, but something might had been corrupted during the update and setting this up again has helped to resolve the issue.

@valkiriaaquatica
Copy link

Adding another posible solution just in case the sourece repo is taken with SSH (not HTTPS), make sure the project you deployed the app has the correct ssh keys or whatever configured with the SCM (gtihub,gitlab...) to be able to make the SSH connection and pull the data from the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argo-cd bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants