Page 1 of 1

unable to establish SSL connection

Posted: Wed Apr 28, 2021 11:44 pm America/New_York
by zbegg
i had setup a crontab which was downloading daily chlorophyll data over the years. Since last month i have been experiencing data not downloading. when i run the script manually it states : unable to establish SSL connection. appreciate any assistance on this.
my server runs from AWS and is built on Ubuntu 16.04.6. I have followed the steps outlined in
i have created a .netrc file with username/password. i am using wget yo download, wget version 1.17.1

this is my code:
if '$PERIOD' == 'daily':
for delta in range(4):
date_stamp = today + timedelta(-delta)
date_stamp = date_stamp.timetuple()
file_name = 'A%4d%03d.L3m_DAY_CHL_chlor_a_4km' % (date_stamp.tm_year, date_stamp.tm_yday)
nc_file_name = file_name + '.nc'
nc_file_path = 'daily/' + nc_file_name
full_url = url + nc_file_name
print full_url
if os.path.exists(nc_file_path):
check_call(['wget','-nc', '--auth-no-challenge=on', '--content-disposition', '', '--random-wait', '-P', 'daily'])
except CalledProcessError as cpe:
print cpe.message;
print '\n'
except OSError as oe:
print oe.strerror;
print '\n'
print full_url;
print '\n'

Re: unable to establish SSL connection

Posted: Thu Apr 29, 2021 11:11 am America/New_York
by OB.DAAC - amscott
I would suggest upgrading to a more current version of wget to see if that would resolve the issue.

Re: unable to establish SSL connection

Posted: Fri Apr 30, 2021 8:31 am America/New_York
by gnwiii

Code: Select all
mentions using an AppKey and also Python downloaders. For me, the python scripts have been more reliable than wget.

Re: unable to establish SSL connection

Posted: Fri May 21, 2021 2:01 pm America/New_York
by zbegg
thank you for your suggestion. I have upgraded to wget version 1.21, the latest one. now i see the error as: HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
I have .netrc as well as .urs_cookies

appreciate any advice please

Re: unable to establish SSL connection

Posted: Tue May 25, 2021 8:02 am America/New_York
by OB.DAAC - SeanBailey
Well, "Connection timed out" suggests some server in the mix failed to respond within the timeout defined for wget. Run the wget command with the --debug option, which will print out a lot of information. Some of it might help you identify the issue.