-
Notifications
You must be signed in to change notification settings - Fork 614
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
(0.37.0) flux bootstrap git failed with 'unable to checkout repo with an empty set of auth options' #3358
Comments
hi @karunsiri, could you describe what your |
Hello @aryan9600, here it is
Additional Info: I can |
is your private key file not protected by a passphrase? also could you try passing in |
@aryan9600 It does work, yes, but that's going to replace the secret I never had to do this for the past version up to 0.36.0. I can upgrade progressively by running the same command, and |
hey @karunsiri, i've opened PR #3377 which should fix this. would you be able to test it? these steps should work:
|
Can confirm that Thanks. |
@aryan9600 Sorry for delay response, I was on vacation. The build log:
|
i just ran the command after doing a fresh clone of the repo and checking out to the PR branch and its working. its probably an issue on GitHub's side. could you try again? @karunsiri |
I have been facing the same issue as @karunsiri and noticed that I suddenly could no longer rely on Flux using the default SSH configuration for bootstrapping, which would then use my SSH authentication agent to communicate with GitHub. Based on the instructions in #3358 (comment) I tested #3377 by @aryan9600 and can indeed confirm that said PR fixed the issue for me. Unlike the current release, this allowed me once again to bootstrap Flux with an SSH-based Git repository without specifying any credentials. |
Describe the bug
After each Flux release, I would re-run the bootstrap command to upgrade flux resources running within a cluster.
The problem occurs when I try to upgrade from
0.36.0
to0.37.0
. When I run bootstrap, the command fails and outputsfailed to clone repository: unable to checkout repo with an empty set of auth options
.The pass versions can be re-bootstrapped (upgraded) successfully.
Steps to reproduce
0.36.0
.0.37.0
Expected behavior
The command should succeed and upgrade flux resources running within the cluster to the latest version.
Screenshots and recordings
OS / Distro
Fedora 37
Flux version
0.37.0
Flux check
► checking prerequisites
✔ Kubernetes 1.21.14-eks-fb459a0 >=1.20.6-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.26.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.30.0
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.28.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.31.0
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta1
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1beta2
✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
✔ helmreleases.helm.toolkit.fluxcd.io/v2beta1
✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1beta2
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta1
✔ receivers.notification.toolkit.fluxcd.io/v1beta1
✔ all checks passed
Git provider
GitHub
Container Registry provider
No response
Additional context
Additional Info: I can
git clone <repo_url>
directly just fine.Code of Conduct
The text was updated successfully, but these errors were encountered: