smagoddK零S
telepresence –namespace kubesphere-system –swap-deployment ks-account –expose 9090:9090 –run go run ./cmd/ks-iam/apiserver.go –logtostderr=true –enable-multi-login=False –token-idle-timeout=40m –generate-kubeconfig=true
报错:E0622 11:13:30.430267 11022 ldap.go:42] factory is not able to fill the pool: LDAP Result Code 200 “Network Error”: dial tcp 120.240.95.35:389: connect: connection refused
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0×1 addr=0×18 pc=0×1086845]
goroutine 1 [running]:
kubesphere.io/kubesphere/pkg/simple/client/ldap.NewLdapClient(0xc0000b0c80, 0xc0000b3560, 0×0, 0×0, 0×0)
/home/kubesphere/code/kubesphere/pkg/simple/client/ldap/ldap.go:43 +0×175
kubesphere.io/kubesphere/pkg/simple/client.(ClientSet).Ldap(0xc0006bc0e0, 0×0, 0×0, 0×0)
/home/kubesphere/code/kubesphere/pkg/simple/client/factory.go:264 +0×134
kubesphere.io/kubesphere/pkg/models/iam.checkAndCreateDefaultUser(0×0, 0×0)
/home/kubesphere/code/kubesphere/pkg/models/iam/im.go:156 +0×60
kubesphere.io/kubesphere/pkg/models/iam.Init(0×272c39b, 0×13, 0×27169b4, 0×8, 0×2710bd2, 0×5, 0×22ecb25c000, 0xc000870100, 0×206979e, 0xfb3680300000000f)
/home/kubesphere/code/kubesphere/pkg/models/iam/im.go:84 +0xeb
kubesphere.io/kubesphere/cmd/ks-iam/app.Run(0xc0003a2f80, 0xc0000b3560, 0×0, 0×0)
/home/kubesphere/code/kubesphere/cmd/ks-iam/app/server.go:97 +0×11e
kubesphere.io/kubesphere/cmd/ks-iam/app.NewAPIServerCommand.func1(0xc00094fb80, 0xc0000b0b40, 0×0, 0×5, 0×0, 0×0)
/home/kubesphere/code/kubesphere/cmd/ks-iam/app/server.go:65 +0xf5
github.com/spf13/cobra.(Command).execute(0xc00094fb80, 0xc00004e1f0, 0×5, 0×5, 0xc00094fb80, 0xc00004e1f0)
/home/utils/golang/gopath/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:762 +0×453
github.com/spf13/cobra.(Command).ExecuteC(0xc00094fb80, 0×0, 0×0, 0×0)
/home/utils/golang/gopath/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852 +0×2ea
github.com/spf13/cobra.(Command).Execute(…)
/home/utils/golang/gopath/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800
main.main()
/home/kubesphere/code/kubesphere/cmd/ks-iam/apiserver.go:29 +0×27