wget daymet download SSL error

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
robertjespersen
Posts: 2
Joined: Tue Apr 23, 2024 1:57 pm America/New_York
Answers: 0

wget daymet download SSL error

by robertjespersen » Tue Apr 23, 2024 2:04 pm America/New_York

First time trying to use Wget to access my daymet order. When I enter this suggested text into my command prompt window: wget -r -np -nH --reject "index.html*" -e robots=off https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdaac.ornl.gov%2Forders%2Fa042d92773ba5bca45d87260e3dfbcb6%2F&data=05%7C02%7Crobert.jespersen%40usda.gov%7C88e3814923ee4abd413908dc62f1f66d%7Ced5b36e701ee4ebc867ee03cfa0d4697%7C1%7C0%7C638494038576493490%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=NUonNY5380vXmyMcWcMzmctvL%2BwZuf3p5o4Ma219MEQ%3D&reserved=0

I get this error message:
Connecting to gcc02.safelinks.protection.outlook.com|104.47.65.28|:443... connected.
Unable to establish SSL connection.
'data' is not recognized as an internal or external command,
operable program or batch file.
'sdata' is not recognized as an internal or external command,
operable program or batch file.
'reserved' is not recognized as an internal or external command,
operable program or batch file.

Other info:
Windows 10 Enterprise 10.0.19045
Wget 1.11.4
Using a windows command prompt following cd to the wget bin where the application is stored
Any help you can provide would be greatly appreciated,
Gus

Tags:

ORNL - mthornton
User Services
User Services
Posts: 39
Joined: Tue Jun 23, 2020 2:46 pm America/New_York
Answers: 0
Location: ORNL DAAC
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: wget daymet download SSL error

by ORNL - mthornton » Tue Apr 23, 2024 3:32 pm America/New_York

Hi Gus,
We're looking into your question. Thank you for reaching out.
You are experiencing this problem because our email security tool is re-writing the wget information.
We'll provide a correct statement as soon as possible.
Michele


Michele Thornton
Oak Ridge National Laboratory | Environmental Sciences Division
ESD | CCSI | DAAC | RSEI
1 Bethel Valley Road, MS 6301
Oak Ridge, TN 37830

ORNL - wrightdm
Subject Matter Expert
Subject Matter Expert
Posts: 2
Joined: Mon Dec 02, 2019 1:19 pm America/New_York
Answers: 0

Re: wget daymet download SSL error

by ORNL - wrightdm » Tue Apr 23, 2024 4:56 pm America/New_York

Gus,

The safelinks URL is a result of email clients being extra protective. In this case Microsoft Outlook has changed the URL in your email so it's safer. This is an issue we know about at ORNL DAAC. We are still exploring options to make that recommended URL display correctly in the email. It turns out that is difficult because email clients are really good at identifying URLs.

There are a few things you can do to get the correct URL:

- follow the link in the email to go to the download page then copy/paste the resulting URL
- enter the link in to Office 365's URL decoder here: https://o365atp.com/

In your case, the correct URL is:

Code: Select all

https://daac.ornl.gov/orders/a042d92773ba5bca45d87260e3dfbcb6/
We also have an order help page that explains more about building the wget command: https://daac.ornl.gov/help/order/

Let us know if this helps!

Daine Wright
ORNL DAAC System Engineer

robertjespersen
Posts: 2
Joined: Tue Apr 23, 2024 1:57 pm America/New_York
Answers: 0

Re: wget daymet download SSL error

by robertjespersen » Tue Apr 23, 2024 6:15 pm America/New_York

Thank you, that's very informative.

Unfortunately, now I get this:
Resolving daac.ornl.gov... 160.91.19.24
Connecting to daac.ornl.gov|160.91.19.24|:443... connected.
Unable to establish SSL connection

I tried both the link you sent copied directly as well as the translated once from o365atp and got the same error message (link text looks identical). Any thoughts?

ORNL - wrightdm
Subject Matter Expert
Subject Matter Expert
Posts: 2
Joined: Mon Dec 02, 2019 1:19 pm America/New_York
Answers: 0

Re: wget daymet download SSL error

by ORNL - wrightdm » Wed Apr 24, 2024 11:41 am America/New_York

I recommend updating the latest version of wget. There are many off-shoots of wget, so I can't say exactly how to do that for your specific case.

Most of the guidance I found about the "Unable to establish SSL connection" error suggests older version of wget are using outdated SSL technology. The posts I found were admittedly older. For example: https://superuser.com/questions/1182465/wget-returning-error-unable-to-establish-ssl-connection

You can also try including

Code: Select all

--no-check-certificate
to see if it will download your data that way.

Post Reply