Git Product home page Git Product logo

Comments (8)

oiooj avatar oiooj commented on June 2, 2024

Please log your command that how to start the service?

from goproxy.

biubiudu avatar biubiudu commented on June 2, 2024

Please log your command that how to start the service?

./goproxy -listen=0.0.0.0:8080 -cacheDir= /go-cache -proxy=https://goproxy.io -exclude=review.xxx.cn

Is it possible the error is caused by the network failure to goproxy.io ?

from goproxy.

oiooj avatar oiooj commented on June 2, 2024

Emmm, goproxy.io using Cloudflare, but this service is not stable if you are in China mainland.

from goproxy.

biubiudu avatar biubiudu commented on June 2, 2024

Emmm, goproxy.io using Cloudflare, but this service is not stable if you are in China mainland.

当我把启动参数中的https://goproxy.io换成https://goproxy.cn后,执行 go install的时候又会出现必现的报错

2023-07-04 10:02:36.896504 | devops-centos7-go | go: github.com/golangci/golangci-lint/cmd/[email protected]: github.com/golangci/[email protected]: verifying module: github.com/golangci/[email protected]: reading http://goproxy.myproxy.io/sumdb/sum.golang.org/lookup/github.com/golangci/[email protected]: 410 Gone
2023-07-04 10:02:36.896711 | devops-centos7-go |  server response: Get "https://goproxy.io/sumdb/sum.golang.org/lookup/github.com/golangci/[email protected]": dial tcp 104.26.4.191:443: i/o timeout

GOSUMDB是也需要对应的配置上吗?

把GOSUMDB 配置成 sum.golang.org之后又出现下面的报错😭

2023-07-04 10:32:36.580088 | devops-centos7-go | go: downloading github.com/golangci/golangci-lint v1.47.3
2023-07-04 10:33:06.804057 | devops-centos7-go | go: github.com/golangci/golangci-lint/cmd/[email protected]: github.com/golangci/golangci-lint/cmd/[email protected]: invalid response from proxy "http://goproxy.xxxxxxx.io": invalid character 'o' in literal null (expecting 'u')

from goproxy.

hxzhao527 avatar hxzhao527 commented on June 2, 2024

server response: Get "https://goproxy.io/sumdb/sum.golang.org/lookup/github.com/golangci/[email protected]": dial tcp 104.26.4.191:443: i/o timeout

网不通吗? 能打开https://goproxy.io

from goproxy.

biubiudu avatar biubiudu commented on June 2, 2024

网不通吗? 能打开https://goproxy.io

昨天在goproxy的服务容器里 ping goproxy.io不通,我本地也ping不通,这个server是不是出问题了。

另外我把服务启动时的-proxy的设置成了proxy.golang.com.cn,然后拉取包就基本正常了。

但我不太理解的是 用goproxy.cn为啥就会出现下面这个问题,查看服务日志也会出现了302的返回码。

........invalid response from proxy "http://goproxy.xxxxxxx.io": invalid character 'o' in literal null (expecting 'u')

from goproxy.

hxzhao527 avatar hxzhao527 commented on June 2, 2024
  • goproxy.io 是好的, 只是国内可能慢.
  • 如果参数加了-proxy=https://goproxy.io, 会把请求转到goproxy.io, 网不通自然就有问题了.
    • 同样的出现的410 Gone, 因为goproxy请求sumdb超时给了2s, 如果网不好, 很容易出现
    • 可以尝试访问sum.golang.org看看
  • 对于换用goproxy.cn, 没能复现, 需要再详细描述下具体咋操作的

from goproxy.

longfei-zhang avatar longfei-zhang commented on June 2, 2024

goproxy 本地和服务器ping不通的时候,本地打开全局翻墙代理就可以ping通,网页也可以打开。
目前的解决方案还是需要配置国内可以稳定访问的地址。
如果国内没有可使用的稳定的地址,我们可以在服务器端安装open vpn

nslookup goproxy.io
Server:                114.114.114.114
Address:        114.114.114.114#53

Non-authoritative answer:
Name:        goproxy.io
Address: 104.26.5.191
Name:        goproxy.io
Address: 104.26.4.191
Name:        goproxy.io
Address: 172.67.69.138

将goproxy.io 返回的address添加路由配置走vpn代理, 例如
ip r add 172.67.69.138 via 10.6.0.1

from goproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.