Edited season haven't started downloading

Hi all,

I’m running version 2.0.1 - created a couple of sites, automated download have started, L2A products successful created with MAJA and also a couple of mono-date L3B products generated, so far so good. However I decided to edit the season calendar from one of the sites, pushing back its start and pushing forward the ending date because I wanted some more images from that region (as a tentative for getting some more ‘cloud free’ products). After that, no system’s reaction – I thought the system would reckon new L1C products due the timing change and automatically making the download, but nothing happened.

I already tried to restart sen2agri-services, checked status and that’s what gives to me:

Help!!!

[farodrigues@sen2-agri ~]$ systemctl status sen2agri-services
● sen2agri-services.service - Services for Sen2Agri
Loaded: loaded (/usr/lib/systemd/system/sen2agri-services.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2019-08-19 10:45:18 CDT; 1 weeks 2 days ago
Main PID: 28597 (start.sh)
CGroup: /system.slice/sen2agri-services.service
├─28597 /bin/bash /usr/share/sen2agri/sen2agri-services/bin/start.sh
└─28602 java -cp …/modules/ :…/lib/ :…/config/* org.esa.sen2agri.ServicesStartup

Aug 28 10:55:53 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:53.778 INFO [Scientific Data Hub-S2-1] o.e.s.scheduling.RetryJob - [site ‘mx_yaqui_1tile’,sensor ‘Sentinel2’] No products to retry
Aug 28 10:55:53 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:53.785 WARN [DefaultQuartzScheduler_Worker-1] o.s.o.j.v.HibernateJpaDialect - JDBC Connection to reset not identical to originally prepared Connection - please make sur
Aug 28 10:55:53 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:53.785 WARN [DefaultQuartzScheduler_Worker-10] o.s.o.j.v.HibernateJpaDialect - JDBC Connection to reset not identical to originally prepared Connection - please make su
Aug 28 10:55:53 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:53.790 WARN [DefaultQuartzScheduler_Worker-4] o.s.o.j.v.HibernateJpaDialect - JDBC Connection to reset not identical to originally prepared Connection - please make sur
Aug 28 10:55:53 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:53.799 ERROR [DefaultQuartzScheduler_Worker-10] o.e.s.scheduling.LookupJob - java.lang.IllegalArgumentException: Points of LinearRing do not form a closed linestring
Aug 28 10:55:55 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:55.692 INFO [USGS-L8-1 ] r.c.t.d.usgs.Landsat8Query - Query returned 27 products
Aug 28 10:55:57 sen2-agri start.sh[28597]: 2019-Aug-28 10:55:57.447 ERROR [DefaultQuartzScheduler_Worker-4] o.e.s.scheduling.LookupJob - ro.cs.tao.datasource.QueryException: ro.cs.tao.datasource.QueryException: java.lang.NullPo
Aug 28 10:56:01 sen2-agri start.sh[28597]: 2019-Aug-28 10:56:01.849 INFO [Scientific Data Hub-S2-1] r.c.t.d.r.s.SciHubDataQuery - Query returned 0 products
Aug 28 10:56:01 sen2-agri start.sh[28597]: 2019-Aug-28 10:56:01.849 INFO [DefaultQuartzScheduler_Worker-1] o.e.s.scheduling.LookupJob - [site ‘MX_Yaqui_1Tile’,sensor ‘Sentinel2’] Found 0 products for site mx_yaqui_1tile
Aug 28 10:56:01 sen2-agri start.sh[28597]: 2019-Aug-28 10:56:01.857 WARN [DefaultQuartzScheduler_Worker-1] o.s.o.j.v.HibernateJpaDialect - JDBC Connection to reset not identical to originally prepared Connection - please make sur
Hint: Some lines were ellipsized, use -l to show in full.

Greetings!

Are there any update concerning this issue?
I recognized the same behavior, when adding another temporal segment or edit one of the existing. As workaround I created another site with the desired temporal segment and it worked fine.
I am using the current 2.0.3 version

Hello,

You can use the following script in order to force the system to query from the beginning of the (modified) season:
force_download_restart.zip (1.3 KB)
Basically, the operations performed are:

psql -U admin sen2agri
sen2agri# INSERT INTO config(key, site_id, value) VALUES (‘downloader.S2.forcestart’, <your_site_id>, true) on conflict (key, COALESCE(site_id, -1)) DO UPDATE SET value = true
sen2agri# \q
sudo systemctl restart sen2agri-services

Hope this helps.

Best regards,
Cosmin

Dear Cosmin,

thank you very much for this script. We will implement it in our service!