Issues with wget authentication

Please enter here to ask a question about any NASA Science related topics!
earthengine_urs
Posts: 34
Joined: Mon Jan 27, 2020 10:36 am America/New_York

Issues with wget authentication

by earthengine_urs » Thu Apr 16, 2020 8:49 pm America/New_York

Sean,

You are right, my issue is that I did not get this far. I'm still having authentication issues. I cannot use neither wget nor curl, so I have to do everything manually.

Looking at wget's auth-no-challenge implementation, it seems all it does is set basic auth headers, which we already do. Yet my client that works with LPDAAC and GSFC does not work with your server. Can you say more what's different about your setup?

Thanks,
Simon

Tags:

OB.DAAC - SeanBailey
User Services
User Services
Posts: 1216
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1

Issues with wget authentication

by OB.DAAC - SeanBailey » Fri Apr 17, 2020 8:50 am America/New_York

Simon,

Since I have no idea what LP or GES-DISC (I assume you meant them or maybe you meant LAADS, anyway we're three are at GSFC...OK there is a fourth CDDIS...) are doing, I can't say what is different.
It's not a complicated process.  Requests are redirected to EarthData Login, once verified, they redirect back to us.  That part cannot be any different for LP or GES-DISC or LAADS

Have you looked at the python script we made available on our download_methods page?

Sean

gnwiii
Posts: 640
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2

Issues with wget authentication

by gnwiii » Fri Apr 17, 2020 10:59 am America/New_York

At my former workplace, wget and curl were not reliable.  Web browsers and Sean's obdaac_download.py script have been reliable.   Both wget and curl suffer with the added complexity needed to support legacy protocols and sign-on mechanisms.   Wget sometimes tries to use IPv6 (based on DNS replies), then reports no route to host.  If you are behind some sort of enterprise firewall, there may be tweaks in place for other sites using the EarthData SSO.  

You need to work with your IT people.    In the past, one connectivity problem was resolved after high level IT people talked to Goddard's IT people and were able to pinpoint a configuration problem with a router (controlled by a 3rd party) along one path to Goddard.   Getting to the right IT people in a large enterprise can be tricky as there may be several layers of support people who follow their script: "if it works in Windows Explorer then your linux is not configured properly and we don't support linux so it isn't our problem".    It may help to compare debugging output for a server that works and one that fails.   Such output may be enough to get past the scripted IT support levels.

earthengine_urs
Posts: 34
Joined: Mon Jan 27, 2020 10:36 am America/New_York

Issues with wget authentication

by earthengine_urs » Fri Apr 17, 2020 9:56 pm America/New_York

Thank you for the pointer, gnwiii@ . I was actually going to change my custom Java code to something saner, an since the resources module works well for me, I'll just switch to Python.

Post Reply