• Problem on using Java installer

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #46304  by taurus72
 
Hello,

I have setup a VM machine with Centos 7. In order to access the internet I use a proxy.
On running
Code: Select all
java -Dhttp.proxyHost=<proxy> -Dhttp.proxyPort=<proxy port> -jar OKMInstaller.jar
I get the following error:

- Downloading Tomcat: 8.5.24
Code: Select all
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?
 #46315  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
 #46780  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?
 #48856  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:
Code: Select all
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
 #48865  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.
 #49997  by ametcalfe
 
I am having the same problem,
Code: Select all
root@openkm:/home/openkm# java -jar OKMInstaller.jar 
Running on Linux: 0.9.15-CE (build: e1ee64b)
Linux distro: debian (Debian GNU/Linux - 10)
Local host: openkm (127.0.1.1)
Java version: 11.0.7
Free disk size: 57.7 GB
RAM size: 125.6 GB
CPU cores: 2
Supported databases: [h2, hsqldb, mariadb, mysql, oracle, postgresql, sqlserver]
Current directory: /home/openkm
ERROR: OpenKM needs Java 1.8
I only have openjdk version 11 on my OS

Code: Select all
root@openkm:/home/openkm# apt install openj
openjade                 openjdk-11-dbg           openjdk-11-doc           openjdk-11-jdk-headless  openjdk-11-jre-dcevm     openjdk-11-jre-zero      openjfx
openjazz                 openjdk-11-demo          openjdk-11-jdk           openjdk-11-jre           openjdk-11-jre-headless  openjdk-11-source        openjfx-source
root@openkm:/home/openkm# apt install openjdk-11-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-11-jre is already the newest version (11.0.7+10-3~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@openkm:/home/openkm# apt install openjdk-11-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-11-jdk is already the newest version (11.0.7+10-3~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 #50012  by jllort
 
what is your OS version because sure you can install version 1.8 ( check google -> OS name install openjdk 1.8 -> sure you will find)

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.