Hello Sen4CAP team and @cudriou,
We have been running in some issues with Sen4CAP L4B Grassland Mowing processor. It seems to be failing on the second step.
Here is the error text:
Traceback (most recent call last):
File “/usr/share/sen2agri/S4C_L4B_GrasslandMowing/Bin/generate_grassland_mowing_input_shp.py”, line 195, in
main()
File “/usr/share/sen2agri/S4C_L4B_GrasslandMowing/Bin/generate_grassland_mowing_input_shp.py”, line 167, in main
dataset.StartTransaction()
File “/usr/lib64/python2.7/site-packages/osgeo/ogr.py”, line 405, in
getattr = lambda self, name: _swig_getattr(self, DataSource, name)
File “/usr/lib64/python2.7/site-packages/osgeo/ogr.py”, line 54, in _swig_getattr
raise AttributeError(name)
AttributeError: StartTransaction
The output of this process is here:
/usr/share/sen2agri/S4C_L4B_GrasslandMowing/Bin/generate_grassland_mowing_input_shp.py is absolute!
No filter-ctnum provided!
No filter-ids-table provided!
sen2agri-service
sen2agri-service
Activating conda sen4cap for user sen2agri-service
Executing source ~/.bashrc && conda activate sen4cap && python /usr/share/sen2agri/S4C_L4B_GrasslandMowing/Bin/generate_grassland_mowing_input_shp.py --config-file /etc/sen2agri/sen2agri.conf --site-id 5 --path /mnt/archive/orchestrator_temp/s4c_l4b/1256/10018-s4c-grassland-gen-input-shp/SEN4CAP_L4B_GeneratedInputShp.shp --year 2020select short_name from site where id = 5
Starting executing the commands …
ogr2ogr -sql ‘select “NewID”, ori_hold as “Ori_hold”, ori_id as “Ori_id”, ori_crop as “Ori_crop”, “Area_meters” as “Area_meter”, wkb_geometry from “decl_rugaju_dwnld_2020”’ /mnt/archive/orchestrator_temp/s4c_l4b/1256/10018-s4c-grassland-gen-input-shp/SEN4CAP_L4B_GeneratedInputShp.shp ‘PG:dbname=sen4cap host=localhost port=5432 user=admin password=sen2agri’ -lco ENCODING=UTF-8
Finished executing commands!
5423 feature(s) found
Also, the output for the first step indicates several warnings of not being able to copy files, maybe that might be the reason why the function of the 2nd step can’t locate the attribute.
Output of ProductFormatter:
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10021-product-formatter/SEN4CAP_L4B_S1_S2_MowingDetection.shp to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.shp
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10021-product-formatter/SEN4CAP_L4B_S1_S2_MowingDetection.dbf to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.dbf
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10021-product-formatter/SEN4CAP_L4B_S1_S2_MowingDetection.prj to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.prj
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10021-product-formatter/SEN4CAP_L4B_S1_S2_MowingDetection.shx to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.shx
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10021-product-formatter/SEN4CAP_L4B_S1_S2_MowingDetection.shp to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.shp
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10020-s4c-grassland-mowing/SEN4CAP_L4B_S1_S2_MowingDetection.dbf to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.dbf
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10020-s4c-grassland-mowing/SEN4CAP_L4B_S1_S2_MowingDetection.prj to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.prj
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10020-s4c-grassland-mowing/SEN4CAP_L4B_S1_S2_MowingDetection.shx to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/VECTOR_DATA/SEN4CAP_L4B_S1_S2_MowingDetection.shx
2020 Aug 10 18:40:40 : Application.logger (WARNING) Error copying file /mnt/archive/orchestrator_temp/s4c_l4b/1256/10021-product-formatter/executionInfos.txt to file /mnt/archive/rugaju_dwnld/s4c_l4b//S2AGRI_S4C_L4B_PRD_S5_20200810T184040_V20200601T000000_20200815T000000/AUX_DATA/S2AGRI_S4C_L4B_IPP_V20200601T000000_20200815T000000.txt
CoordRefSystem.HorizCSName = CoordRefSystem.HorizCSName.empty() =1
I added a system log for one of the failed attempts as well:
JOB_ID_1274.txt (17.1 KB)
Thanks a lot in advance!