Exception fetching from github (behind firewall)

243 views
Skip to first unread message

Ravi Mendis

unread,
Sep 14, 2012, 5:34:05 AM9/14/12
to git...@googlegroups.com
Hi, 

I've installed giter8 from the typesafe stack and run g8 typesafehub/scala-sbt only to get what appears to be an HTTP proxy authentication request"Exception fetching fron github Unexpected response code 407" and then the html response from the proxy server.

I've setup SBT_OPTS with the correct HTTP authentication credentials and sbt downloads fine. I've no idea what is performing the fetch and how to set it to use my HTTP credentials to perform the fetch.

Any ideas?

Thx,
Ravi

Nathan Hamblen

unread,
Sep 14, 2012, 9:45:10 AM9/14/12
to git...@googlegroups.com
What's the first line you see when you run

g8 --version

?

Ravi Mendis

unread,
Sep 14, 2012, 10:04:28 AM9/14/12
to git...@googlegroups.com
giter8 0.4.5

Ravi Mendis

unread,
Sep 25, 2012, 5:39:03 AM9/25/12
to git...@googlegroups.com
FYI: this problem is due to a corporate firewall that 1. Blocks the git protocol (but http is fine) and 2. Uses NTLM authentication.
Is there anyway to force giter8 to use URLs with http instead of git (or even https)? Thx

Ravi Mendis

unread,
Oct 10, 2012, 5:23:57 AM10/10/12
to git...@googlegroups.com
SOLUTION: For anyone in a Windows corporate environment with a firewall (NTLM proxy authenticated) the following will allow you to work with giter8 (and use git://...) 

Step 1. Install cntlm: 

This will allow curl, wget, etc. to work as normal once you set the HTTP_PROXY environment property.
In case your firewall blocks the git protocol, in addition you'll need...

Step 2. Install socat and configure a gitproxy.cmd script to use it. 

Nathan Hamblen

unread,
Nov 4, 2012, 12:33:26 AM11/4/12
to git...@googlegroups.com
Another option that should work is to specify the full http URL for the template repository on github. For the abbreviated account/repo format giter8 tries git URLs and ssh+git URLs, but you're free to specify the full URL of any repository.

Nathan
Reply all
Reply to author
Forward
0 new messages