Curl redirect error has temporal component
Posted: Thu Jul 02, 2020 7:24 pm America/New_York
[this perhaps belongs here: https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?pid=55068, but I was hesitant to post to a month old thread]Regarding the error:curl: (47) Maximum (50) redirects followedWe've been wrestling with this for a month or so, whereby our downloads fail after a seemingly random number of file acquisitions. This is the command we generally use:> curl -O -b ~/.urs_cookies3 -c ~/.urs_cookies3 -L -n --interface 2607:fe50:0:6330::112 --retry 5 --retry-delay 2 --max-time 0 --remote-name-all https://oceandata.sci.gsfc.nasa.gov (/ob/getfile/{$(sed ':a;N;$!ba;s/\n/,/g' /path/to/filelist.txt)}Where filelist.txt is simply a list of L1A/L2/anc files. Regardless of how long the list is, if a file eventually returns the error, all subsequent files will fail (see snipped of curl stdout, below).I watched this behavior today and noticed that all of the failures happen on the hour from the initial call. Of the ones I timed today, ~12 such downloads ran for exactly 1 hour, ~3 ran for exactly 2 hours, and 1 ran for 3 hours. I don't know if this helps diagnose the issue, but I hope so...-brian...[137/1029]: https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218213500.L1A_LAC.bz2 --> A2011218213500.L1A_LAC.bz2--_curl_--https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218213500.L1A_LAC.bz2100 194M 100 194M 0 0 3895k 0 0:00:51 0:00:51 --:--:-- 3629k[138/1029]: https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218214000.L1A_LAC.bz2 --> A2011218214000.L1A_LAC.bz2--_curl_--https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218214000.L1A_LAC.bz2100 214M 100 214M 0 0 3962k 0 0:00:55 0:00:55 --:--:-- 4004k[139/1029]: https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218214500.L1A_LAC.bz2 --> A2011218214500.L1A_LAC.bz2--_curl_--https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218214500.L1A_LAC.bz2 0 214M 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0curl: (47) Maximum (50) redirects followed[140/1029]: https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218215000.L1A_LAC.bz2 --> A2011218215000.L1A_LAC.bz2--_curl_--https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2011218215000.L1A_LAC.bz2 0 214M 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (47) Maximum (50) redirects followed...