Transferring products into a fresh install

Dear Harijsi,

It seems that this issue is due to some limitations introduces by SciHub in the last time (1-2 weeks). Apparently, they introduces some time constraints for the number of queries performed in a given amount of time (or maybe is just a temporary issue they have).
For now, a quick solution would be to change the configuration of the SciHub plugin to use apihub instead dhus:

  • Copy the /usr/share/sen2agri/sen2agri-services/lib/tao-datasources-scihub-1.0.X.X.jar into a distinct folder
  • unzip/extract from the archive (the jar is actually a zip archive)
  • go into ro/cs/tao/datasource/remote/scihub/scihub.properties and switch the comments as below:
    scihub.search.url = https://scihub.copernicus.eu/apihub/search
    #scihub.search.url = The Sentinels Scientific Data Hub
  • Put back the modified file in the jar file, in the same location
  • copy back the modified jar file into /usr/share/sen2agri/sen2agri-services/lib/
  • Restart the services

Or, you can use the following script to do this automatically:change_scihub_jar_cfg.zip (891 Bytes)

The script can be invoked to simply switch from dhus to apihub:

./change_scihub_jar_cfg.sh
./change_scihub_jar_cfg.sh -s apihub

or, to switch back to dhus:

./change_scihub_jar_cfg.sh -s dhus

Please note that we decided to use at some point dhus instead of apihub due to some large timeouts that SciHub had on apihub when querying S1 (I hope that they solved this issue).

Please let me know.

Best regards,
Cosmin

1 Like