Boost logo

Boost :

Subject: Re: [boost] [EXTERNAL] Re: raw.github.com access from behind firewall
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2014-01-22 18:55:13


On Jan 22, 2014, at 4:35 PM, Belcourt, Kenneth wrote:

>
> On Jan 22, 2014, at 3:55 PM, Thomas Suckow wrote:
>
>>>> The valid URL in question is:
>>>> https://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py
>>>>
>>>> Which gives the "raw" data of the file.. Not the web page showing the fancy
>>>> source code.
>>> Here's the wget details in case it helps (with proxy).
>>>
>>> -bash-4.1$ wget http://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py
>>> --2014-01-22 15:09:29-- http://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py
>>> Resolving wwwproxy.sandia.gov... 134.253.26.250
>>> Connecting to wwwproxy.sandia.gov|134.253.26.250|:80... connected.
>>> Proxy request sent, awaiting response... 301 Moved Permanently
>>> Location: https://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py [following]
>>> --2014-01-22 15:09:30-- https://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py
>>> Resolving raw.github.com... 199.27.77.133
>>> Connecting to raw.github.com|199.27.77.133|:443... failed: Connection timed out.
>>>
>>>
>> Make sure that https_proxy is set to the same value as http_proxy. I believe that wget is attempting to bypass the proxy for secure connections.
>
> Ah indeed, that was my wget problem. So wget can download regression.py:
>
> -bash-4.1$ wget https://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py
> --2014-01-22 16:31:39-- https://raw.github.com/boostorg/boost/develop/tools/regression/src/regression.py
> Resolving wwwproxy.sandia.gov... 134.253.26.250
> Connecting to wwwproxy.sandia.gov|134.253.26.250|:80... connected.
> Proxy request sent, awaiting response... 200 OK
> Length: 41541 (41K) [text/plain]
> Saving to: “regression.py”
>
> 100%[=========================================================================>] 41,541 --.-K/s in 0.09s
>
> 2014-01-22 16:31:40 (466 KB/s) - “regression.py” saved [41541/41541]
>
> But run.py still hangs here:
>
> -bash-4.1$ python run.py --tag=develop --runner="Sandia-Linux" --bjam-options="-j16" --proxy=http://wwwproxy.sandia.gov:80
> # Running regressions in /scratch/modular-boost...
> # Creating regression scripts at /scratch/modular-boost/tools_regression_src...
> # Downloading regression scripts from https://raw.github.com/boostorg/boost/develop/tools/regression/src...
> --- http://wwwproxy.sandia.gov:80

Works with this patch to run.py.

-bash-4.1$ diff ../run.py run.py
71,72c71,72
< proxy = {'http' : a.split('=')[1] }
< print '--- %s' %(proxy['http'])

---
>                 proxy = {'https' : a.split('=')[1] }
>                 print '--- %s' %(proxy['https'])
Thanks for the help!
-- Noel

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk