MajaFactoryException : No factory to handle
Hi, I have problem with processing some of the products from around 2018. The error is: ERROR MAJA 4.7 main:119 MajaFactoryException : No factory to handle /mnt/vol/tmp/Start_maja_c45dca4d04aa5007b2b9b7c117ce8dd3/S2B_MSIL1C_20181011T101019_N0206_R022_T32TNT_20181011T122059.SAFE/MTD_MSIL1C.xml
The products is available here: https://explore.creodias.eu/search/details/S2B_MSIL1C_20181011T101019_N0206_R022_T32TNT_20181011T122059.SAFE?catalogueId=creodias
Maja version: 4.7.1 Python version: 3.8.10
It's strange, because product actually have the MTD_MSIL1C.xml file. Here are the logs from the processing, please note that it was started by python subporcess, and the output is splited by stdout and stderr:
2023-12-05 21:56:48,358 [INFO ] =============This is Start_Maja v4.7.1==============
2023-12-05 21:56:48,362 [WARNI] repCAMS is missing. Processing without CAMS
2023-12-05 21:56:48,366 [INFO ] Detecting input products...
2023-12-05 21:56:48,381 [INFO ] 8 L1C product(s) detected for tile 32TNT in /mnt/vol/input/L1C-Products/T32TNT
2023-12-05 21:56:48,381 [WARNI] No L2A products detected for tile 32TNT in /mnt/vol/input/L2A-Products/T32TNT
2023-12-05 21:56:48,382 [INFO ] Skipping CAMS file detection.
2023-12-05 21:56:48,382 [INFO ] Checking GIPP files
2023-12-05 21:56:48,382 [INFO ] Setting up GIPP folder: /maja/lib/python/StartMaja/start_maja_gipp
2023-12-05 21:56:48,683 [INFO ] Searching for DTM
2023-12-05 21:56:48,683 [INFO ] Cannot find DTM. Will attempt to download it for type 'glo30'
2023-12-05 21:56:48,684 [INFO ] Attempting to download DTM...
2023-12-05 21:57:48,763 [INFO ] DTM Creation succeeded.
2023-12-05 21:57:49,050 [INFO ] GIPP Creation succeeded for SENTINEL2
2023-12-05 21:57:49,051 [INFO ] 8 workplan(s) successfully created:
DATE | TILE | MODE | L1-PRODUCT | ADDITIONAL INFO
2018-10-04 10:20:19 | 32TNT | BACKWARD | S2B_MSIL1C_20181004T102019_N0206_R065_T32TNT_20181004T141056.SAFE | Backward of 8 products
2018-10-11 10:10:19 | 32TNT | NOMINAL | S2B_MSIL1C_20181011T101019_N0206_R022_T32TNT_20181011T122059.SAFE | L2 from previous
2018-10-12 10:30:21 | 32TNT | NOMINAL | S2A_MSIL1C_20181012T103021_N0206_R108_T32TNT_20181012T124407.SAFE | L2 from previous
2018-10-17 10:30:19 | 32TNT | NOMINAL | S2B_MSIL1C_20181017T103019_N0206_R108_T32TNT_20181017T142233.SAFE | L2 from previous
2018-10-21 10:10:39 | 32TNT | NOMINAL | S2B_MSIL1C_20181021T101039_N0206_R022_T32TNT_20181021T141054.SAFE | L2 from previous
2018-10-26 10:11:11 | 32TNT | NOMINAL | S2A_MSIL1C_20181026T101111_N0206_R022_T32TNT_20181026T104202.SAFE | L2 from previous
2018-11-01 10:31:51 | 32TNT | NOMINAL | S2A_MSIL1C_20181101T103151_N0206_R108_T32TNT_20181101T110430.SAFE | L2 from previous
2018-11-05 10:12:11 | 32TNT | NOMINAL | S2A_MSIL1C_20181105T101211_N0206_R022_T32TNT_20181105T104758.SAFE | L2 from previous
2023-12-05 21:57:49,052 [INFO ] Beginning workplan execution.
2023-12-05 21:57:49,052 [INFO ] Executing workplan #1/8
2023-12-05 21:57:50 [305] PROGRESS MAJA 4.7 initialize:558 Starting MAJA_L2_BACKWARD_CHAIN
2023-12-05 21:57:50 [305] ERROR MAJA 4.7 main:119 MajaFactoryException : No factory to handle /mnt/vol/tmp/Start_maja_c45dca4d04aa5007b2b9b7c117ce8dd3/S2B_MSIL1C_20181011T101019_N0206_R022_T32TNT_20181011T122059.SAFE/MTD_MSIL1C.xml
2023-12-05 21:57:50 [305] ERROR MAJA 4.7 main:122 Process NOK, exit code : 136
INFO:root:=============This is Start_Maja v4.7.1==============
WARNING:root:repCAMS is missing. Processing without CAMS
INFO:root:Detecting input products...
INFO:root:8 L1C product(s) detected for tile 32TNT in /mnt/vol/input/L1C-Products/T32TNT
WARNING:root:No L2A products detected for tile 32TNT in /mnt/vol/input/L2A-Products/T32TNT
INFO:root:Skipping CAMS file detection.
INFO:root:Checking GIPP files
INFO:root:Setting up GIPP folder: /maja/lib/python/StartMaja/start_maja_gipp
INFO:root:Searching for DTM
INFO:root:Cannot find DTM. Will attempt to download it for type 'glo30'
INFO:root:Attempting to download DTM...
INFO:StartMaja.prepare_mnt.mnt.CopDEMGLO30:Dowwloading /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N46_00_E008_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.CopDEMGLO30:Dowwloading /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N46_00_E009_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.CopDEMGLO30:Dowwloading /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N46_00_E010_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.CopDEMGLO30:Dowwloading /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N47_00_E008_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.CopDEMGLO30:Dowwloading /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N47_00_E009_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.CopDEMGLO30:Dowwloading /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N47_00_E010_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.copdem_dag:Try to download Copernicus_DSM_COG_10_N46_00_E008_00_DEM/Copernicus_DSM_COG_10_N46_00_E008_00_DEM.tif to /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N46_00_E008_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.copdem_dag:Try to download Copernicus_DSM_COG_10_N46_00_E009_00_DEM/Copernicus_DSM_COG_10_N46_00_E009_00_DEM.tif to /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N46_00_E009_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.copdem_dag:Try to download Copernicus_DSM_COG_10_N46_00_E010_00_DEM/Copernicus_DSM_COG_10_N46_00_E010_00_DEM.tif to /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N46_00_E010_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.copdem_dag:Try to download Copernicus_DSM_COG_10_N47_00_E008_00_DEM/Copernicus_DSM_COG_10_N47_00_E008_00_DEM.tif to /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N47_00_E008_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.copdem_dag:Try to download Copernicus_DSM_COG_10_N47_00_E009_00_DEM/Copernicus_DSM_COG_10_N47_00_E009_00_DEM.tif to /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N47_00_E009_00_DEM.tif
INFO:StartMaja.prepare_mnt.mnt.copdem_dag:Try to download Copernicus_DSM_COG_10_N47_00_E010_00_DEM/Copernicus_DSM_COG_10_N47_00_E010_00_DEM.tif to /maja/lib/python/StartMaja/start_maja_rawdem/Copernicus_DSM_10_N47_00_E010_00_DEM.tif
/maja/lib/python/StartMaja/prepare_mnt/mnt/MNTBase.py:120: RuntimeWarning: divide by zero encountered in true_divide
dz_dc > 0, np.arccos(dz_dl / norme), 2 * np.pi - np.arccos(dz_dl / norme)
/maja/lib/python/StartMaja/prepare_mnt/mnt/MNTBase.py:120: RuntimeWarning: invalid value encountered in true_divide
dz_dc > 0, np.arccos(dz_dl / norme), 2 * np.pi - np.arccos(dz_dl / norme)
/maja/lib/python/StartMaja/prepare_mnt/mnt/MNTBase.py:120: RuntimeWarning: invalid value encountered in arccos
dz_dc > 0, np.arccos(dz_dl / norme), 2 * np.pi - np.arccos(dz_dl / norme)
INFO:root:DTM Creation succeeded.
INFO:root:GIPP Creation succeeded for SENTINEL2
INFO:root:8 workplan(s) successfully created:
INFO:root:Beginning workplan execution.
INFO:root:Executing workplan #1/8
Traceback (most recent call last):
File "/maja/lib/python/StartMaja/Start_maja.py", line 1030, in <module>
s.run()
File "/maja/lib/python/StartMaja/Start_maja.py", line 850, in run
self.maja, self.dtm, self.gipp, self.userconf, self.output_plugin
File "/maja/lib/python/StartMaja/Chain/Workplan.py", line 294, in execute
outformat=outformat,
File "/maja/lib/python/StartMaja/Chain/Workplan.py", line 223, in launch_maja
maja, args, logfile=logfile, skip_error=self.skip_errors
File "/maja/lib/python/StartMaja/Common/FileSystem.py", line 203, in run_external_app
raise subprocess.CalledProcessError(return_code, cmd)
subprocess.CalledProcessError: Command '/maja/bin/maja -w /mnt/vol/tmp/Start_maja_c45dca4d04aa5007b2b9b7c117ce8dd3/maja_working_directory --input /mnt/vol/tmp/Start_maja_c45dca4d04aa5007b2b9b7c117ce8dd3 --output /mnt/vol/input/L2A-Products/T32TNT --mode L2BACKWARD -ucs /maja/lib/python/StartMaja/userconf --TileId 32TNT --loglevel PROGRESS' returned non-zero exit status 136.
Encountered MAJA processing error:
Corrupted input: MajaFactoryException
Also, there is visible an ZeroDivisionError, but I guess that this is not the root cause.