-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when downloading Landsat with force-level1-landsat search #262
Comments
Hi Jari, the error occurs when trying to add the scene that was just downloaded to the QUEUE file, so you probably don't need to worry about the download itself. Thanks, |
Hi Stefan, thanks for the quick reply. So the download happens correctly but the QUEUE file is not updated correctly? I think so far the error happened only once each time i started the process.
|
could this be a potential file conflict when parallelly downloading images? |
@JariPekko Thanks, it looks like there is definitely an issue with writing the file queue. Please make sure to create the queue for processing yourself before starting the Level 2 processing. @davidfrantz There is potential for this to happen in the current version. However, according to the traceback the issue here is that the callback function (called after downloading a scene) isn't getting the url passed on properly. |
I have run several tests and was unfortunately not able to reproduce the issue. However, the way that the force queue file is created has been reworked to make sure that there aren't conflicts due to parallel access of processes on the same file. Instead of using a callback, we now use multiprocessing.Queue and a dedicated process that listens for results of the other processes and writes the queue file. @JariPekko maybe you can try to pull the latest |
I pulled the latest image used it without changing anything else and it seems to be working as intended now. A small update to the process before the latest Thanks, and i'll post an update about how it went |
I'm happy to report that the download went flawlessly and rather quickly. In one day the ~11TB were downloaded. Though the QUEUE file didn't seem to update at all. I downloaded 20792 scenes (as requested minus 1) but the QUEUE file had only 5771 lines, which it had before using the new Thanks a lot for your quick help!! |
Thanks for the feedback Jari! I also noticed that the download speed has improved by orders of magnitude. I hope there have been changes to the infrastructure and it will stay like this now. Glad to hear the issue is solved! To be honest I'm a bit puzzled that the queue file wasn't updated in your case. This was tested successfully here and I also had someone contact me in private with the same issue who had no issues writing the queue file after the update. Was the file maybe locked by another process by any chance? |
I'm new to Linux and may be overlooking something, but I can't think of another process that would have locked the QUEUE file. I stopped the download ( For testing purposes i just downloaded another scene with a new QUEUE file and new directories. Now the QUEUE file was updated correctly. |
Good to hear, thanks. Leaving the commit for reference and closing this as completed. |
Hi!
I get the following error message when downloading Landsat images from USGS with force-level1-landsat search and i don't know if it's a problem.
Error message
I used the following command:
dforce force-level1-landsat search Landsat_tiles.txt images/ --cloudcover 0,70 --queue-file queue.txt --secret usgs_m2m_access.txt --download
Behaviour
The download starts as expected and images are downloaded. After a few minutes the error message from above appears but the process is not aborted and the download continues.
Setup
FORCE version 3.7.10 using Docker
Ubuntu 20.04.5 LTS
Linux Server
500G RAM, 80 CPUs
Question
Do i have to worry?
Is it just a warning that an URL didn't work?
The text was updated successfully, but these errors were encountered: