Page 1 of 1

Problem on using Java installer

Posted: Wed Jul 11, 2018 2:02 pm
by taurus72
Hello,

I have setup a VM machine with Centos 7. In order to access the internet I use a proxy.
On running

java -Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=<proxy port> -jar OKMInstaller.jar

I get the following error:

- Downloading Tomcat: 8.5.24
ERROR: sourceforge.net: Name or service not known

The OKMInstaller.log has the following entries:

Code: Select all

2018-07-11 16:24:36,863 [    main] INFO  com.openkm.installer.Main - Running in Linux: 0.9.6-CE (build: f6d8e19)
2018-07-11 16:24:36,865 [    main] INFO  com.openkm.installer.Main - Linux distro: centos (CentOS Linux - 7)
2018-07-11 16:24:36,870 [    main] INFO  com.openkm.installer.Main - Local host: <host_name> (<host_IP>)
2018-07-11 16:24:36,870 [    main] INFO  com.openkm.installer.Main - Java version: 1.8.0_171
2018-07-11 16:24:36,873 [    main] INFO  com.openkm.installer.Main - Free disk size: 45.0 GB
2018-07-11 16:24:36,875 [    main] INFO  com.openkm.installer.Main - RAM size: 3.7 GB
2018-07-11 16:24:36,875 [    main] INFO  com.openkm.installer.Main - CPU cores: 2
2018-07-11 16:24:36,875 [    main] INFO  com.openkm.installer.Main - Supported databases: [h2, hsqldb, mariadb, mysql, oracle, postgresql, sqlserver]
2018-07-11 16:24:36,875 [    main] INFO  com.openkm.installer.Main - Current directory: /home/openkm
2018-07-11 16:24:46,665 [    main] INFO  com.openkm.installer.Main - Install version: 6.3.6
2018-07-11 16:24:47,040 [    main] INFO  com.openkm.installer.b.c - Detected network interface: <interface_name>
2018-07-11 16:24:47,040 [    main] INFO  com.openkm.installer.b.c - Interface address: /<interface address>
2018-07-11 16:24:47,041 [    main] INFO  com.openkm.installer.b.c - Interface address: /<interface IP>
2018-07-11 16:24:47,041 [    main] INFO  com.openkm.installer.b.c - MAC address: <MAC>
2018-07-11 16:24:47,366 [    main] INFO  com.openkm.installer.b - ### BEGIN INSTALL ###
2018-07-11 16:24:47,367 [    main] INFO  com.openkm.installer.Main - Downloading Tomcat: 8.5.24
2018-07-11 16:24:47,379 [    main] INFO  com.openkm.installer.Main - ERROR: sourceforge.net: Name or service not known
2018-07-11 16:24:47,382 [    main] ERROR com.openkm.installer.Main - sourceforge.net: Name or service not known
java.net.UnknownHostException: sourceforge.net: Name or service not known
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
        at com.openkm.installer.b.h.a(SourceFile:1046)
        at com.openkm.installer.Main.a(SourceFile:273)
        at com.openkm.installer.Main.main(SourceFile:87)
Any ideas?

Re: Problem on using Java installer

Posted: Fri Jul 13, 2018 7:04 am
by jllort
Yes, the problem is the DNS, seems you are not able to resolve sourceforge.net

I suggest configure proxy at OS level ( https://docs.openkm.com/kcenter/view/ok ... proxy.html ):
Configuration below is based on setting proxy configuration parameters in the JVM environment. There's another option what is configuring proxy at OS level, here are several option one of them is:

Edit your "/etc/bash.bashrc" file as root and put these lines at the end of your "/etc/bash.bashrc" file:

Code: Select all

export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.net:port/
But that probably will not solve the DNS issue and you can try with these addtional lines when starting jar:
If you have issues resolving DNS you can also try with this configuration what is trying to use Google DNS:

Code: Select all

 -Dsun.net.spi.nameservice.nameservers=8.8.8.8
 -Dsun.net.spi.nameservice.provider.1=dns,sun

Re: Problem on using Java installer

Posted: Thu Sep 13, 2018 10:17 pm
by tomandreson
I am using the VM machine with CentOS setup but I am facing issue when I try to install Java on it. So, I started using the various websites and then https://microsoftsupport.co/microsoft-support-uk/ suggested me about this forum. I have also chexcked about the DNS issue but it is completely fone. So, may I know any other solution from here?

Re: Problem on using Java installer

Posted: Fri Sep 14, 2018 6:21 pm
by jllort

Re: Problem on using Java installer

Posted: Wed Sep 11, 2019 1:01 am
by atassano
Hello guys!!

I'm using Debian 10, And I have downloaded the Community version, and cannot install it doing java -jar OKMInstaller.run.
The message that I received is this:

Running in Linux: 0.9.13-CE (build: 0d76a11)
Linux distro: debian (Debian GNU/Linux - 10)
Local host: osboxes (127.0.1.1)
Java version: 11.0.4
Free disk size: 547.3 GB
RAM size: 1002.9 MB
CPU cores: 1
Supported databases: [h2, hsqldb, mariadb, mysql, oracle, postgresql, sqlserver]
Current directory: /media/sf_share
ERROR: OpenKM needs Java 1.8

Yes , My version of Java is newer that the required, I guessed it was not problem.

Please, can someone help me to solve this?

I really appreciate it.

Sincerely

Alfred

Re: Problem on using Java installer

Posted: Thu Sep 12, 2019 6:43 am
by jllort
You have "Java version: 11.0.4" and you need "OpenJDK 1.8", the reason is without this version the tomcat what is installed with OpenKM will not work. Until the installer will detect this java version the installer not advance in the following steps.