-
Notifications
You must be signed in to change notification settings - Fork 187
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
GitLab self-hosted: git clone unknown error #120
Comments
Any idea what that might be? |
Hi, Same issue here with the latest version of gotk: gotk --version
gotk version 0.1.6 Error message from debug log: {
"level": "error",
"ts": "2020-10-16T09:42:37.951Z",
"logger": "controller",
"msg": "Reconciler error",
"reconcilerGroup": "source.toolkit.fluxcd.io",
"reconcilerKind": "GitRepository",
"controller": "gitrepository",
"name": "gotk-system",
"namespace": "gotk-system",
"error": "git clone error: unknown error: remote: ",
"stacktrace": "github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:246\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:218\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.3/pkg/internal/controller/controller.go:197\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/go/pkg/mod/k8s.io/apimachinery@v0.18.9/pkg/util/wait/wait.go:90"
} Issue appear just after GitLab upgrade to version |
Are you implying that it worked on your previous |
I got the error with GitLab 12.10.11 |
I can't explain why this works on GitLab.com but not on self-hosted. Can someone test https repos on-prem to see if that works? GitLab on-prem https with token auth:
|
@hiddeco : Yes source-controller was working before the update. @stefanprodan: Cloning with https instead of ssh work perfectly, so at least we have a workaround 👍 We have 2 EKS clusters with gotk deployed. I just checked the second and I can't understand why this one is working even after the source-controller pods was killed. Both gotk install are up to date ( |
@phenixdotnet we don't use git the binary but go-git the package.
Maybe it's related to VPC/firewalls? |
@dbluxo can you please try HTTPS instead of SSH, using my example? I guess we could just drop ssh support from |
@stefanprodan : Yes I know that :) One thing: If the error message could be a little more explicit it could help with this kind of error :) Thanks for your help ! |
Yes, I will try it |
We take the error from go-git as it is but clearly doesn't help in this case. Would appending the git URL to the error help? |
Well, actually the error message is empty : ( |
https repos on-prem are working fine How to |
There is no such thing, but I'll make it happen 😄 |
Hi,
I tried to bootstrap the toolkit components in a GitLab (self-hosted) repository and got the following error in the last step:
The status of the GitRepository CR:
As of the
source-controller
logs:The text was updated successfully, but these errors were encountered: