After installing Sen4Stat, the web page does not load

I have installed the Sen4Stat software in Centos 7, but when I open the web browser, I go to the page indicated in the user manual http://127.0.0.1/login.php or http://localhost/login.php, and the response from the browser is as follows:

Can not connect

Firefox cannot establish a connection to the server at localhost.
The site might be temporarily unavailable or too busy. Please try again in a few moments.
If you can’t load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure Firefox has permission to access the web.

I need to overcome this inconvenience, can someone help me?

Hello,

You should try :

http://localhost:8080/ui/login.html

Best regards,
Cosmin

1 Like

hello dear, thank you for your kindness.
I have tried with http://localhost:8080/ui/login.html, but it keeps giving the same message, how can I know if the localhost server is working? open another way to enter?

Hello,

When you are trying to connect, I assume that you are on the same machine, right?
Or you are trying to connect from another machine?
If you are trying from another machine, you need to try the above link with the IP address of the machine instead of localhost.
If you are trying connecting from the same machine, could you please provide me the logs after the following commands:

sudo systemctl restart sen2agri-services && sudo journalctl -fu sen2agri-services

Best regards,
Cosmin

Thanks again for your kindness.
Yes, I’m from the same machine. Install version 3.1 Sen4cap and it works fine, but I reinstall Centos7 and install version 3.2 sen4cap and that’s when I get this problem. The same thing happens to me with Sen4Stat.
This is what the log gives me:
[root@localhost ~]# sudo systemctl restart sen2agri-services && sudo journalctl -fu sen2agri-services

– Logs begin at jue 2023-08-17 12:14:24 -04. –

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.net.URLClassLoader.access$100(URLClassLoader.java:74)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.net.URLClassLoader$1.run(URLClassLoader.java:369)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.net.URLClassLoader$1.run(URLClassLoader.java:363)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.security.AccessController.doPrivileged(Native Method)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.net.URLClassLoader.findClass(URLClassLoader.java:362)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

ago 17 12:16:08 localhost.localdomain start.sh[3096]: at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621)

ago 17 12:20:04 localhost.localdomain systemd[1]: Started Services for Sen2Agri.

ago 17 12:20:04 localhost.localdomain start.sh[4871]: Error: A JNI error has occurred, please check your installation and try again

ago 17 12:20:04 localhost.localdomain start.sh[4871]: Exception in thread “main” java.lang.UnsupportedClassVersionError: org/esa/sen4cap/ServicesStartup has been compiled

Hello,

Could you try :

java -version

If an error or if Java version is less than 17, then please try executing:

sudo wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.rpm -P /tmp/
sudo rpm -ivh /tmp/jdk-17_linux-x64_bin.rpm
sudo rm -f /tmp/jdk-17_linux-x64_bin.rpm

And then again:

sudo systemctl restart sen2agri-services && sudo journalctl -fu sen2agri-services

Please let me know if this solves your issue.

Best regards,
Cosmin

Thank you dear Cosmin, with your help I have solved the problem. https://download.oracle.com is currently not allowing downloads, but I managed to download the Java 17 version from another server and it worked.

Hello,

Probably this is why it did not worked installing java during the automatic system installation.
But this is weird as I just tested the wget command from https://download.oracle.com (the command I gave you) and it worked OK for me.
Please make sure that is not something on your side concerning the external connections as you might have later issues with also the download of the products (ex. you are not using a proxy).

Best regards,
Cosmin

Dear, thank you for guiding me.
indeed, when adding a site, product downloads were activated, but they only made three downloads (one per satellite house), after that the next product starts at 0% and disappears, I have not found a way to continue the downloads. I attached an image.

Dear Cosmin.
I’m reading in the user manual about the /etc/yum.conf configuration and I’m going to put it into practice. I had read it before the installation, but because I didn’t know about Centos7, I thought that this proxy configuration did not apply to my computer. In any case, if you have suggestions or advice, they are perfectly received. Thanks in advance.
I have 2 questions, I would really appreciate if you help me.
1.- inside /etc/yum.conf what is the proxy server:port that I should place? (my ip=192.162.0.100:8080 or http://mycache.mydomain.com:3128 or other?)
2.- I must also configure my proxy for the Sen4CAP-Services downloaders by editing /usr/share/sen2agri/sen2agriservices/config/services.properties ?

Dear Cosmin @cudroiu , I hope you are well.
You will know what is the IP address that I should put inside /etc/yum.conf (my ip=192.162.0.100:8080 or http://mycache.mydomain.com:3128 or other?)