Hello Cosmin,
My first installation is 1.7, but I repeatedly had a clean install then. From that, I updated the system to 1.8.1, 1.8.3 and finally to version 2.
By the way here are the results of the command:
brentf@nirvana-ESSC_MNL:[~]: sudo su -l sen2agri-service
Last login: Thu May 23 10:11:47 PST 2019 on pts/0
su: warning: cannot change directory to /home/sen2agri-service: No such file or directory
-bash-4.2$ ls -l /opt/maja/bin/maja
ls: cannot access /opt/maja/bin/maja: Permission denied
-bash-4.2$ ls -l /mnt/archive/gipp_maja
total 28
drwxrwxrwx. 26 brentf brentf 8192 Feb 21 15:27 LANDSAT8
drwxrwxrwx. 57 brentf brentf 12288 Feb 21 15:28 SENTINEL2
While this is the error for the maja manual execution:
2019-05-23 10:16:13.806026:[9090]:Starting MACCS/MAJA in L2INIT for /mnt/archive/dwn_def/s2/default/isabela19/S2B_MSIL1C_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE | TileID: 51QVV
2019-05-23 10:16:13.806132:[9090]:MACCS_COMMAND: ['/opt/maja/bin/maja', '--input', '/mnt/archive/demmaccs_tmp/tmpUPzMfD/51QVV', '--TileId', '51QVV', '--output', '/mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV', '--mode', 'L2INIT', '--loglevel', 'DEBUG', '--enableTest', 'false', '--CheckXMLFilesWithSchema', 'false', '--conf', '/usr/share/sen2agri/sen2agri-demmaccs/UserConfiguration']
2019-05-23 10:16:13.806250:[9090]:Running command: /opt/maja/bin/maja --input /mnt/archive/demmaccs_tmp/tmpUPzMfD/51QVV --TileId 51QVV --output /mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV --mode L2INIT --loglevel DEBUG --enableTest false --CheckXMLFilesWithSchema false --conf /usr/share/sen2agri/sen2agri-demmaccs/UserConfiguration
Traceback (most recent call last):
File "/usr/share/sen2agri/sen2agri-demmaccs/demmaccs.py", line 509, in <module>
out = maccs_launcher(demmaccs_contexts[0])
File "/usr/share/sen2agri/sen2agri-demmaccs/demmaccs.py", line 293, in maccs_launcher
if run_command(cmd_array, demmaccs_context.output, tile_log_filename) != 0:
File "/usr/lib/python2.7/site-packages/sen2agri_common_db.py", line 155, in run_command
res = subprocess.call(cmd_array, shell=False)
File "/usr/lib64/python2.7/subprocess.py", line 524, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Apparently, I figured out a workaround by sudo chmod -R 777 /opt/maja/bin/maja/
and it worked.
B2.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:404]
2019-05-23T10:47:49.509810 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B2 image file done (time is 8.2 second).
2019-05-23T10:47:49.509967 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B3 image file...
2019-05-23T10:47:49.510008 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] Write the file <SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0_SRE_B3.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:404]
2019-05-23T10:47:57.829620 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B3 image file done (time is 8.3 second).
2019-05-23T10:47:57.829741 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B4 image file...
2019-05-23T10:47:57.829768 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] Write the file <SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0_SRE_B4.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:404]
2019-05-23T10:48:05.948087 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B4 image file done (time is 8.1 second).
2019-05-23T10:48:05.948209 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B8 image file...
2019-05-23T10:48:05.948237 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] Write the file <SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0_SRE_B8.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:404]
2019-05-23T10:48:14.123835 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the SRE B8 image file done (time is 8.2 second).
2019-05-23T10:48:14.123970 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] vnsCachingMacro Proceed caching... with file name vns_caching_L2ImageFileWriterBaseFREImage0.tif (ModeStreamDivisions=1; NumberOfStreamDivisions=800). [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:414]
2019-05-23T10:48:36.180903 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] => Caching with file name vns_caching_L2ImageFileWriterBaseFREImage0.tif run in 22 second. [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:414]
2019-05-23T10:48:36.185568 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the FRE B2 image file...
2019-05-23T10:48:36.185629 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] Write the file <SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0_FRE_B2.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:437]
2019-05-23T10:48:44.448880 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the FRE B2 image file done (time is 8.3 second).
2019-05-23T10:48:44.449020 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the FRE B3 image file...
2019-05-23T10:48:44.449050 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] Write the file <SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0_FRE_B3.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:437]
2019-05-23T10:48:52.631857 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the FRE B3 image file done (time is 8.2 second).
2019-05-23T10:48:52.631978 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [I] Writing the FRE B4 image file...
2019-05-23T10:48:52.632009 nirvana-ESSC_MNL maja-processing-3.2.2 3.2 [000000012252] [D] Write the file <SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0_FRE_B4.tif> in directory </mnt/archive/maccs_def/isabela19/l2a/S2B_MSIL2A_20190128T021949_N0207_R003_T51QVV_20190128T040527.SAFE/maccs_51QVV/SENTINEL2B_20190128-023247-444_L2A_T51QVV_C_V1-0> with ModeStreamDivisions=1 and BufferNumberOfLinesDivisions: 800 [vnsMuscateL2ImageFileWriter.txx:WritePublicImages:437]
Thank you for patience and support. Now my next problem is how to continue the downloading process as the sen2agri-service encountered error. I’ll post this in another topic.
Regards,
Brent