Hello everyone,
I have installed Sen4Cap 2.0 and I am trying to make it operational, but I am running into some difficulties, and I decided that it can’t hurt to ask for help.
I have tried creating a few separate sites that are less than 18 months old, for the tile of 29SND (Portugal). The period I am trying out is usually between 1 and 3 months, but I am encountering some difficulties in understanding why the system is failing to work operationally.
The products are being downloaded up to a certain point, but there was a point where SciHub was mentioning that there were too many requests). I found the solution to this problem on the forum: Problem with downloading products - #12 by cudroiu
Nevertheless, what’s more important now is that MAJA (demmaccs) is always entering failed state, but I am unsure how to debug where this problem stems from. I did put the right privileges for sen2agri-services on /opt/maja, and checking them it looks as follow:
[root@my_system maja]# ls -ld
drwxr-xr-x 3 sen2agri-service root 4096 Mar 3 19:14 .
Then I checked that I have correctly installed MAJA
[root@my_system bin]# bash maja --version
2021-03-18T13:06:08.169027 my_system maja-processing-3.3.2 3.3 [000000026868] [I] MAJA Software Version : 3.3.2
OTB Version : 6.0.0
2021-03-18T13:06:08.169431 my_system maja-processing-3.3.2 3.3 [000000026868] [W] Application handler initialization: Version message
I use the usual commands of restarting services, looking at systemctl -f, and journalctl as well. These are some logs I am now getting from the command:
sudo journalctl -fu sen2agri-demmaccs --since “2 hours ago”
Mar 18 13:07:00 my_system systemd[1]: Started Runs MACCS on L1C products.
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.216376:[27349]:MainThread: Successful db fetch
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.221461:[27349]:MainThread: Successful db fetch
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.232051:[27349]:MainThread: Successful db fetch
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.235896:[27349]:MainThread: Successful db fetch
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.238126:[27349]:MainThread: Successful db fetch
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) : product 90 assigned to <worker 0>
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: #################### Tile & Site Info ####################
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: site_id = 16
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: satellite_id = 1
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: orbit_id = 37
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: tile_id = 29SND
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: downloader_history_id = 90
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: path = /mnt/archive/dwn_def/s2/default/fff/S2A_MSIL1C_20200608T112121_N0209_R037_T29SND_20200608T115350.SAFE
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: previous_l2a_path = None
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: site_short_name = fff
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: site_output_path = /mnt/archive/maccs_def/fff/l2a/
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.238413:[27349]:<worker 0>: 0: Starting extract_from_archive_if_needed for tile 29SND
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.238512:[27349]:<worker 0>: This wasn’t an archive, so continue as is.
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.238548:[27349]:<worker 0>: 0: Ended extract_from_archive_if_needed for tile 29SND
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: (launcher info) <worker 0>: Successful pre-processing = True
Mar 18 13:07:00 my_system l2a_launcher.py[27349]: 2021-03-18 13:07:00.239924:[27349]:<worker 0>: Successful pre-processing = True
Mar 18 13:07:00 my_system systemd[1]: sen2agri-demmaccs.service: main process exited, code=exited, status=1/FAILURE
Mar 18 13:07:00 my_system systemd[1]: Unit sen2agri-demmaccs.service entered failed state.
Mar 18 13:07:00 my_system systemd[1]: sen2agri-demmaccs.service failed.
Looking at this thread:
and the table config in the database:
psql -U admin sen4cap -c “select * from config where key like ‘%demmaccs%’”
I noticed that this returns no rows corresponding to demmaccs. Could it be there’s an error in the installation/configuration/integration of MAJA with Sen4CAP?
Thanks for any help provided,
Greetings,