problem with https
Posted: Wed Jan 11, 2017 9:12 am America/New_York
Dear colleagues,
after the switch to https in december we encountered various problems, including in running the updates that could bring solutions - importantly we're operating behind a corporate http proxy. So this post might be related to the post https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=6431 .
Below is an example with a proposed work-around.
Particularly we encountered problems downloading the 'luts' files.
The error on command "./install_ocssw.py --install-dir=/opt/seadas-7.3.2/ocssw --viirsn" was:
....
Installing viirsn-luts (10 of 11)
Error! could not establish a network connection. Check your network connection.
If you do not find a problem, please try again later.
Error - Could not install luts for viirsn
To work around this issue we did the following changes to the file /run/scripts/modules/ProcUtils.py :
run/scripts/modules/ProcUtils.py:68
# if proxy is None:
# full_request = request
# else:
# full_request = ''.join(['http://', url, request])
if proxy is not None:
urlConn.set_tunnel(url, 443)
try:
# req = urlConn.request('GET', full_request, headers=reqHeaders)
req = urlConn.request('GET', request, headers=reqHeaders)
except:
err_msg = '\n'.join(['Error! could not establish a network connection. Check your network connection.',
'If you do not find a problem, please try again later.'])
sys.exit(err_msg)
With these changes we are able to download all the luts successfully. But of course any feedback is very much welcome.
Cheers,
F.
after the switch to https in december we encountered various problems, including in running the updates that could bring solutions - importantly we're operating behind a corporate http proxy. So this post might be related to the post https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=6431 .
Below is an example with a proposed work-around.
Particularly we encountered problems downloading the 'luts' files.
The error on command "./install_ocssw.py --install-dir=/opt/seadas-7.3.2/ocssw --viirsn" was:
....
Installing viirsn-luts (10 of 11)
Error! could not establish a network connection. Check your network connection.
If you do not find a problem, please try again later.
Error - Could not install luts for viirsn
To work around this issue we did the following changes to the file /run/scripts/modules/ProcUtils.py :
run/scripts/modules/ProcUtils.py:68
# if proxy is None:
# full_request = request
# else:
# full_request = ''.join(['http://', url, request])
if proxy is not None:
urlConn.set_tunnel(url, 443)
try:
# req = urlConn.request('GET', full_request, headers=reqHeaders)
req = urlConn.request('GET', request, headers=reqHeaders)
except:
err_msg = '\n'.join(['Error! could not establish a network connection. Check your network connection.',
'If you do not find a problem, please try again later.'])
sys.exit(err_msg)
With these changes we are able to download all the luts successfully. But of course any feedback is very much welcome.
Cheers,
F.