proxy issues with downloading regression scripts

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

proxy issues with downloading regression scripts

Aparna Kumta
I seem to have trouble in downloading the regression scripts.
My earlier thread on this issue is
http://lists.boost.org/boost-testing/2014/11/7735.php

I have copied run.py in my directory and invoke the script as follows:
python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"

The error message I see is:
# Running regressions in /net/pontus/export/users/akumta/boost_proxy...
# Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
Traceback (most recent call last):
  File "run.py", line 70, in <module>
    from regression import runner
  File "/net/pontus/export/users/akumta/boost_proxy/boost_regression_src/regression.py", line 1
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
SyntaxError: invalid syntax

In boost_regression_src directory, I have 3 files downloaded. They all have the same file size and when I view regression.py in the browser,
I see
Handshake failed
The SSL handshake could not be performed.

*Host: *raw.githubusercontent.com
*Reason: *Can't initialize server context


I am able view the scripts in the browser
https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src/regression.py 

I checked with the IT folks and they mention if we can view the files(run.py, regression.py, process_jam_log.py etc) in the browser, I shouldn't have a problem downloading it.

I am running on Solaris 11.2.
My python version is 2.6.8 which is the default version installed on Solaris 11.2

I googled the proxy issue and have set
http_proxy, https_proxy and all_proxy variable in my startup scripts.

For now, I am testing using --skip-script-download, but would like to switch to the *real* stuff.


Any suggestions?

Thanks,

Aparna





_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] proxy issues with downloading regression scripts

Belcourt, Kenneth

On Dec 11, 2014, at 12:56 PM, Aparna Kumta <[hidden email]> wrote:

> I have copied run.py in my directory and invoke the script as follows:
> python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"
>
> The error message I see is:
> # Running regressions in /net/pontus/export/users/akumta/boost_proxy...
> # Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
> # Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
> Traceback (most recent call last):
>  File "run.py", line 70, in <module>

This doesn’t match my version of run.py  Can you check that your run.py matches the version in the develop branch of tools?

My line 70 of run.py is parsing the —proxy command line option.

        if a.startswith('--proxy=‘):

— Noel

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Rene Rivera-2
In reply to this post by Aparna Kumta
On Thu, Dec 11, 2014 at 1:56 PM, Aparna Kumta <[hidden email]> wrote:
I seem to have trouble in downloading the regression scripts.
My earlier thread on this issue is
http://lists.boost.org/boost-testing/2014/11/7735.php

I have copied run.py in my directory and invoke the script as follows:
python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"

The error message I see is:
# Running regressions in /net/pontus/export/users/akumta/boost_proxy...
# Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
Traceback (most recent call last):
  File "run.py", line 70, in <module>
    from regression import runner
  File "/net/pontus/export/users/akumta/boost_proxy/boost_regression_src/regression.py", line 1
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
SyntaxError: invalid syntax

I don't see line #60 getting executed:

    print '--- %s' %(proxy['https']) 

Which suggests that for some reason it's not correctly recognizing the proxy option. Could you put quotes around the proxy option. Maybe something in the shell is mucking with the option.

--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] proxy issues with downloading regression scripts

Rene Rivera-2
In reply to this post by Belcourt, Kenneth


On Thu, Dec 11, 2014 at 2:07 PM, Belcourt, Kenneth <[hidden email]> wrote:

On Dec 11, 2014, at 12:56 PM, Aparna Kumta <[hidden email]> wrote:

> I have copied run.py in my directory and invoke the script as follows:
> python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"
>
> The error message I see is:
> # Running regressions in /net/pontus/export/users/akumta/boost_proxy...
> # Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
> # Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
> Traceback (most recent call last):
>  File "run.py", line 70, in <module>

This doesn’t match my version of run.py  Can you check that your run.py matches the version in the develop branch of tools?

My line 70 of run.py is parsing the —proxy command line option.

        if a.startswith('--proxy=‘):

It doesn't match because Aparna is using the new scripts which are shorter. The benefit of removing obsolete code :-)



--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] proxy issues with downloading regression scripts

Belcourt, Kenneth

On Dec 11, 2014, at 1:15 PM, Rene Rivera <[hidden email]> wrote:

> On Thu, Dec 11, 2014 at 2:07 PM, Belcourt, Kenneth <[hidden email]> wrote:
>
> On Dec 11, 2014, at 12:56 PM, Aparna Kumta <[hidden email]> wrote:
>
> > I have copied run.py in my directory and invoke the script as follows:
> > python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"
> >
> > The error message I see is:
> > # Running regressions in /net/pontus/export/users/akumta/boost_proxy...
> > # Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
> > # Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
> > Traceback (most recent call last):
> >  File "run.py", line 70, in <module>
>
> This doesn’t match my version of run.py  Can you check that your run.py matches the version in the develop branch of tools?
>
> My line 70 of run.py is parsing the —proxy command line option.
>
>         if a.startswith('--proxy=‘):
>
> It doesn't match because Aparna is using the new scripts which are shorter. The benefit of removing obsolete code :-)

Perhaps that’s a test worth trying, use the old run.py and see if that works?

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Aparna Kumta
No, the quotes do not seem to help.
I modified run.py  to just print the proxy as follows:
%cat run.py

#!/usr/bin/python

# Copyright Rene Rivera 2007-2013
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

import os
import os.path
import shutil
import sys
import urllib

proxy = None
for a in sys.argv[1:]:
    if a.startswith('--proxy='):
       proxy = {'https' : a.split('=')[1] }
       print '--- %s' %(proxy['https'])
%
%python run.py --runner=oracle --toolsets=sun --tag=develop --proxy=http://www-proxy.us.oracle.com:80
--- http://www-proxy.us.oracle.com:80

Now it prints the proxy!

Thanks,

Aparna


----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Thursday, December 11, 2014 12:13:44 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

On Thu, Dec 11, 2014 at 1:56 PM, Aparna Kumta <[hidden email]> wrote:
I seem to have trouble in downloading the regression scripts.
My earlier thread on this issue is
http://lists.boost.org/boost-testing/2014/11/7735.php

I have copied run.py in my directory and invoke the script as follows:
python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"

The error message I see is:
# Running regressions in /net/pontus/export/users/akumta/boost_proxy...
# Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
Traceback (most recent call last):
  File "run.py", line 70, in <module>
    from regression import runner
  File "/net/pontus/export/users/akumta/boost_proxy/boost_regression_src/regression.py", line 1
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
SyntaxError: invalid syntax

I don't see line #60 getting executed:

    print '--- %s' %(proxy['https']) 

Which suggests that for some reason it's not correctly recognizing the proxy option. Could you put quotes around the proxy option. Maybe something in the shell is mucking with the option.

--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Aparna Kumta
I have the same issue with the old run.py.

Thanks,

Aparna


----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Thursday, December 11, 2014 12:17:18 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] [EXTERNAL] proxy issues with downloading regression scripts


On Dec 11, 2014, at 1:15 PM, Rene Rivera <[hidden email]> wrote:

> On Thu, Dec 11, 2014 at 2:07 PM, Belcourt, Kenneth <[hidden email]> wrote:
>
> On Dec 11, 2014, at 12:56 PM, Aparna Kumta <[hidden email]> wrote:
>
> > I have copied run.py in my directory and invoke the script as follows:
> > python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"
> >
> > The error message I see is:
> > # Running regressions in /net/pontus/export/users/akumta/boost_proxy...
> > # Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
> > # Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
> > Traceback (most recent call last):
> >  File "run.py", line 70, in <module>
>
> This doesn’t match my version of run.py  Can you check that your run.py matches the version in the develop branch of tools?
>
> My line 70 of run.py is parsing the —proxy command line option.
>
>         if a.startswith('--proxy=‘):
>
> It doesn't match because Aparna is using the new scripts which are shorter. The benefit of removing obsolete code :-)

Perhaps that’s a test worth trying, use the old run.py and see if that works?

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Aparna Kumta
I made a few changes to run.py.
I hard coded the proxy variable as shown below.
#        proxy = None
        proxy = {'http': 'http://www-proxy.us.oracle.com:80'}
#        for a in sys.argv[1:]:
#            if a.startswith('--proxy='):
#                proxy = {'https' : a.split('=')[1] }
#                print '--- %s' %(proxy['https'])
#                break

I invoked run.py. I saw the same error (by viewing regression.py in a browser):
Handshake failed
The SSL handshake could not be performed.

*Host: *raw.githubusercontent.com
*Reason: *Can't initialize server context


Then, I made the following change to run.py

#    script_remote = 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
    script_remote = 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'

Reran run.py.

This time I was able to download the files
% ls -l boost_regression_src
total 174
-rw-rw-r--   1 akumta   staff      22459 Dec 11 19:21 collect_and_upload_logs.py
-rw-rw-r--   1 akumta   staff      23354 Dec 11 19:21 process_jam_log.py
-rw-rw-r--   1 akumta   staff      41338 Dec 11 19:21 regression.py

Does this mean there might be an issue on on the server side, that is with
https://raw.githubusercontent.com ?



Thanks,

Aparna


 
----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Thursday, December 11, 2014 1:19:29 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

No, the quotes do not seem to help.
I modified run.py  to just print the proxy as follows:
%cat run.py

#!/usr/bin/python

# Copyright Rene Rivera 2007-2013
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

import os
import os.path
import shutil
import sys
import urllib

proxy = None
for a in sys.argv[1:]:
    if a.startswith('--proxy='):
       proxy = {'https' : a.split('=')[1] }
       print '--- %s' %(proxy['https'])
%
%python run.py --runner=oracle --toolsets=sun --tag=develop --proxy=http://www-proxy.us.oracle.com:80
--- http://www-proxy.us.oracle.com:80

Now it prints the proxy!

Thanks,

Aparna


----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Thursday, December 11, 2014 12:13:44 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

On Thu, Dec 11, 2014 at 1:56 PM, Aparna Kumta <[hidden email]> wrote:
I seem to have trouble in downloading the regression scripts.
My earlier thread on this issue is
http://lists.boost.org/boost-testing/2014/11/7735.php

I have copied run.py in my directory and invoke the script as follows:
python run.py --runner=oracle --toolsets=sun --tag=develop  --proxy=http://www-proxy.us.oracle.com:80 --bjam-toolset=sun  --pjl-toolset=sun "--bjam-options=-j16"

The error message I see is:
# Running regressions in /net/pontus/export/users/akumta/boost_proxy...
# Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src...
Traceback (most recent call last):
  File "run.py", line 70, in <module>
    from regression import runner
  File "/net/pontus/export/users/akumta/boost_proxy/boost_regression_src/regression.py", line 1
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ^
SyntaxError: invalid syntax

I don't see line #60 getting executed:

    print '--- %s' %(proxy['https']) 

Which suggests that for some reason it's not correctly recognizing the proxy option. Could you put quotes around the proxy option. Maybe something in the shell is mucking with the option.

--
-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: proxy issues with downloading regression scripts

Belcourt, Kenneth

On Dec 11, 2014, at 9:12 PM, Aparna Kumta <[hidden email]> wrote:

> I made a few changes to run.py.
> I hard coded the proxy variable as shown below.
> #        proxy = None
>         proxy = {'http': '<a href="http://www-proxy.us.oracle.com:80'">http://www-proxy.us.oracle.com:80'}

> Then, I made the following change to run.py
>
> #    script_remote = 'https://raw.githubusercontent.com/boostorg/regression/develop/src'

This path looks wrong.  In the old run.py script_remote is:

    script_remote = 'https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src'

>     script_remote = 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>
> Reran run.py.
>
> This time I was able to download the files

> Does this mean there might be an issue on on the server side, that is with
> https://raw.githubusercontent.com ?

I doubt it.  Our testers have been cycling normally this evening.  Using the old run.py, this has been working okay for me.

# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src...
--- http://wwwproxy.sandia.gov:80

— Noel

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Aparna Kumta
Both the old and new path  for script_remote contain
https://raw.githubusercontent.com
and I think that is where the error arises from.
Hence I got the same error previously(when I was using the old run.py).

Anyway, to reconfirm, I did change to
script_remote = 'https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src'

I now see the error again.

Thanks,

Aparna


----- Original Message -----
From: [hidden email]
To: [hidden email]
Sent: Thursday, December 11, 2014 8:32:07 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] [EXTERNAL] Re: proxy issues with downloading regression scripts


On Dec 11, 2014, at 9:12 PM, Aparna Kumta <[hidden email]> wrote:

> I made a few changes to run.py.
> I hard coded the proxy variable as shown below.
> #        proxy = None
>         proxy = {'http': '<a href="http://www-proxy.us.oracle.com:80'">http://www-proxy.us.oracle.com:80'}

> Then, I made the following change to run.py
>
> #    script_remote = 'https://raw.githubusercontent.com/boostorg/regression/develop/src'

This path looks wrong.  In the old run.py script_remote is:

    script_remote = 'https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src'

>     script_remote = 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>
> Reran run.py.
>
> This time I was able to download the files

> Does this mean there might be an issue on on the server side, that is with
> https://raw.githubusercontent.com ?

I doubt it.  Our testers have been cycling normally this evening.  Using the old run.py, this has been working okay for me.

# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/boost/develop/tools/regression/src...
--- http://wwwproxy.sandia.gov:80

— Noel

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Niklas Angare
In reply to this post by Aparna Kumta
"Aparna Kumta" <[hidden email]> wrote:

> I invoked run.py. I saw the same error (by viewing regression.py in a
> browser):
> Handshake failed
> The SSL handshake could not be performed.
>
> *Host: *raw.githubusercontent.com
> *Reason: *Can't initialize server context
>
> Then, I made the following change to run.py
>
> # script_remote =
> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
> script_remote =
> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>
> Reran run.py.
>
> This time I was able to download the files
...
> Does this mean there might be an issue on on the server side, that is with
> https://raw.githubusercontent.com ?

The critical difference is that the problematic one begins with https. Doing
HTTPS (SSL) through a proxy is no simple matter. Your IT folks' assertion
that it should work if it works in the browser is almost certainly false for
HTTPS.

Since you're having so much trouble with the proxy, you should simply patch
your run.py to replace https with http.

Regards,

Niklas Angare
 


_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Blower, Melanie
I also got replies like Aparna when I tried to use the run.py script that I downloaded from the boost url (not the new beta version). I couldn't get the proxy settings to work on the run.py invocation, but when I used proxy settings in ~/.subversion/servers some of the checkout was successful but other things failed subsequently.  I'll try the beta run.py and use these directions.
--Melanie

-----Original Message-----
From: Boost-Testing [mailto:[hidden email]] On Behalf Of Niklas Angare
Sent: Friday, December 12, 2014 5:05 AM
To: [hidden email]
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

"Aparna Kumta" <[hidden email]> wrote:

> I invoked run.py. I saw the same error (by viewing regression.py in a
> browser):
> Handshake failed
> The SSL handshake could not be performed.
>
> *Host: *raw.githubusercontent.com
> *Reason: *Can't initialize server context
>
> Then, I made the following change to run.py
>
> # script_remote =
> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
> script_remote =
> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>
> Reran run.py.
>
> This time I was able to download the files
...
> Does this mean there might be an issue on on the server side, that is
> with https://raw.githubusercontent.com ?

The critical difference is that the problematic one begins with https. Doing HTTPS (SSL) through a proxy is no simple matter. Your IT folks' assertion that it should work if it works in the browser is almost certainly false for HTTPS.

Since you're having so much trouble with the proxy, you should simply patch your run.py to replace https with http.

Regards,

Niklas Angare
 


_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Niklas Angare
On 12/12/14 02:05, Niklas Angare wrote:

> "Aparna Kumta" <[hidden email]> wrote:
>> I invoked run.py. I saw the same error (by viewing regression.py in a
>> browser):
>> Handshake failed
>> The SSL handshake could not be performed.
>>
>> *Host: *raw.githubusercontent.com
>> *Reason: *Can't initialize server context
>>
>> Then, I made the following change to run.py
>>
>> # script_remote =
>> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
>> script_remote =
>> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>>
>> Reran run.py.
>>
>> This time I was able to download the files
> ...
>> Does this mean there might be an issue on on the server side, that is
>> with
>> https://raw.githubusercontent.com ?
>
> The critical difference is that the problematic one begins with https.
> Doing HTTPS (SSL) through a proxy is no simple matter. Your IT folks'
> assertion that it should work if it works in the browser is almost
> certainly false for HTTPS.
I think what was meant was that if I am able to view it in a browser, it
would not be blocked(assuming initial validation goes through) which was
my concern initially.
>
> Since you're having so much trouble with the proxy, you should simply
> patch your run.py to replace https with http.
This doesn't work, I think I would need to know the port number for
https://raw.githubusercontent.com.

Also, if I were to go the http route, it  would mean bypassing the
initial handshake/encryption etc.

Thanks,

Aparna


>
> Regards,
>
> Niklas Angare
>
>
>
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Blower, Melanie
Melanie, it is comforting to know that I am not the only one seeing this
issue :-).

Thanks,

Aparna



On 12/12/14 06:26, Blower, Melanie wrote:

> I also got replies like Aparna when I tried to use the run.py script that I downloaded from the boost url (not the new beta version). I couldn't get the proxy settings to work on the run.py invocation, but when I used proxy settings in ~/.subversion/servers some of the checkout was successful but other things failed subsequently.  I'll try the beta run.py and use these directions.
> --Melanie
>
> -----Original Message-----
> From: Boost-Testing [mailto:[hidden email]] On Behalf Of Niklas Angare
> Sent: Friday, December 12, 2014 5:05 AM
> To: [hidden email]
> Subject: Re: [Boost-testing] proxy issues with downloading regression scripts
>
> "Aparna Kumta"<[hidden email]>  wrote:
>> I invoked run.py. I saw the same error (by viewing regression.py in a
>> browser):
>> Handshake failed
>> The SSL handshake could not be performed.
>>
>> *Host: *raw.githubusercontent.com
>> *Reason: *Can't initialize server context
>>
>> Then, I made the following change to run.py
>>
>> # script_remote =
>> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
>> script_remote =
>> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>>
>> Reran run.py.
>>
>> This time I was able to download the files
> ...
>> Does this mean there might be an issue on on the server side, that is
>> with https://raw.githubusercontent.com ?
> The critical difference is that the problematic one begins with https. Doing HTTPS (SSL) through a proxy is no simple matter. Your IT folks' assertion that it should work if it works in the browser is almost certainly false for HTTPS.
>
> Since you're having so much trouble with the proxy, you should simply patch your run.py to replace https with http.
>
> Regards,
>
> Niklas Angare
>
>
>
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Aparna Kumta
In reply to this post by Aparna Kumta
On 12/12/14 10:26, Aparna Kumta wrote:

> On 12/12/14 02:05, Niklas Angare wrote:
>> "Aparna Kumta" <[hidden email]> wrote:
>>> I invoked run.py. I saw the same error (by viewing regression.py in
>>> a browser):
>>> Handshake failed
>>> The SSL handshake could not be performed.
>>>
>>> *Host: *raw.githubusercontent.com
>>> *Reason: *Can't initialize server context
>>>
>>> Then, I made the following change to run.py
>>>
>>> # script_remote =
>>> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
>>> script_remote =
>>> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>>>
>>> Reran run.py.
>>>
>>> This time I was able to download the files
>> ...
>>> Does this mean there might be an issue on on the server side, that
>>> is with
>>> https://raw.githubusercontent.com ?
>>
>> The critical difference is that the problematic one begins with
>> https. Doing HTTPS (SSL) through a proxy is no simple matter. Your IT
>> folks' assertion that it should work if it works in the browser is
>> almost certainly false for HTTPS.
> I think what was meant was that if I am able to view it in a browser,
> it would not be blocked(assuming initial validation goes through)
> which was my concern initially.
>>
>> Since you're having so much trouble with the proxy, you should simply
>> patch your run.py to replace https with http.
> This doesn't work, I think I would need to know the port number for
> https://raw.githubusercontent.com.
Oops typo, I meant http://raw.githubusercontent.com.

Thanks,

Aparna

>
> Also, if I were to go the http route, it  would mean bypassing the
> initial handshake/encryption etc.
>
> Thanks,
>
> Aparna
>
>
>>
>> Regards,
>>
>> Niklas Angare
>>
>>
>>
>> _______________________________________________
>> Boost-Testing mailing list
>> [hidden email]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
>
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Blower, Melanie
In reply to this post by Aparna Kumta
Aparna, Can you share with me how you solved your proxy problem?  I stopped work on this (plenty of other stuff to do!) but when I try again today I am have problems out of the box,

--- http://proxy-us.intel.com:911
Traceback (most recent call last):
  File "./run.py", line 70, in <module>
    from regression import runner
  File "/localext3/mblower/sandbox/_boost_runner-proxy-s/boost_regression_src/regression.py", line 1
    <HTML><HEAD>
    ^
SyntaxError: invalid syntax

-----Original Message-----
From: Boost-Testing [mailto:[hidden email]] On Behalf Of Aparna Kumta
Sent: Friday, December 12, 2014 1:28 PM
To: Running Boost regression tests
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

Melanie, it is comforting to know that I am not the only one seeing this issue :-).

Thanks,

Aparna



On 12/12/14 06:26, Blower, Melanie wrote:

> I also got replies like Aparna when I tried to use the run.py script that I downloaded from the boost url (not the new beta version). I couldn't get the proxy settings to work on the run.py invocation, but when I used proxy settings in ~/.subversion/servers some of the checkout was successful but other things failed subsequently.  I'll try the beta run.py and use these directions.
> --Melanie
>
> -----Original Message-----
> From: Boost-Testing [mailto:[hidden email]] On
> Behalf Of Niklas Angare
> Sent: Friday, December 12, 2014 5:05 AM
> To: [hidden email]
> Subject: Re: [Boost-testing] proxy issues with downloading regression
> scripts
>
> "Aparna Kumta"<[hidden email]>  wrote:
>> I invoked run.py. I saw the same error (by viewing regression.py in a
>> browser):
>> Handshake failed
>> The SSL handshake could not be performed.
>>
>> *Host: *raw.githubusercontent.com
>> *Reason: *Can't initialize server context
>>
>> Then, I made the following change to run.py
>>
>> # script_remote =
>> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
>> script_remote =
>> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>>
>> Reran run.py.
>>
>> This time I was able to download the files
> ...
>> Does this mean there might be an issue on on the server side, that is
>> with https://raw.githubusercontent.com ?
> The critical difference is that the problematic one begins with https. Doing HTTPS (SSL) through a proxy is no simple matter. Your IT folks' assertion that it should work if it works in the browser is almost certainly false for HTTPS.
>
> Since you're having so much trouble with the proxy, you should simply patch your run.py to replace https with http.
>
> Regards,
>
> Niklas Angare
>
>
>
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Aparna Kumta
On 10/16/15 11:56, Blower, Melanie wrote:
> Aparna, Can you share with me how you solved your proxy problem?  I stopped work on this (plenty of other stuff to do!) but when I try again today I am have problems out of the box,
Melanie,
  I had to work around this issue by using  'wget' command to copy the
*.py (run.py regression.py collect_and_upload_logs.py
process_jam_log.py) files.

Then when I invoke
python run.py  ...
  I use  '--skip-script-download'

This prevents downloading the *.py files mentioned above.


Thanks,

Aparna



>
> --- http://proxy-us.intel.com:911
> Traceback (most recent call last):
>    File "./run.py", line 70, in <module>
>      from regression import runner
>    File "/localext3/mblower/sandbox/_boost_runner-proxy-s/boost_regression_src/regression.py", line 1
>      <HTML><HEAD>
>      ^
> SyntaxError: invalid syntax
>
> -----Original Message-----
> From: Boost-Testing [mailto:[hidden email]] On Behalf Of Aparna Kumta
> Sent: Friday, December 12, 2014 1:28 PM
> To: Running Boost regression tests
> Subject: Re: [Boost-testing] proxy issues with downloading regression scripts
>
> Melanie, it is comforting to know that I am not the only one seeing this issue :-).
>
> Thanks,
>
> Aparna
>
>
>
> On 12/12/14 06:26, Blower, Melanie wrote:
>> I also got replies like Aparna when I tried to use the run.py script that I downloaded from the boost url (not the new beta version). I couldn't get the proxy settings to work on the run.py invocation, but when I used proxy settings in ~/.subversion/servers some of the checkout was successful but other things failed subsequently.  I'll try the beta run.py and use these directions.
>> --Melanie
>>
>> -----Original Message-----
>> From: Boost-Testing [mailto:[hidden email]] On
>> Behalf Of Niklas Angare
>> Sent: Friday, December 12, 2014 5:05 AM
>> To: [hidden email]
>> Subject: Re: [Boost-testing] proxy issues with downloading regression
>> scripts
>>
>> "Aparna Kumta"<[hidden email]>  wrote:
>>> I invoked run.py. I saw the same error (by viewing regression.py in a
>>> browser):
>>> Handshake failed
>>> The SSL handshake could not be performed.
>>>
>>> *Host: *raw.githubusercontent.com
>>> *Reason: *Can't initialize server context
>>>
>>> Then, I made the following change to run.py
>>>
>>> # script_remote =
>>> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
>>> script_remote =
>>> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>>>
>>> Reran run.py.
>>>
>>> This time I was able to download the files
>> ...
>>> Does this mean there might be an issue on on the server side, that is
>>> with https://raw.githubusercontent.com ?
>> The critical difference is that the problematic one begins with https. Doing HTTPS (SSL) through a proxy is no simple matter. Your IT folks' assertion that it should work if it works in the browser is almost certainly false for HTTPS.
>>
>> Since you're having so much trouble with the proxy, you should simply patch your run.py to replace https with http.
>>
>> Regards,
>>
>> Niklas Angare
>>
>>
>>
>> _______________________________________________
>> Boost-Testing mailing list
>> [hidden email]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
>> _______________________________________________
>> Boost-Testing mailing list
>> [hidden email]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
Reply | Threaded
Open this post in threaded view
|

Re: proxy issues with downloading regression scripts

Blower, Melanie
Thanks very much.  --Melanie

-----Original Message-----
From: Boost-Testing [mailto:[hidden email]] On Behalf Of Aparna Kumta
Sent: Friday, October 16, 2015 3:26 PM
To: Running Boost regression tests
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

On 10/16/15 11:56, Blower, Melanie wrote:
> Aparna, Can you share with me how you solved your proxy problem?  I
> stopped work on this (plenty of other stuff to do!) but when I try
> again today I am have problems out of the box,
Melanie,
  I had to work around this issue by using  'wget' command to copy the *.py (run.py regression.py collect_and_upload_logs.py
process_jam_log.py) files.

Then when I invoke
python run.py  ...
  I use  '--skip-script-download'

This prevents downloading the *.py files mentioned above.


Thanks,

Aparna



>
> --- http://proxy-us.intel.com:911
> Traceback (most recent call last):
>    File "./run.py", line 70, in <module>
>      from regression import runner
>    File "/localext3/mblower/sandbox/_boost_runner-proxy-s/boost_regression_src/regression.py", line 1
>      <HTML><HEAD>
>      ^
> SyntaxError: invalid syntax
>
> -----Original Message-----
> From: Boost-Testing [mailto:[hidden email]] On
> Behalf Of Aparna Kumta
> Sent: Friday, December 12, 2014 1:28 PM
> To: Running Boost regression tests
> Subject: Re: [Boost-testing] proxy issues with downloading regression
> scripts
>
> Melanie, it is comforting to know that I am not the only one seeing this issue :-).
>
> Thanks,
>
> Aparna
>
>
>
> On 12/12/14 06:26, Blower, Melanie wrote:
>> I also got replies like Aparna when I tried to use the run.py script that I downloaded from the boost url (not the new beta version). I couldn't get the proxy settings to work on the run.py invocation, but when I used proxy settings in ~/.subversion/servers some of the checkout was successful but other things failed subsequently.  I'll try the beta run.py and use these directions.
>> --Melanie
>>
>> -----Original Message-----
>> From: Boost-Testing [mailto:[hidden email]] On
>> Behalf Of Niklas Angare
>> Sent: Friday, December 12, 2014 5:05 AM
>> To: [hidden email]
>> Subject: Re: [Boost-testing] proxy issues with downloading regression
>> scripts
>>
>> "Aparna Kumta"<[hidden email]>  wrote:
>>> I invoked run.py. I saw the same error (by viewing regression.py in
>>> a
>>> browser):
>>> Handshake failed
>>> The SSL handshake could not be performed.
>>>
>>> *Host: *raw.githubusercontent.com
>>> *Reason: *Can't initialize server context
>>>
>>> Then, I made the following change to run.py
>>>
>>> # script_remote =
>>> 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
>>> script_remote =
>>> 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'
>>>
>>> Reran run.py.
>>>
>>> This time I was able to download the files
>> ...
>>> Does this mean there might be an issue on on the server side, that
>>> is with https://raw.githubusercontent.com ?
>> The critical difference is that the problematic one begins with https. Doing HTTPS (SSL) through a proxy is no simple matter. Your IT folks' assertion that it should work if it works in the browser is almost certainly false for HTTPS.
>>
>> Since you're having so much trouble with the proxy, you should simply patch your run.py to replace https with http.
>>
>> Regards,
>>
>> Niklas Angare
>>
>>
>>
>> _______________________________________________
>> Boost-Testing mailing list
>> [hidden email]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
>> _______________________________________________
>> Boost-Testing mailing list
>> [hidden email]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing
> _______________________________________________
> Boost-Testing mailing list
> [hidden email]
> http://lists.boost.org/mailman/listinfo.cgi/boost-testing

_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing
_______________________________________________
Boost-Testing mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-testing