goproxyio / goproxy

A global proxy for Go modules.
https://goproxy.io
MIT License
5.8k stars 366 forks source link

connection reset by peer when accessing goproxy.io #204

Closed dhiller closed 1 year ago

dhiller commented 2 years ago

We are hitting sporadic network failures on our builds when accessing goproxy.io (which is the 2nd proxy entry in GOPROXY). Thus we have removed goproxy.io from our proxy setting: https://github.com/kubevirt/project-infra/pull/2151

AFAICT this is not related to any specific dependency we are consuming in our builds. Also in the goproxy protocol spec it says that 5xx errors are treated as such, so this IMHO is a sign of goproxy.io misbehaving?

A couple of examples:


#1534798451911430144 | build-log | 5 minutes ago |  
-- | -- | -- | --
09:07:15:   google.golang.org/api@v0.78.0 requires 09:07:15:    golang.org/x/sys@v0.0.0-20220502124256-b6088ccd6cba: verifying go.mod: golang.org/x/sys@v0.0.0-20220502124256-b6088ccd6cba/go.mod: Get "https://goproxy.io/sumdb/sum.golang.org/tile/8/0/x040/747": read tcp 10.233.80.183:60104->119.28.201.50:443: read: connection reset by peer 09:07:18: INFO: Analyzed target //rpm:sandbox_x86_64 (263 packages loaded, 9645 targets configured).
#1534774460664516608 | build-log | 3 hours ago |  
05:50:16:   cloud.google.com/go@v0.75.0 requires 05:50:16:  github.com/google/martian/v3@v3.1.0: verifying go.mod: github.com/google/martian/v3@v3.1.0/go.mod: Get "https://goproxy.io/sumdb/sum.golang.org/lookup/github.com/google/martian/v3@v3.1.0": http2: client connection force closed via ClientConn.Close 05:50:18: Analyzing: target //rpm:sandbox_x86_64 (262 packages loaded, 9609 targets configured)
#1534519715630682112 | build-log | 21 hours ago |  
13:01:40:   github.com/googleapis/gax-go/v2@v2.3.0 requires 13:01:40:   google.golang.org/api@v0.74.0: verifying go.mod: google.golang.org/api@v0.74.0/go.mod: reading https://goproxy.io/sumdb/sum.golang.org/tile/8/1/150: read tcp 10.233.80.110:36468->119.28.201.50:443: read: connection reset by peer 13:01:42: INFO: Analyzed target //rpm:sandbox_x86_64 (263 packages loaded, 9645 targets configured).
#1534419450072141824 | build-log | 27 hours ago |  
06:20:13:   github.com/googleapis/gax-go/v2@v2.3.0 requires 06:20:13:   google.golang.org/api@v0.74.0: verifying go.mod: google.golang.org/api@v0.74.0/go.mod: Get "https://goproxy.io/sumdb/sum.golang.org/tile/8/1/150": read tcp 10.233.122.113:51704->119.28.201.50:443: read: connection reset by peer 06:20:16: INFO: Analyzed target //rpm:sandbox_x86_64 (263 packages loaded, 9645 targets configured).

[#1534798451911430144](https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/7845/pull-kubevirt-e2e-k8s-1.22-operator/1534798451911430144)   build-log   5 minutes ago   
09:07:15:   google.golang.org/api@v0.78.0 requires
09:07:15:   golang.org/x/sys@v0.0.0-20220502124256-b6088ccd6cba: verifying go.mod: golang.org/x/sys@v0.0.0-20220502124256-b6088ccd6cba/go.mod: Get "https://goproxy.io/sumdb/sum.golang.org/tile/8/0/x040/747": read tcp 10.233.80.183:60104->119.28.201.50:443: read: connection reset by peer
09:07:18: INFO: Analyzed target //rpm:sandbox_x86_64 (263 packages loaded, 9645 targets configured).
[#1534774460664516608](https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/7858/pull-kubevirt-e2e-k8s-1.22-operator/1534774460664516608)   build-log   3 hours ago 
05:50:16:   cloud.google.com/go@v0.75.0 requires
05:50:16:   github.com/google/martian/v3@v3.1.0: verifying go.mod: github.com/google/martian/v3@v3.1.0/go.mod: Get "https://goproxy.io/sumdb/sum.golang.org/lookup/github.com/google/martian/v3@v3.1.0": http2: client connection force closed via ClientConn.Close
05:50:18: Analyzing: target //rpm:sandbox_x86_64 (262 packages loaded, 9609 targets configured)
[#1534519715630682112](https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/7863/pull-kubevirt-e2e-k8s-1.22-operator/1534519715630682112)   build-log   21 hours ago    
13:01:40:   github.com/googleapis/gax-go/v2@v2.3.0 requires
13:01:40:   google.golang.org/api@v0.74.0: verifying go.mod: google.golang.org/api@v0.74.0/go.mod: reading https://goproxy.io/sumdb/sum.golang.org/tile/8/1/150: read tcp 10.233.80.110:36468->119.28.201.50:443: read: connection reset by peer
13:01:42: INFO: Analyzed target //rpm:sandbox_x86_64 (263 packages loaded, 9645 targets configured).
[#1534419450072141824](https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/7858/pull-kubevirt-e2e-k8s-1.22-operator/1534419450072141824)   build-log   27 hours ago    
06:20:13:   github.com/googleapis/gax-go/v2@v2.3.0 requires
06:20:13:   google.golang.org/api@v0.74.0: verifying go.mod: google.golang.org/api@v0.74.0/go.mod: Get "https://goproxy.io/sumdb/sum.golang.org/tile/8/1/150": read tcp 10.233.122.113:51704->119.28.201.50:443: read: connection reset by peer
06:20:16: INFO: Analyzed target //rpm:sandbox_x86_64 (263 packages loaded, 9645 targets configured).

See here for our failures: https://search.ci.kubevirt.io/?search=https%3A%2F%2Fgoproxy.io%2F&maxAge=336h&context=1&type=build-log&name=&excludeName=&maxMatches=5&maxBytes=20971520&groupBy=job

oiooj commented 2 years ago

Hi @dhiller , It's seems that there's some connection issue to goproxy.io servers, can you try to use proxy.golang.com.cn, this domain use global CDN. goproxy.io is the source site in HK.

Thanks @dhiller