2025-10-13 12:41:51,830 [rasterio.env] (DEBUG ) GDAL data found in package: path='/usr/local/lib/python3.8/dist-packages/rasterio/gdal_data'. 2025-10-13 12:41:51,830 [rasterio.env] (DEBUG ) PROJ data found in package: path='/usr/local/lib/python3.8/dist-packages/rasterio/proj_data'. 2025-10-13 12:41:52,470 : Using zone naming : T31TDJ 2025-10-13 12:41:52,472 : #Preparing working dir : /data/T31TDJ_2025-06-01_2025-06-30 -downloaded S1 : /data/T31TDJ_2025-06-01_2025-06-30/S1_DOWN -downloaded S2 : /data/T31TDJ_2025-06-01_2025-06-30/S2_DOWN -processed landuse : /data/T31TDJ_2025-06-01_2025-06-30/RPG -processed NDVI : /data/T31TDJ_2025-06-01_2025-06-30/NDVI -processed gapfilled NDVI : /data/T31TDJ_2025-06-01_2025-06-30/NDVI_GAPF -processed S1 : /data/T31TDJ_2025-06-01_2025-06-30/S1_ORTHO -processed SSM : /data/T31TDJ_2025-06-01_2025-06-30/SSM 2025-10-13 12:41:52,546 : ### Auto SoilMoisture Production for T31TDJ from 2025-06-01 to 2025-06-30 ### 2025-10-13 12:41:52,546 : #Creating labels raster reference from : /data/RGP/RPG_2024_T31TDJ.gpkg 2025-10-13 12:41:52,546 : File already exists : /data/T31TDJ_2025-06-01_2025-06-30/RPG/RPG_FILTLABELS_T31TDJ.TIF. Passing... 2025-10-13 12:41:52,565 : Labels raster has been created into /data/T31TDJ_2025-06-01_2025-06-30/RPG/RPG_FILTLABELS_T31TDJ.TIF 2025-10-13 12:41:52,582 : #Starting S2L2A download into /data/T31TDJ_2025-06-01_2025-06-30/S2_DOWN Traceback (most recent call last): File "/work/python/manage.py", line 22, in main() File "/work/python/manage.py", line 18, in main execute_from_command_line(sys.argv) File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 442, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.8/dist-packages/django/core/management/__init__.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.8/dist-packages/django_extensions/management/email_notifications.py", line 65, in run_from_argv super().run_from_argv(argv) File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 412, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.8/dist-packages/django_extensions/management/email_notifications.py", line 77, in execute super().execute(*args, **options) File "/usr/local/lib/python3.8/dist-packages/django/core/management/base.py", line 458, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.8/dist-packages/django_extensions/management/utils.py", line 62, in inner ret = func(self, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/django_extensions/management/commands/runscript.py", line 281, in handle run_script(script_mod, *script_args) File "/usr/local/lib/python3.8/dist-packages/django_extensions/management/commands/runscript.py", line 159, in run_script exit_code = mod.run(*script_args) File "/work/python/scripts/ServiceWrapper.py", line 90, in run autop.autoprodssmww() File "/work/python/theiacesprodapp/backend/servicemanager.py", line 245, in autoprodssmww self.sentinel_download(1) File "/work/python/theiacesprodapp/backend/servicemanager.py", line 365, in sentinel_download s2wktsearch = tilegeom.centroid.wkt UnboundLocalError: local variable 'tilegeom' referenced before assignment Starting : python manage.py runscript ServiceWrapper --script-args autossmww agriref@vector zone@s2tile aoifile@none landusemap@none s2tile@T31TDJ sd@2025-06-01 ed@2025-06-30 rgpshp@/data/RGP/RPG_2024_T31TDJ.gpkg labelsfield@ID_PARCEL landusefield@CODE_GROUP agrivalues@1 2 3 4 5 6 7 8 9 11 14 15 16 18 19 25 modeldir@/data/models/ modelchoice@dry slopevalue@20 sarmode@vv outformat@raster skipdownloads@s1 overwrite@0 debug@0 process failed 1 : b"('autossmww', 'agriref@vector', 'zone@s2tile', 'aoifile@none', 'landusemap@none', 's2tile@T31TDJ', 'sd@2025-06-01', 'ed@2025-06-30', 'rgpshp@/data/RGP/RPG_2024_T31TDJ.gpkg', 'labelsfield@ID_PARCEL', 'landusefield@CODE_GROUP', 'agrivalues@1 2 3 4 5 6 7 8 9 11 14 15 16 18 19 25', 'modeldir@/data/models/', 'modelchoice@dry', 'slopevalue@20', 'sarmode@vv', 'outformat@raster', 'skipdownloads@s1', 'overwrite@0', 'debug@0')\nException while running run() in 'scripts.ServiceWrapper'\n" #################################################