niemeyer / gopkg

Source code for the gopkg.in service.
Other
539 stars 85 forks source link

gopkg cannot talk to github #80

Closed shivansh-bb closed 1 year ago

shivansh-bb commented 1 year ago

gopkg does not seem to be able to communicate to GitHub! github is up yet unable to download the packaged. Can you please check if there is something wrong at gopkg end?

go env for dockerfile build:

ENV GOSUMDB=off
ENV GOPROXY="direct"
RUN go mod download && go mod tidy && go mod verify && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags='-w -s -extldflags "-static"' -a -o main ./cmd/
    remote: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/alecthomas/kingpin.git/info/refs?service=git-upload-pack: write tcp 10.131.9.188:60820->140.82.121.3:443: write: broken pipe
    fatal: unable to access 'https://gopkg.in/alecthomas/kingpin.v2/': The requested URL returned error: 502
go mod download: unrecognized import path "gopkg.in/check.v1": reading https://gopkg.in/check.v1?go-get=1: 502 Bad Gateway
    server response: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/go-check/check.git/info/refs?service=git-upload-pack: write tcp 10.131.9.188:60820->140.82.121.3:443: write: broken pipe
go mod download: gopkg.in/fsnotify.v1@v1.4.7: invalid version: git ls-remote -q origin in /go/pkg/mod/cache/vcs/d88d5c0075d61dfe1daeb3f77aa4107783369b9103c5fdefa251fd900bf87328: exit status 128:
    remote: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/fsnotify/fsnotify.git/info/refs?service=git-upload-pack: write tcp 10.131.9.188:60820->140.82.121.3:443: write: broken pipe
    fatal: unable to access 'https://gopkg.in/fsnotify.v1/': The requested URL returned error: 502
go mod download: unrecognized import path "gopkg.in/yaml.v2": reading https://gopkg.in/yaml.v2?go-get=1: 502 Bad Gateway
    server response: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/go-yaml/yaml.git/info/refs?service=git-upload-pack: write tcp 10.131.9.188:60820->140.82.121.3:443: write: broken pipe
go mod download: gopkg.in/yaml.v3@v3.0.0-20210107192922-496545a6307b: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/0901dc1ef67fcce1c9b3ae51078740de4a0e2dc673e720584ac302973af82f36: exit status 128:
    remote: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/go-yaml/yaml.git/info/refs?service=git-upload-pack: write tcp 10.131.9.188:60820->140.82.121.3:443: write: broken pipe
niemeyer commented 1 year ago

Yeah, there was an outage recently and the service is still being affected. The team is on it, sorry for the trouble.

shivansh-bb commented 1 year ago

Thanks for confirming @niemeyer

mahanvyakti commented 1 year ago

Hello @niemeyer, Seems like the same issue has reappeared.

[ERROR]  Update failed for gopkg.in/inf.v0: Unable to get repository: Cloning into '/home/jenkins/.glide/cache/src/https-gopkg.in-inf.v0'...
remote: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/go-inf/inf.git/info/refs?service=git-upload-pack: write tcp 10.131.9.20:52252->140.82.121.4:443: write: broken pipe
fatal: unable to access 'https://gopkg.in/inf.v0/': The requested URL returned error: 502
: exit status 128

[ERROR]  Failed to install: Unable to get repository: Cloning into '/home/jenkins/.glide/cache/src/https-gopkg.in-inf.v0'...
remote: Cannot obtain refs from GitHub: cannot talk to GitHub: Get https://github.com/go-inf/inf.git/info/refs?service=git-upload-pack: write tcp 10.131.9.20:52252->140.82.121.4:443: write: broken pipe
fatal: unable to access 'https://gopkg.in/inf.v0/': The requested URL returned error: 502
: exit status 128 

Could you please confirm if anything is broken?

mahanvyakti commented 1 year ago

Seems like something still needs to be fixed after the incident https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQF52bWTqfnf9epsnjDT4Jkq_tNqk01X1Wbmog5dlmwNgA%3D%3D