Pipeline0.1版本流水线中对接私有gitlab后,添加流水线时无法显示仓库
Pipeline0.1版本流水线中对接私有gitlab后,添加流水线时无法显示仓库, pipeline-pipeline-server-1 有以下错误日志:
2:35192.168.1.122 - - "GET /v1/schemas/scmsetting?sort=name HTTP/1.1" 200 814
2018/1/3 下午5:32:35192.168.1.122 - - "GET /v1/gitaccounts/gitlab:root/repos HTTP/1.1" 200 412
2018/1/3 下午5:32:35192.168.1.122 - - "GET /v1/scmsettings?limit=-1&sort=name HTTP/1.1" 200 774
2018/1/3 下午5:32:382018/01/03 09:32:38 http: panic serving 10.42.0.1:55942: runtime error: invalid memory address or nil pointer dereference
2018/1/3 下午5:32:38goroutine 285 :
2018/1/3 下午5:32:38net/http.(*conn).serve.func1(0xc4202181e0)
2018/1/3 下午5:32:38 /usr/local/go/src/net/http/server.go:1721 +0xd0
2018/1/3 下午5:32:38panic(0x9d1e60, 0xf0cb90)
2018/1/3 下午5:32:38 /usr/local/go/src/runtime/panic.go:489 +0x2cf
2018/1/3 下午5:32:38github.com/rancher/pipeline/scm.GitlabManager.toGitRepo(0xc4201caed0, 0xd, 0xc4201caef0, 0x7, 0xc4201fae00, 0x2, 0x2, 0x2, 0x0, 0xc4200f9500)
2018/1/3 下午5:32:38 /go/src/github.com/rancher/pipeline/scm/gitlab_manager.go:162 +0x1a9
2018/1/3 下午5:32:38github.com/rancher/pipeline/scm.GitlabManager.getGitlabRepos(0xc4201caed0, 0xd, 0xc4201caef0, 0x7, 0xc4202bf380, 0x40, 0x0, 0x0, 0x0, 0x0, ...)
2018/1/3 下午5:32:38 /go/src/github.com/rancher/pipeline/scm/gitlab_manager.go:151 +0x73f
2018/1/3 下午5:32:38github.com/rancher/pipeline/scm.GitlabManager.GetRepos(0xc4201caed0, 0xd, 0xc4201caef0, 0x7, 0xc420098180, 0xc4203f2180, 0xf25600, 0xc420358a80, 0x0, 0xc4203f2180)
2018/1/3 下午5:32:38 /go/src/github.com/rancher/pipeline/scm/gitlab_manager.go:63 +0x79
2018/1/3 下午5:32:38github.com/rancher/pipeline/scm.(*GitlabManager).GetRepos(0xc420358a80, 0xc420098180, 0xf25600, 0xc420358a80, 0x0, 0x0, 0x980c20)
2018/1/3 下午5:32:38 :14 +0x72
2018/1/3 下午5:32:38github.com/rancher/pipeline/server/service.RefreshRepos(0xc42032c6d5, 0xb, 0xa7d72f, 0x2, 0xc4203f1a68, 0xc42031b7a0, 0x4d73be)
2018/1/3 下午5:32:38 /go/src/github.com/rancher/pipeline/server/service/account_service.go:27 +0x9d
2018/1/3 下午5:32:38github.com/rancher/pipeline/server.(*Server).RefreshRep
没有找到相关结果
已邀请:
1 个回复
hongxiaolu
赞同来自: AaronW 、管理员 、汀°
临时的解决办法:
进入 project settings->members->add to project, 重新给账户添加guest 以上的权限