Open toshaklg opened 3 years ago
Hi Anton, Just to be sure: did you checked the permission of the root dir of Maja only ? Does it applies recursively to all sub-directories ? Could you please send us the content of folder.txt ? Thanks, Jerome
Oh, right, I totally forgot about posting this info as well, here it is:
Content of folder.txt
[Maja_Inputs] repWork=./work repGipp=./gipp repMNT=./dtm repL1 =/home/anton/MAJA_INPUT repL2 =/home/anton/MAJA_INPUT exeMaja=/home/anton/MAJA_R/bin repCAMS=/path/to/CAMS [DTM_Creation] repRAW=./dtm/raw repGSW=./dtm/gsw
The input directory has the following structure:
/home/anton/MAJA_INPUT/31TFJ/S2A_MSIL1C_20170103T104432_N0204_R008_T31TFJ_20170103T104428.SAFE/ ... and more .SAFE folders inside 31TFJ
Regarding permissions, I changed them recursively on "Read and Write" for all, but some systemlinks from MAJA directory threw an error that they cannot be changed, so I left them be.
You don't need to set the write permission to all on the maja directory, but 'x' is mandatory for execution. I strongly suggest you separate your 'jobs' from the root directory of maja. As far as I see it, the dtm and gipp are all created in the 'bin' dir of Maja, which is neither clean nor safe. You may instead create a separated 'maja_jobs' in your home dir where you create your 'dtm' and 'gipp' using startmaja, and point 'repL2' to another directory than 'repL1'. You'd get something like ~/MAJA_INPUT => where you already store your L1C ~/MAJA_OUTPUT => where Maja writes output files ~/MAJA_JOBS => where you prepare your batch runs, dtm, gipp, folder.txt, etc... ~/MAJA_R => where you keep your executable safe with 'rx' for other
To make it even easier, you could add the ../MAJA_R/bin directory in your $PATH variable right from your .bashrc
Hope this helps, Jerome
Thanks, I will post the results here as soon as I am done.
Hi @toshaklg ,
More certainly, the issue stems from the fact that you need to append /maja to the exeMaja path - You need to reference the full path to the maja executable not just the folder it is located in.
Kind regards, Peter
Thanks @jerome-colin and @petket-5, I changed the folders, downloaded DEM that MAJA asked me to do and now it looks like it works both ways - with full path and with ./startmaja. However, I now encounter the following issue:
OSError: [Errno 28] No space left on device: '/tmp/raw_dem_gcn2zdi3'
but I assume it asks for even more free space, though I have about 40 GB on the hard drive...
Yeah, actually, it is either "no space error" or "permission denied" error which just deliberately appear one after another on different machines.
This looks similar to an open issue on version 4.2.5 : https://gitlab.orfeo-toolbox.org/maja/maja/-/issues/229
Okay, with some additional help I found the issue: in the folders.txt exeMaja should actually point on maja executable, not the folder. Instead of
exeMaja=/home/anton/MAJA_R/bin
I need
exeMaja=/home/anton/MAJA_R/bin/maja
In the readme.md here in the repository, it is a bit controversial info, since folders.txt example is accurate but the description below tells to use a folder, rather than executable for maja. I am not saying that this is wrong, but it definitely took me some time to figure out.
Thanks for quick replies here!
Sorry for the inaccuracy in the documentation, we'll correct the readme ! Thank you for reporting it ! Olivier
Hello @toshaklg , Thanks for using startmaja ! I think /tmp directory is mounted as a tmpfs filesystem, could you try to empty it before running startmaja? Don't hesite to report bug directly on the gitlab (https://gitlab.orfeo-toolbox.org/maja/maja/-/tree/develop), now is our main development platform, Kind regards, Julie
Hello there! I wonder if anybody had a similar issue and know how it can be fixed.
I use MAJA 4.2.1 from logiciels.cnes.fr, 'Avignon' data downloaded with PEPS and when I make an attempt to run it on the test data by using
i get a permission denied after start of executing the worklplan:
I checked the rights and it looks like they are not the issue, but I have no idea what it could be then. Does anyone have any suggestions?
Thanks!