MAJA not working

Hello,

I’m a new Sen4CAP user. I’m trying to run the L2 processors using the data provided for the example site in the Netherlands.
The L2-S1 processor works perfectly. However, the S2 L2A processor does not produce any results!

The DEM processor seems to work fine (looking at the demmaccs.log files). However, something seems not to be working correctly when it comes to MAJA.

Here is the output from the demmaccs_31UFT.log file:

2020-08-04 17:30:06.549884:[31557]:dmworker_0: Starting demmaccs
2020-08-04 17:30:06.550046:[31557]:Running command: /usr/share/sen2agri/sen2agri-demmaccs/demmaccs.py --srtm /mnt/archive/srtm --swbd /mnt/archive/swbd --processes-number-dem 1 --processes-number-maccs 1 --gipp-dir /mnt/archive/gipp_maja --working-dir /mnt/archive/demmaccs_tmp/ --maccs-launcher /opt/maja/3.2.2/bin/maja --delete-temp True /mnt/archive/demmaccs_tmp/archives/tmpz8i0el/S2A_MSIL1C_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE /mnt/archive/maccs_def/test_nd/l2a/S2A_MSIL2A_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE/ --tiles-to-process 31UFT
2020-08-04 17:32:14.336873:[31584]:Symbolic link L2SITE for tile id 31UFT GIPP file could not be found. Searching for the common one
2020-08-04 17:32:14.337700:[31584]:Copied /mnt/archive/gipp_maja/SENTINEL2/S2__TEST_GIP_L2SITE_S_CMN00____10001_00000000_99999999.EEF to /mnt/archive/demmaccs_tmp/tmpKYtBGB/31UFT/S2__TEST_GIP_L2SITE_S_31UFT____10001_00000000_99999999.EEF
2020-08-04 17:32:14.338781:[31584]:Symbolic link CKEXTL for tile id 31UFT GIPP file could not be found. Searching for the common one
2020-08-04 17:32:14.339661:[31584]:Copied /mnt/archive/gipp_maja/SENTINEL2/S2A_TEST_GIP_CKEXTL_S_CMN00____10001_20150703_21000101.EEF to /mnt/archive/demmaccs_tmp/tmpKYtBGB/31UFT/S2A_TEST_GIP_CKEXTL_S_31UFT____10001_20150703_21000101.EEF
2020-08-04 17:32:14.340689:[31584]:Symbolic link CKQLTL for tile id 31UFT GIPP file could not be found. Searching for the common one
2020-08-04 17:32:14.341468:[31584]:Copied /mnt/archive/gipp_maja/SENTINEL2/S2A_TEST_GIP_CKQLTL_S_CMN00____10005_20150703_21000101.EEF to /mnt/archive/demmaccs_tmp/tmpKYtBGB/31UFT/S2A_TEST_GIP_CKQLTL_S_31UFT____10005_20150703_21000101.EEF
2020-08-04 17:32:14.349711:[31584]:No previous processed l2a tile found for 31UFT in product S2A_MSIL1C_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE. Running MACCS/MAJA in L2INIT mode
2020-08-04 17:32:14.349801:[31584]:sat_id = 1 | acq_date = 20190123T104331
2020-08-04 17:32:14.349851:[31584]:Starting MACCS/MAJA in L2INIT for /mnt/archive/demmaccs_tmp/archives/tmpz8i0el/S2A_MSIL1C_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE | TileID: 31UFT
2020-08-04 17:32:14.349931:[31584]:MACCS_COMMAND: [’/opt/maja/3.2.2/bin/maja’, ‘–input’, ‘/mnt/archive/demmaccs_tmp/tmpKYtBGB/31UFT’, ‘–TileId’, ‘31UFT’, ‘–output’, ‘/mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT’, ‘–mode’, ‘L2INIT’, ‘–loglevel’, ‘DEBUG’, ‘–enableTest’, ‘false’, ‘–CheckXMLFilesWithSchema’, ‘false’, ‘–conf’, ‘/usr/share/sen2agri/sen2agri-demmaccs/UserConfiguration’]
2020-08-04 17:32:14.350035:[31584]:Running command: /opt/maja/3.2.2/bin/maja --input /mnt/archive/demmaccs_tmp/tmpKYtBGB/31UFT --TileId 31UFT --output /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT --mode L2INIT --loglevel DEBUG --enableTest false --CheckXMLFilesWithSchema false --conf /usr/share/sen2agri/sen2agri-demmaccs/UserConfiguration
2020-08-04 17:32:14.357886:[31584]:Command finished NOK (res = 127) in 0:00:00.007740 : /opt/maja/3.2.2/bin/maja --input /mnt/archive/demmaccs_tmp/tmpKYtBGB/31UFT --TileId 31UFT --output /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT --mode L2INIT --loglevel DEBUG --enableTest false --CheckXMLFilesWithSchema false --conf /usr/share/sen2agri/sen2agri-demmaccs/UserConfiguration
2020-08-04 17:32:14.357972:[31584]:MACCS/MAJA mode L2INIT didn’t work for /mnt/archive/demmaccs_tmp/archives/tmpz8i0el/S2A_MSIL1C_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE | TileID: 31UFT. Location /mnt/archive/maccs_def/test_nd/l2a/S2A_MSIL2A_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE/
2020-08-04 17:32:14.358575:[31584]:Searching for report maccs file (REPT) in: /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT
2020-08-04 17:32:14.358630:[31584]:No report maccs files (REPT) found in: /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT.
2020-08-04 17:32:14.359081:[31584]:Searching for valid products in working dir: /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT. Following is the content of this dir: []
2020-08-04 17:32:14.359797:[31584]:No valid products (MACCS VALD status or THEIA/MUSCATE formats) found in: /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT.
2020-08-04 17:32:14.359880:[31584]:Erasing the MACCS/MAJA working directory: rmtree: /mnt/archive/demmaccs_tmp/tmpKYtBGB/maccs_31UFT
2020-08-04 17:32:14.569260:[31557]:Command finished NOK (res = 1) in 0:02:08.019145 : /usr/share/sen2agri/sen2agri-demmaccs/demmaccs.py --srtm /mnt/archive/srtm --swbd /mnt/archive/swbd --processes-number-dem 1 --processes-number-maccs 1 --gipp-dir /mnt/archive/gipp_maja --working-dir /mnt/archive/demmaccs_tmp/ --maccs-launcher /opt/maja/3.2.2/bin/maja --delete-temp True /mnt/archive/demmaccs_tmp/archives/tmpz8i0el/S2A_MSIL1C_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE /mnt/archive/maccs_def/test_nd/l2a/S2A_MSIL2A_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE/ --tiles-to-process 31UFT
2020-08-04 17:32:14.569391:[31557]:dmworker_0: demmaccs.py script failed!
2020-08-04 17:32:14.580291:[31557]:dmworker_0: Tile 31UFT marked as FAILED (should the process be retried: True). The L1C product S2A_MSIL2A_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE finished: True. Reason for failure: None
2020-08-04 17:32:14.581466:[31557]:dmworker_0: Unknown format found in output directory
2020-08-04 17:32:14.581589:[31557]:dmworker_0: Processing for tile 31UFT finished. Set the state as processed in downloader_history (no l2a tiles found after maccs finished) for product /mnt/archive/maccs_def/test_nd/l2a/S2A_MSIL2A_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE/
2020-08-04 17:32:16.045428:[31557]:dmworker_0: Product /mnt/archive/maccs_def/test_nd/l2a/S2A_MSIL2A_20190123T104331_N0207_R008_T31UFT_20190123T111502.SAFE/ inserted

I tried to run demmaccs.py in the terminal, and I noticed this message at the end of its execution:

Running command: /opt/maja/3.2.2/bin/maja --input /mnt/archive/demmaccs_tmp/tmpBF32s0/31UFT --TileId 31UFT --output /mnt/archive/demmaccs_tmp/tmpBF32s0/maccs_31UFT --mode L2INIT --loglevel DEBUG --enableTest false --CheckXMLFilesWithSchema false --conf /usr/share/sen2agri/sen2agri-demmaccs/UserConfiguration
/opt/maja/3.2.2/bin/maja-processing-3.2.2: error while loading shared libraries: libMajaChain.so.3.2: cannot open shared object file: No such file or directory

Is there something wrong with my MAJA installation?

Thank you in advance for your help!

Best regards

Hello,
I solved the issue, it was indeed an incorrect installation of MAJA (wrong installation path).
Now that I have re-installed MAJA properly (to the directory /opt/maja/3.2.2/), the S2 L2A processor works fine.

Hi!

Where did you find MAJA installation file? I did donwload all the versions from the cnes web page, but each one of them cannot be installed due to checksum integrity error.

Any help will be appreciated!

Thanks

Hi,

I used the MAJA installation v. 3.2.2 TM that I found here: https://logiciels.cnes.fr/en/node/58?type=tel

Best regards

1 Like