Skip to content

devops组件中,创建Gitee代码仓库扫描branches报错 #1068

Description

@1057888035

What is version of KubeSphere DevOps has the issue?

1.2.4

How did you install the Kubernetes? Or what is the Kubernetes distribution?

kk install,kubernetes: v1.33.4. , kubspehre: 4.2.1

What happened?

我安装完devops组件后,在”代码仓库“中添加gitee的git仓库并配置凭证后,扫描branches报错。

接口为:/clusters/host/kapis/devops.kubesphere.io/v1alpha3/namespaces/lifesci2ds27/gitrepositories/lifesci-gateway/branches。
响应:error decoding upload-pack response: invalid pkt-len found

Relevant log output

E0204 10:30:27.329852       1 utils.go:110] /workspace/pkg/kapis/devops/v1alpha3/gitops/handler.go:292 error decoding upload-pack response: invalid pkt-len found
I0204 10:30:27.329898       1 apiserver.go:318] 10.233.70.71 - "GET /kapis/devops.kubesphere.io/v1alpha3/namespaces/lifesci2ds27/gitrepositories/lifesci-gateway/branches HTTP/1.1" 500 59 401ms
I0204 10:30:28.791342       1 apiserver.go:318] 10.233.70.71 - "POST /kapis/devops.kubesphere.io/v1alpha3/namespaces/lifesci2ds27/gitrepositories/lifesci-gateway/branches/pulls HTTP/1.1" 405 23 0ms
E0204 10:39:45.172635       1 utils.go:110] /workspace/pkg/kapis/devops/v1alpha3/gitops/handler.go:292 error decoding upload-pack response: invalid pkt-len found
I0204 10:39:45.172677       1 apiserver.go:318] 10.233.70.71 - "GET /kapis/devops.kubesphere.io/v1alpha3/namespaces/lifesci2ds27/gitrepositories/lifesci-gateway/branches HTTP/1.1" 500 59 332ms
E0204 11:06:44.528597       1 utils.go:110] /workspace/pkg/kapis/devops/v1alpha3/gitops/handler.go:292 error decoding upload-pack response: invalid pkt-len found
I0204 11:06:44.528640       1 apiserver.go:318] 10.233.70.71 - "GET /kapis/devops.kubesphere.io/v1alpha3/namespaces/lifesci2ds27/gitrepositories/lifesci-gateway/branches HTTP/1.1" 500 59 367ms
E0204 11:06:59.435159       1 utils.go:110] /workspace/pkg/kapis/devops/v1alpha3/gitops/handler.go:292 error decoding upload-pack response: invalid pkt-len found
I0204 11:06:59.435199       1 apiserver.go:318] 10.233.70.71 - "GET /kapis/devops.kubesphere.io/v1alpha3/namespaces/lifesci2ds27/gitrepositories/lifesci-gateway/branches HTTP/1.1" 500 59 83ms

Additional information

当前部署中,github的仓库是可以正常使用的。
但是我的工作中gitee仓库是必须的。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions