Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: get hangs indefinitely for github.com/cockroachdb/cockroach #17810

Closed
nexthack opened this issue Nov 5, 2016 · 6 comments
Closed

cmd/go: get hangs indefinitely for github.com/cockroachdb/cockroach #17810

nexthack opened this issue Nov 5, 2016 · 6 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@nexthack
Copy link

nexthack commented Nov 5, 2016

What version of Go are you using (go version)?

go version go1.7.3 linux/amd64

What version of Git are you using (git version)?

git version 2.10.2

My ~/.gitconfig is empty

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/OSS/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build565192650=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?

a)When I run below,it completes in less than 30 seconds succesfully
go get -d -x -v github.com/uber-go/ratelimit

b)When I run below,it completes in 3 mins succesfully
go get -d -x -v github.com/astaxie/beego

c)When I run below,it completes in 30 mins succesfully
go get -d -v -x github.com/chrislusf/glow

d)When I run below,it hangs indefinitely.I tried even waiting for 2 hours,but still it just hangs.
Command : go get -d -x -v github.com/cockroachdb/cockroach
Output :
github.com/cockroachdb/cockroach (download)
cd .
git clone https://github.com/cockroachdb/cockroach /home/OSS/go/src/github.com/cockroachdb/cockroach

How should I resolve this issue.I have seen other similar ones such as this and this,but none of them helped me in getting past this issue inspite of setting GIT_SSH_COMMAND='ssh -o ControlMaster=no'.

Also,what are the other options to install cockroachdb or any other go package ? Not sure if git clone works as it might not get dependent packages ?

Thanks

@josharian josharian changed the title go get hands indefinitely for some github repos cmd/go: get hangs indefinitely for github.com/cockroachdb/cockroach Nov 5, 2016
@josharian
Copy link
Contributor

What happens if you directly run git clone https://github.com/cockroachdb/cockroach?

@nexthack
Copy link
Author

nexthack commented Nov 5, 2016

@josharian git clone works instantly.No issues with it.Updated the issue with more info.

@myitcv
Copy link
Member

myitcv commented Nov 5, 2016

I'm seeing some bizarre, as-yet-unconfirmed Github issues at the moment.... issues that appear to be related to the network route to Github and even then, only effecting certain repos.

@nexthack
Copy link
Author

nexthack commented Nov 5, 2016

Looks like the time to start downloading the package is proportional to the code base size.This is what I could observe based on different codebase sizes that I tried testing.Finally I was able to download cockroachdb.

But this is like so slow,not sure where it is going wrong.Can we log some timing info for the different calls that happen when we do go get atleast on my local system for debugging.

@quentinmit
Copy link
Contributor

Your 30 minute clone ("glow") takes a few seconds on my machine. If you don't have any special ControlMaster configuration, there is probably something wrong with your network connection. If you're willing to make a slight change to Go's source code, we can hopefully find out more about what's going on. If you add "--progress" to the clone command at

https://github.com/golang/go/blob/master/src/cmd/go/vcs.go#L143

and then reinstall Go (with make.bash), -v should show the progress of the git clone.

@quentinmit quentinmit added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Nov 7, 2016
@nexthack
Copy link
Author

nexthack commented Nov 8, 2016

@quentinmit I tried installing go from source and running ./all.bash and go get is working fine both on master and go1.7.3 tag.
Btw , my previous go binary installation is working fine(go get) and issue might be with github or network.

Thanks for your inputs.I will be able to make changes next time in case of any issue and debug better.

@golang golang locked and limited conversation to collaborators Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants