SEN2-Agri installation and configuration video tutorial

Hello,

On YouTube I’ve uploaded 2 videos presenting configuration and installation of CentOS 7 on VirtualBox in order to install SEN2-Agri and installation and configuration of SEN2-Agri on it. Below I send links:

SEN2-Agri - installation and configuration CentOS 7 on VirtualBox
SEN2-Agri installation and configuration

4 Likes

Hello,

Thanks a lot for sharing these videos. These are quite nice tutorials for installing Sen2Agri from scratch.
Do you mind if we also share these videos on the Sen2Agri system download page?

Best regards,
Cosmin

Yes of course you can share the videos I will be honored to see them on download page.

Best regards.

Thanks a lot for this.
Do you want we add some credits with the videos?

Best regards,
Cosmin

You’re welcome. I do not need credits.

Best regards.

Dear professor,
I have a problem during the installation process.:pensive:
#sudo systemctl restart sen2agri -servises
#return–Fail to parse signal string ervices
Please help me !

Best regards,
Jingjingwang

the services for sen2agri should be spelled as “sen2agri-services”, no space before the dash (-)

Hallo
I am new here and want to install this code
I am using window , is it possible to install it and how?
Thank you for help

Sen2Agri works only wit CentOS 7, but you can intall it as virtual system on Windows. For me best solution is VirtualBox (free to use whiteout extension pack).

1 Like

Hello, I am new to Sen2agri and I tried installing it for the first time following video tutorial. When I open the file “services.properties” my file is different from the one of the video and I can’t provide the user name and password for both SciHub and USGS servers (in the part of Data Sources Configuration).

Here is my “services.properties” file:

Copyright © 2018 CS ROMANIA

This program is free software; you can redistribute it and/or modify it

under the terms of the GNU General Public License as published by the Free

Software Foundation; either version 3 of the License, or (at your option)

any later version.

This program is distributed in the hope that it will be useful, but WITHOUT

ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for

more details.

You should have received a copy of the GNU General Public License along

with this program; if not, see http://www.gnu.org/licenses/

################################################

General Spring services configuration

server.port = 8080
spring.datasource.url=jdbc:postgresql://localhost:5432/sen2agri?stringtype=unspecified
spring.datasource.username=admin
spring.datasource.password=sen2agri

################################################

Datatabase configuration polling (in minutes)

database.config.polling=0

################################################

Data sources configuration

AWSDataSource.Sentinel2.local.archive.path.format = yyyy/MM/dd
SciHubDataSource.Sentinel2.local.missing.action=download

################################################

DIAS paths configuration (not needed for CreoDIAS)

Common supported values:

product.format = folder|zip|tar_gz

path.suffix = none|. (for example, .SAFE if it is part of the folder name)

Uncomment the one that suits you

CREO DIAS

SciHubDataSource.Sentinel2.path.suffix - possible values

none - no suffix is appended to the product name

“.SAFE” or other value is appended to the product name (like Creodias stores product folders)

SciHubDataSource.Sentinel2.path.suffix = .SAFE
SciHubDataSource.Sentinel2.product.format = folder

MUNDI DIAS

Sentinel-2 L1C path is s2-l1c-YYYY-qq/UU/L/SS/YYYY/MM/dd/<product_folder>, where:

UU = the UTM code

L = the latitude band

SS = the UTM square code

YYYY = year

MM = month (0-padded)

dd = day (0-padded)

<product_folder> = the product folder, without .SAFE suffix

Landsat-8 L1 path is PPP/RRR/YYYY/MM/, where:

PPP = the path (0-padded)

RRR = the row (0-padded)

YYYY = year

MM = month (0-padded)

= the product, as a tar.gz archive

The respective repository roots should be set in the database, in the respective datasource table records

#SciHubDataSource.Sentinel2.path.builder.class = org.esa.sen2agri.dias.mundi.Sentinel2PathBuilder
#SciHubDataSource.Sentinel2.local.archive.path.format = s2-l1c-YYYY-qq/UU/L/SS/YYYY/MM/dd
#SciHubDataSource.Sentinel2.path.suffix = none
#SciHubDataSource.Sentinel2.product.format = folder
#USGSDataSource.Landsat8.path.builder.class = org.esa.sen2agri.dias.mundi.Landsat8PathBuilder
#USGSDataSource.Landsat8.local.archive.path.format = PPP/RRR/YYYY/MM
#USGSDataSource.Landsat8.path.suffix = none
#USGSDataSource.Landsat8.product.format = tar_gz

ONDA DIAS

Sentinel-2 L1C path is YYYY/MM/dd/<product_name>.zip/<product_name>.SAFE, where:

YYYY = year

MM = month (0-padded)

dd = day (0-padded)

<product_name> = the product name, without .SAFE suffix

Landsat-8 L1 path is YYYY/MM/dd/<product_name>.tar/<product_name>, where:

YYYY = year

MM = month (0-padded)

dd = day (0-padded)

<product_name> = the product name, without any suffix

The respective repository roots should be set in the database, in the respective datasource table records

#SciHubDataSource.Sentinel2.path.builder.class = org.esa.sen2agri.dias.onda.Sentinel2PathBuilder
#SciHubDataSource.Sentinel2.local.archive.path.format = YYYY/MM/dd
#SciHubDataSource.Sentinel2.path.suffix = .SAFE
#SciHubDataSource.Sentinel2.product.format = folder
#USGSDataSource.Landsat8.path.builder.class = org.esa.sen2agri.dias.onda.Landsat8PathBuilder
#USGSDataSource.Landsat8.local.archive.path.format = YYYY/MM/dd
#USGSDataSource.Landsat8.path.suffix = .tar
#USGSDataSource.Landsat8.product.format = folder

SOBLOO DIAS

Sentinel-2 L1C path is S1[AB]/UU/L/SS/<product_folder>, where:

S1[AB] = the satellite (S1A or S1B)

UU = the UTM code

L = the latitude band

SS = the UTM square code

<product_folder> = the product folder, with .SAFE suffix

Landsat-8 L1 path is PPP/RRR/YYYY/MM/, where:

PPP = the path (0-padded)

RRR = the row (0-padded)

YYYY = year

MM = month (0-padded)

= the product, as a tar.gz archive

The respective repository roots should be set in the database, in the respective datasource table records

#SciHubDataSource.Sentinel2.path.builder.class = org.esa.sen2agri.dias.sobloo.Sentinel2PathBuilder
#SciHubDataSource.Sentinel2.local.archive.path.format = UU/L/SS/
#SciHubDataSource.Sentinel2.path.suffix = .SAFE
#SciHubDataSource.Sentinel2.product.format = folder
#USGSDataSource.Landsat8.path.builder.class = org.esa.sen2agri.dias.sobloo.Landsat8PathBuilder
#USGSDataSource.Landsat8.local.archive.path.format = PPP/RRR/YYYY/MM
#USGSDataSource.Landsat8.path.suffix = none
#USGSDataSource.Landsat8.product.format = tar_gz

Moreover, when I try to access the sen2agri configurator I get this error:

I tried reinstalling it but it happened again. Also, when executing “./sen2agriPlatformInstallAndConfig.sh” it starts decompresing without asking me which LIC processor should be used even though I followed the same steps of the video so I tried installing it before the Installation of sen2agri as explained in the user manual.

Thank you in advance.

It’s strange. It’s obviously problem with wrong installation. Have installed all as a root user? If not do that and give reply. Best regards.

Yes, I installed it as root user as shown in the video. I don’t know what the problem could be.

Best regards.

Did you disabled SE linux and put all the installers in right folders and gave read write folders permission?

I am facing the same issue, I am following the steps in the video (also SElinux disable) on a fresh installation of centos 7 (inside proxmox hypervisor instead of vmware, should not make any difference).

Would you be able to provide a snapshot of your virtual machine with the fresh installation to help everybody that is stuck with installing Sen2Agri?

We also had this error and could not fix it. As workaround you could use pgadmin3 to work on the database directly or use psql.

Basically the installer fails without stopping at

Error: Package: gdal-libs-1.11.4-3.el7.x86_64 (@epel)
           Requires: libgeotiff.so.1.2()(64bit)
           Removing: libgeotiff-1.2.5-14.el7.x86_64 (@epel)
               libgeotiff.so.1.2()(64bit)
           Updated By: libgeotiff-1.4.0-1.rhel7.x86_64 (pgdg-common)
               Not found
Error: Package: gdal-1.11.4-3.el7.x86_64 (@epel)
           Requires: libgeotiff.so.1.2()(64bit)
           Removing: libgeotiff-1.2.5-14.el7.x86_64 (@epel)
               libgeotiff.so.1.2()(64bit)
           Updated By: libgeotiff-1.4.0-1.rhel7.x86_64 (pgdg-common)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager