Closed cgkades closed 3 years ago
I tried to log in to our artifactory and it crashed. OS: Mac 10.14.6
Version:
╰─ kim --version kim version v0.1.0-beta.5 (23c49805524b837a8172936d80a1e173f939b633)
Error
╰─ kim builder login <artifactory server> Username: <myusername> Password: <pasted password from artifactory> E0901 12:34:38.371902 67625 runtime.go:78] Observed a panic: "assignment to entry in nil map" (assignment to entry in nil map) goroutine 1 [running]: k8s.io/apimachinery/pkg/util/runtime.logPanic(0x2793a40, 0x2c1aff0) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/runtime/runtime.go:74 +0x95 k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/runtime/runtime.go:48 +0x86 panic(0x2793a40, 0x2c1aff0) /usr/local/go/src/runtime/panic.go:965 +0x1b9 github.com/rancher/kim/pkg/client/builder.(*Login).Do.func1(0x0, 0xc0003f98e8) /drone/src/pkg/client/builder/login.go:60 +0x217 k8s.io/client-go/util/retry.OnError.func1(0xc000798510, 0xc0003f98e8, 0x12016bf) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go@v1.20.6-k3s1/util/retry/util.go:51 +0x3c k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0xc0003f9978, 0x1200400, 0x0, 0x0) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/wait/wait.go:211 +0x69 k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff(0x989680, 0x3ff0000000000000, 0x3fb999999999999a, 0x5, 0x0, 0xc00098f978, 0x0, 0x11ffce5) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/wait/wait.go:399 +0x55 k8s.io/client-go/util/retry.OnError(0x989680, 0x3ff0000000000000, 0x3fb999999999999a, 0x5, 0x0, 0x2ac93e0, 0xc0003f9a18, 0x0, 0xc000403e40) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go@v1.20.6-k3s1/util/retry/util.go:50 +0xa6 k8s.io/client-go/util/retry.RetryOnConflict(...) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go@v1.20.6-k3s1/util/retry/util.go:104 github.com/rancher/kim/pkg/client/builder.(*Login).Do(0xc000486d50, 0x2c7ee00, 0xc000485180, 0xc000885770, 0xc000403e48, 0x35, 0x0, 0x0) /drone/src/pkg/client/builder/login.go:23 +0xed github.com/rancher/kim/pkg/cli/command/builder/login.(*CommandSpec).Run(0xc000486d50, 0xc00024adc0, 0xc000202bf0, 0x1, 0x1, 0x0, 0x0) /drone/src/pkg/cli/command/builder/login/login.go:98 +0x646 github.com/rancher/wrangler-cli.bind.func1(0xc00024adc0, 0xc000202bf0, 0x1, 0x1, 0x0, 0x0) /go/pkg/mod/github.com/rancher/wrangler-cli@v0.0.0-20210217230406-95cfa275f52f/builder.go:270 +0x15d github.com/spf13/cobra.(*Command).execute(0xc00024adc0, 0xc000202bd0, 0x1, 0x1, 0xc00024adc0, 0xc000202bd0) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x472 github.com/spf13/cobra.(*Command).ExecuteC(0xc000205340, 0xc00012a010, 0x2c7ee00, 0xc000485180) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x375 github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895 github.com/spf13/cobra.(*Command).ExecuteContext(...) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:888 github.com/rancher/wrangler-cli.Main(0xc000205340) /go/pkg/mod/github.com/rancher/wrangler-cli@v0.0.0-20210217230406-95cfa275f52f/builder.go:73 +0x6d main.main() /drone/src/main.go:29 +0xd4 panic: assignment to entry in nil map [recovered] panic: assignment to entry in nil map goroutine 1 [running]: k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/runtime/runtime.go:55 +0x109 panic(0x2793a40, 0x2c1aff0) /usr/local/go/src/runtime/panic.go:965 +0x1b9 github.com/rancher/kim/pkg/client/builder.(*Login).Do.func1(0x0, 0xc0003f98e8) /drone/src/pkg/client/builder/login.go:60 +0x217 k8s.io/client-go/util/retry.OnError.func1(0xc000798510, 0xc0003f98e8, 0x12016bf) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go@v1.20.6-k3s1/util/retry/util.go:51 +0x3c k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtection(0xc0003f9978, 0x1200400, 0x0, 0x0) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/wait/wait.go:211 +0x69 k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff(0x989680, 0x3ff0000000000000, 0x3fb999999999999a, 0x5, 0x0, 0xc00098f978, 0x0, 0x11ffce5) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/apimachinery@v1.20.6-k3s1/pkg/util/wait/wait.go:399 +0x55 k8s.io/client-go/util/retry.OnError(0x989680, 0x3ff0000000000000, 0x3fb999999999999a, 0x5, 0x0, 0x2ac93e0, 0xc0003f9a18, 0x0, 0xc000403e40) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go@v1.20.6-k3s1/util/retry/util.go:50 +0xa6 k8s.io/client-go/util/retry.RetryOnConflict(...) /go/pkg/mod/github.com/k3s-io/kubernetes/staging/src/k8s.io/client-go@v1.20.6-k3s1/util/retry/util.go:104 github.com/rancher/kim/pkg/client/builder.(*Login).Do(0xc000486d50, 0x2c7ee00, 0xc000485180, 0xc000885770, 0xc000403e48, 0x35, 0x0, 0x0) /drone/src/pkg/client/builder/login.go:23 +0xed github.com/rancher/kim/pkg/cli/command/builder/login.(*CommandSpec).Run(0xc000486d50, 0xc00024adc0, 0xc000202bf0, 0x1, 0x1, 0x0, 0x0) /drone/src/pkg/cli/command/builder/login/login.go:98 +0x646 github.com/rancher/wrangler-cli.bind.func1(0xc00024adc0, 0xc000202bf0, 0x1, 0x1, 0x0, 0x0) /go/pkg/mod/github.com/rancher/wrangler-cli@v0.0.0-20210217230406-95cfa275f52f/builder.go:270 +0x15d github.com/spf13/cobra.(*Command).execute(0xc00024adc0, 0xc000202bd0, 0x1, 0x1, 0xc00024adc0, 0xc000202bd0) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850 +0x472 github.com/spf13/cobra.(*Command).ExecuteC(0xc000205340, 0xc00012a010, 0x2c7ee00, 0xc000485180) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958 +0x375 github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895 github.com/spf13/cobra.(*Command).ExecuteContext(...) /go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:888 github.com/rancher/wrangler-cli.Main(0xc000205340) /go/pkg/mod/github.com/rancher/wrangler-cli@v0.0.0-20210217230406-95cfa275f52f/builder.go:73 +0x6d main.main() /drone/src/main.go:29 +0xd4
I tried to log in to our artifactory and it crashed. OS: Mac 10.14.6
Version:
Error