Problem on using Java installer

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.
Post Reply
taurus72
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Wed Jul 11, 2018 1:53 pm

Problem on using Java installer

Post by taurus72 » Wed Jul 11, 2018 2:02 pm

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?

jllort
Moderator
Moderator
Posts: 10078
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Problem on using Java installer

Post by jllort » Fri Jul 13, 2018 7:04 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest