go get can't fetch mgo

2,277 views
Skip to first unread message

Pierre Prinetti

unread,
Aug 13, 2014, 2:38:31 AM8/13/14
to mgo-...@googlegroups.com
Hi there
I'm using mgo since some weeks now coding form my laptop: simple, effective, funny. Just as MongoDB is.

I now can't go get the repo on my DigitalOcean vps.
Ubuntu 14.04, 64bit, Go 1.3.1 from golang.org packages, bzr installed, git installed, hg installed. Here's the output:

pierre@goquadro:~$ go get -v gopkg.in/mgo.v2
Fetching https://gopkg.in/mgo.v2?go-get=1
https fetch failed.
Fetching http://gopkg.in/mgo.v2?go-get=1
import "gopkg.in/mgo.v2": http/https fetch: Get http://gopkg.in/mgo.v2?go-get=1: dial tcp 107.178.216.236:80: i/o timeout
package gopkg.in/mgo.v2: unrecognized import path "gopkg.in/mgo.v2"

I'm stuck. What happened?

Pierre Prinetti

unread,
Aug 13, 2014, 2:41:56 AM8/13/14
to mgo-...@googlegroups.com
update: code.google.com/p/go.crypto/bcrypt isn't downloading as well...

Gustavo Niemeyer

unread,
Aug 13, 2014, 9:10:37 AM8/13/14
to mgo-...@googlegroups.com
The error was a timeout, and given you were seeing the same failure on
other places, I'd guess a network issue in the given box.

If that happens again, I suggest trying the URL out in your browser,
and then trying it with curl on the affected box. Both should work
fine.
> --
> You received this message because you are subscribed to the Google Groups
> "mgo-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mgo-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

gustavo @ http://niemeyer.net

Kim Lundgren

unread,
Aug 13, 2014, 12:08:24 PM8/13/14
to mgo-...@googlegroups.com
We're also having issues with go getting mgo:

$ go get -v gopkg.in/mgo.v2
Fetching https://gopkg.in/mgo.v2?go-get=1
Parsing meta tags from https://gopkg.in/mgo.v2?go-get=1 (status code 200)
get "gopkg.in/mgo.v2": found meta tag main.metaImport{Prefix:"gopkg.in/mgo.v2", VCS:"git", RepoRoot:"https://gopkg.in/mgo.v2"} at https://gopkg.in/mgo.v2?go-get=1
gopkg
.in/mgo.v2 (download)


And then it hangs there. No connectivity issues with gopkg.in or Github.

Gustavo Niemeyer

unread,
Aug 13, 2014, 12:10:42 PM8/13/14
to mgo-...@googlegroups.com
This is a known but unrelated issue, and happens when using an ancient
release of git (< 2.7.3.4).

It was fixed in this commit, specifically:

https://github.com/git/git/commit/d3334d9c444a22847e7add0f60c2e4a7243c151e

Gustavo Niemeyer

unread,
Aug 13, 2014, 12:11:26 PM8/13/14
to mgo-...@googlegroups.com
Oops, that should be 1.7.3.4.

Kim Lundgren

unread,
Aug 13, 2014, 12:13:08 PM8/13/14
to mgo-...@googlegroups.com
Thanks!

Pierre Prinetti

unread,
Aug 13, 2014, 6:26:53 PM8/13/14
to mgo-...@googlegroups.com
Is gopkg.in IPv6-ready? Could this be the problem?

Il giorno mercoledì 13 agosto 2014 08:38:31 UTC+2, Pierre Prinetti ha scritto:

Gustavo Niemeyer

unread,
Aug 13, 2014, 6:42:51 PM8/13/14
to mgo-...@googlegroups.com
107.178.216.236 is not an IPv6 address..
Reply all
Reply to author
Forward
0 new messages