Cannot Open Cookies File

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
hydrochemist
Posts: 2
Joined: Mon Jan 10, 2022 8:16 am America/New_York
Answers: 0

Cannot Open Cookies File

by hydrochemist » Mon Jan 10, 2022 8:25 am America/New_York

I have installed wget 1.21.2 and would have created the .urs_cookies. However, when using command-line to extract data order from the http_manifest.txt file, the command stops at a line that says "Cannot open cookies file '~/.urs_cookies': No such file or directory". I tired changing the location of the cookie file and that did not help. Can you please help me?

OB.DAAC - amscott
User Services
User Services
Posts: 345
Joined: Mon Jun 22, 2020 5:24 pm America/New_York
Answers: 1
Has thanked: 8 times
Been thanked: 3 times

Re: Cannot Open Cookies File

by OB.DAAC - amscott » Mon Jan 10, 2022 8:44 am America/New_York

Please post your command here so we can try to spot any issues.

hydrochemist
Posts: 2
Joined: Mon Jan 10, 2022 8:16 am America/New_York
Answers: 0

Re: Cannot Open Cookies File

by hydrochemist » Mon Jan 10, 2022 8:50 am America/New_York

C:\Users\wql> wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --no-check-certificate --content-disposition -i http_manifest.txt
Cannot open cookies file '~/.urs_cookies': No such file or directory
--2022-01-10 09:48:40-- https://oceandata.sci.gsfc.nasa.gov/cgi ... sted_files
Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... 169.154.128.84
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|169.154.128.84|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: /ob/getfile/requested_files_1.tar?h=ocdist308&p=/data1/5030f30f7bdf176e/requested_files [following]
--2022-01-10 09:48:41-- https://oceandata.sci.gsfc.nasa.gov/ob/ ... sted_files
Reusing existing connection to oceandata.sci.gsfc.nasa.gov:443.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/au ... 2Frestrict [following]
--2022-01-10 09:48:41-- https://urs.earthdata.nasa.gov/oauth/au ... 2Frestrict
Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... 198.118.243.33
Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|198.118.243.33|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'authorize@response_type=code&client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict'

authorize@response_type=code& [ <=> ] 11.99K --.-KB/s in 0s

2022-01-10 09:48:42 (46.6 MB/s) - 'authorize@response_type=code&client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict' saved [12275]

FINISHED --2022-01-10 09:48:42--
Total wall clock time: 1.6s
Downloaded: 1 files, 12K in 0s (46.6 MB/s)
Cannot open cookies file '~/.urs_cookies': No such file or directory

OB.DAAC - amscott
User Services
User Services
Posts: 345
Joined: Mon Jun 22, 2020 5:24 pm America/New_York
Answers: 1
Has thanked: 8 times
Been thanked: 3 times

Re: Cannot Open Cookies File

by OB.DAAC - amscott » Mon Jan 10, 2022 10:28 am America/New_York

I would say if the issue is that your .netrc file is not found when you run the command, you just need to point to where you saved it on your machine. The instructions found here:
create a .netrc file:
https://oceancolor.gsfc.nasa.gov/data/d ... ods/#netrc

assume that you saved the file in your home directory. If you have it somewhere else, use that path in the command.

Then the instructions to retrieve your order here:
https://oceancolor.gsfc.nasa.gov/data/d ... orders_sec

Post Reply