You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
When running argocd command line from desktop to sync an project, it gave the following error:
argocd app sync my-project
ERRO[0001] Could not set-up SSH known hosts callback: open /app/config/ssh/ssh_known_hosts: no such file or directory
FATA[0001] rpc error: code = FailedPrecondition desc = ssh: handshake failed: knownhosts: key mismatch
Likely related to #7723. However, we had already fix update the known ssh cm as well as created a new key with ecdsa, as well as upgraded argocd server to the latest 2.1.7 version. We had also validated that the solution works well when during auto-sync and triggering sync from the Web UI that is running on the cluster.
A project with private github repo is configured for the app, and an ssh deploy key is used.
Expected behavior
It shall just trigger the sync like clicking sync from the Web UI
Version
argocd: v2.1.7+a408e29
BuildDate: 2021-11-17T22:12:41Z
GitCommit: a408e299ffa743213df3aa9135bf7945644ec936
GitTreeState: clean
GoVersion: go1.16.5
Compiler: gc
Platform: darwin/amd64
argocd-server: v2.1.7+a408e29
BuildDate: 2021-11-17T22:12:41Z
GitCommit: a408e299ffa743213df3aa9135bf7945644ec936
GitTreeState: clean
GoVersion: go1.16.5
Compiler: gc
Platform: darwin/amd64
Ksonnet Version: unable to determine ksonnet version: exec: "ks": executable file not found in$PATH
Kustomize Version: could not get kustomize version: exec: "kustomize": executable file not found in$PATH
Helm Version: v3.7.1+g1d11fcb
Kubectl Version: v0.21.0
Jsonnet Version: v0.17.0
same error on 2.1.6
Logs
ERRO[0001] Could not set-up SSH known hosts callback: open /app/config/ssh/ssh_known_hosts: no such file or directory
FATA[0001] rpc error: code = FailedPrecondition desc = ssh: handshake failed: knownhosts: key mismatch
The text was updated successfully, but these errors were encountered:
fivesheep
changed the title
argocd command line too throw ssh handshake error on app sync
argocd cli throws ssh handshake error on app sync
Nov 18, 2021
Hi. In an upgrade scenario, you need to update the manifests as well, since they host keys are stored in the argocd-known-hosts-cm ConfigMap, not in the container image.
Thank you for pointing this out @jannfis ! Now I've realized this is a duplicate of #7565 . @ishitasequeira started working on PR #5832 that fixes it . PR looks pretty close to completion!
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
When running argocd command line from desktop to sync an project, it gave the following error:
Likely related to #7723. However, we had already fix update the known ssh cm as well as created a new key with ecdsa, as well as upgraded argocd server to the latest 2.1.7 version. We had also validated that the solution works well when during auto-sync and triggering sync from the Web UI that is running on the cluster.
To Reproduce
A project with private github repo is configured for the app, and an ssh deploy key is used.
Expected behavior
It shall just trigger the sync like clicking sync from the Web UI
Version
same error on 2.1.6
Logs
The text was updated successfully, but these errors were encountered: