-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
applicationset-controller update to latest version after 6.17, get fatal error: Could not read from remote repository #18748
Comments
Got same error today after updating from 2.11.7 to 2.12.0, rollback fixes the error
|
☝🏻 I get the exact same error as @ilbarone87. Rollback to 2.11.7 fixed the error. It's still prevalent in finished unary call with code Internal" error="rpc error: code = Internal desc = unable to checkout git repo https://github.com/org/reponame-argocd with revision e72b5cdc27d48e7d2db577f0d23f0856af8dd997 pattern */apps/cluster-config/values.yaml:
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" grpc.code=Internal grpc.method=GetGitFiles grpc.service=repository.RepoServerService grpc.start_time="2024-08-06T10:59:48Z" grpc.time_ms=334.837 span.kind=server system=grpc |
I'm also seeing this on 2.12.0 where a rollback fixes the issue. With the same Git repository, the application works while the application set does not. |
OP was on 2.9, so I'm guessing we're seeing something new with similar symptoms to the old issue. |
Similar error here. All worked on v2.11.1, but failed once upgraded to v2.12.0:
I am using an OpenSSH formatted Ed25519 key to auth to a Github repo. The upgrade did not change the Secret containing the repository configuration and key. I reverted back to v2.11.1 and no more errors, so there does seem to be some regression in v2.12.0. -- I did some investigation and found this:
|
We have the same issue. Works again after rollback. |
For the failing repo, was the |
Yes it is set to "default" |
We have |
Same here, set to default. Our repo Secrets have the following keys:
|
|
I can confirm the issue on 2.12.x is gone when the repository credential used by the ApplicationSet does NOT have a |
Is it okay to remove it before upgrading or will it break something? |
It's fine to remove the |
I have tried now and it works after removing |
Related to argoproj#18748,argoproj#19585 and argoproj#19587. Signed-off-by: Blake Pettersson <[email protected]>
* docs: note cluster scoping changes in 2.12x Related to #18748,#19585 and #19587. Signed-off-by: Blake Pettersson <[email protected]> * docs: add note in projects doc. Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]>
* docs: note cluster scoping changes in 2.12x Related to #18748,#19585 and #19587. Signed-off-by: Blake Pettersson <[email protected]> * docs: add note in projects doc. Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]>
* docs: note cluster scoping changes in 2.12x Related to #18748,#19585 and #19587. * docs: add note in projects doc. --------- Signed-off-by: Blake Pettersson <[email protected]> Co-authored-by: Blake Pettersson <[email protected]>
* docs: note cluster scoping changes in 2.12x Related to #18748,#19585 and #19587. Signed-off-by: Blake Pettersson <[email protected]> * docs: add note in projects doc. Signed-off-by: Blake Pettersson <[email protected]> --------- Signed-off-by: Blake Pettersson <[email protected]>
me too |
Checklist:
argocd version
.Describe the bug
I use argocd:v2.12.0+fe965ed at production. At 2024.6.17, applicationset-controller pod has rebuilded, then I get a fatal error: Could not read from remote repository. see log details below.
Then I checked my ssh private key and git repo server status, it worked as well. Argocd can do refreshing and syncing operation as well, only appset can not work.
I change git repository credentials from ssh to https, and error log in applicationset-controller continues.
Finally, I rollback applicationset-controller to the version two weeks ago(v2.11.3) and error log ends.
So I think the lastest version after 6.17 maybe has some bugs in applicationset-controller. I am not fimiliar with go, and cannot findout the exact point.
https://quay.io/repository/argoproj/argocd?tab=tags&tag=latest
To Reproduce
Expected behavior
I hope the developers can review the code, and fix it
Screenshots
Version
argocd: v2.9.3+6eba5be.dirty
BuildDate: 2023-12-02T00:37:12Z
GitCommit: 6eba5be
GitTreeState: dirty
GoVersion: go1.21.4
Compiler: gc
Platform: darwin/arm64
argocd-server: v2.12.0+fe965ed
Logs
time="2024-06-20T02:29:19Z" level=error msg="error generating params" error="error generating params from git: error retrieving Git files: rpc error: code = Internal desc = unable to checkout git repo [email protected]:gitops.git with revision 92af11f9752df68b9b6dea5bf893c95fd781f166 pattern /*/config.json: failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default:
git fetch origin --tags --force --prunefailed exit status 128: [email protected]: Permission denied (publickey,keyboard-interactive).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists." generator="&{0xc000b8c5c0}"
time="2024-06-20T02:29:19Z" level=error msg="error generating application from params" applicationset=argocd/appset-dev error="error generating params from git: error retrieving Git files: rpc error: code = Internal desc = unable to checkout git repo [email protected]:common/gitops.git with revision 92af11f9752df68b9b6dea5bf893c95fd781f166 pattern /*/config-dev.json: failed to initialize repository resources: rpc error: code = Internal desc = Failed to fetch default:
git fetch origin --tags --force --prunefailed exit status 128: [email protected]: Permission denied (publickey,keyboard-interactive).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists." generator="{nil nil &GitGenerator{RepoURL:[email protected]:common/gitops.git,Directories:[]GitDirectoryGeneratorItem{},Files:[]GitFileGeneratorItem{GitFileGeneratorItem{Path:nadp/lbs/*/config-dev.json,},},Revision:HEAD,RequeueAfterSeconds:nil,Template:ApplicationSetTemplate{ApplicationSetTemplateMeta:ApplicationSetTemplateMeta{Name:,Namespace:,Labels:map[string]string{},Annotations:map[string]string{},Finalizers:[],},Spec:ApplicationSpec{Source:nil,Destination:ApplicationDestination{Server:,Namespace:,Name:,},Project:,SyncPolicy:nil,IgnoreDifferences:[]ResourceIgnoreDifferences{},Info:[]Info{},RevisionHistoryLimit:nil,Sources:[]ApplicationSource{},},},PathParamPrefix:,Values:map[string]string{},} nil nil nil nil nil nil nil}"
The text was updated successfully, but these errors were encountered: