podaac / data-subscriber

Subscribe and bulk download collections of data at PO.DAAC
Apache License 2.0
83 stars 29 forks source link

Can't download data #122

Open aro-n opened 1 year ago

aro-n commented 1 year ago

I'm trying to download data from SMAP, made the installation of podaac-data-subscriber and configure netrc.

podaac-data-subscriber -c SMAP_RSS_L2_SSS_V4 -d ./data/SMAP_RSS_L2_SSS_V4 --start-date 2015-04-01T00:43:12Z [2023-03-07 14:09:19,991] {podaac_data_subscriber.py:335} DEBUG - Log level set to DEBUG [2023-03-07 14:09:19,993] {podaac_data_subscriber.py:340} ERROR - Uncaught exception occurred during execution. Traceback (most recent call last): File "/home/arofcn/anaconda3/lib/python3.8/site-packages/subscriber/podaac_data_subscriber.py", line 338, in main run() File "/home/arofcn/anaconda3/lib/python3.8/site-packages/subscriber/podaac_data_subscriber.py", line 124, in run pa.setup_earthdata_login_auth(edl) File "/home/arofcn/anaconda3/lib/python3.8/site-packages/subscriber/podaac_access.py", line 77, in setup_earthdata_loginauth username, , password = netrc.netrc().authenticators(endpoint) File "/home/arofcn/anaconda3/lib/python3.8/netrc.py", line 30, in init self._parse(file, fp, default_netrc) File "/home/arofcn/anaconda3/lib/python3.8/netrc.py", line 104, in _parse raise NetrcParseError( netrc.NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/home/arofcn/.netrc, line 3)

aro-n commented 1 year ago

this helped chmod u+rw,u-x,go-rwx ~/.netrc ls -la ~/.netrc

mike-gangl commented 1 year ago

thanks for the info- we can add that to any netrc documentation we have, but it is system specific (linux/unix/mac vs windows).

aro-n commented 1 year ago

linux debian 10