threads / discuss / 23286

Problems Fetching from HTTP?

Subject: Problems Fetching from HTTP?

## tl;dr

3 messages between Apr 1, 2010 and Apr 1, 2010.

replies: 2people: 2as markdown or json

Tim Visher· Apr 1, 2010, 15:03 UTC · lore
Hello Everyone,

I recently seem to have developed problems fetching from http://www.kernel.org/pub/scm/git/git.git. The error is simply:

    error: Failed connect to www.kernel.org:80; Connection refused
while accessing http://www.kernel.org/pub/scm/git/git.git/info/refs
    fatal: HTTP request failed

I looked around and discovered that perhaps the URL had changed via [git.kernel.org][] so I went ahead and changed the URL and still get the error.

    error: Failed connect to git.kernel.org:80; Connection refused
while accessing http://git.kernel.org/pub/scm/git/git.git/info/refs
    fatal: HTTP request failed

What could be going on here? I can't pull from `git://` as I'm behind a firewall.

Thanks in advance!
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
Andreas Krey· Apr 1, 2010, 16:29 UTC · re: Tim Visher · lore

Re: Problems Fetching from HTTP?

On Thu, 01 Apr 2010 11:03:20 +0000, Tim Visher wrote: ...

Show 7 quoted lines
>     error: Failed connect to git.kernel.org:80; Connection refused
> while accessing http://git.kernel.org/pub/scm/git/git.git/info/refs
> 
>     fatal: HTTP request failed
> 
> What could be going on here?  I can't pull from `git://` as I'm behind
> a firewall.

It pretty much looks like the firewall doesn't let you directly access HTTP as well. You may need to use your proxy, and you (seem to) need to set the environment variable 'http_proxy="http://10.0.0.1:3128"' to point to your proxy. Google will take you from there, like http://rip747.wordpress.com/2008/09/12/git-clone-over-http-who-knew/

Andreas
Tim Visher· Apr 1, 2010, 18:12 UTC · re: Andreas Krey · lore

Re: Problems Fetching from HTTP?

On Thu, Apr 1, 2010 at 12:29 PM, Andreas Krey <a.krey@gmx.de> wrote:
Show 15 quoted lines
> On Thu, 01 Apr 2010 11:03:20 +0000, Tim Visher wrote:
> ...
>>     error: Failed connect to git.kernel.org:80; Connection refused
>> while accessing http://git.kernel.org/pub/scm/git/git.git/info/refs
>>
>>     fatal: HTTP request failed
>>
>> What could be going on here?  I can't pull from `git://` as I'm behind
>> a firewall.
>
> It pretty much looks like the firewall doesn't let you directly access
> HTTP as well. You may need to use your proxy, and you (seem to) need to
> set the environment variable 'http_proxy="http://10.0.0.1:3128"' to
> point to your proxy. Google will take you from there, like
> http://rip747.wordpress.com/2008/09/12/git-clone-over-http-who-knew/

Strange. I suppose they reconfigured the firewall recently as I never had to set that before and I've tracked git through http for over a year. I ended up setting `http.proxy` in ~/.gitconfig.

Thanks!
-- 
In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

← back to recent threads