Page 2 of 2

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Tue Jun 24, 2014 3:28 pm
by mroushdy
jllort wrote:
icek wrote:Hi,
How to set OpenKM.cfg to create repository again please?
do
hibernate.hbm2ddl=none

This didn't work for me.

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Tue Jun 24, 2014 6:33 pm
by jllort
stop openkm
clean tomcat/logs folder
set openkm.cfg to create again
start openkm
zip catalina.log and upload here

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Wed Jun 25, 2014 7:17 am
by mroushdy
the log file is attached.

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Fri Jun 27, 2014 6:18 pm
by jllort
I suggest add in your hosts file the servername ip resolution
your ip LT-LNX-03

Because seems the server is not able to resolve into ip your server name ( probably bad networking configuration in some place )

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Sat Jun 28, 2014 9:06 am
by mroushdy
Thanks, but it didn't fix it, I've added a record in my local DNS, but no use, do you want me to edit some file in the Linux itself and add the DNS name?

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Mon Jun 30, 2014 6:31 am
by jllort
add into /etc/hosts

Re: Error after logging in for the first time: Taxonomy erro

PostPosted:Fri Jul 18, 2014 11:24 am
by balkrishnad
Looks your network configuration is an issue and your centos box cant resolve it's own IP address. Add an entry in your 'hosts' file or configure your directory server correctly.

Command to get hostname:

>hostname

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Wed Feb 04, 2015 8:11 am
by meister043
Terribly sorry for bringing up an old topic.

I stumbled upon the same error, it exactly stopped on loading the taxonomy.
I have tried the steps mentioned before (stopped the tomcat, deleted the logs, and so on) , it solved nothing.

For your information, here are the details
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

I used the latest version of OpenKM, which is 6.3.0 community version. The hostname is properly set, so the hostname shouldn't be an issue here.

Any insights on this would be very appreciated.

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Fri Feb 06, 2015 11:31 pm
by jllort
I continue thinking the same, when I've seen this kind of error in other computer, always has been caused by miss or wrong network configuration. Seems openkm.petrogres.local is not resolving correctly can you add in your /etc/hosts
Code: Select all
127.0.0.1 openkm.petrogres.local
if not goes right try to change /conf/server.xml
Code: Select all
<Connector address="0.0.0.0" connectionTimeout="20000" port="8180" protocol="HTTP/1.1" redirectPort="8443"/>
or
Code: Select all
<Connector address="your_ip_here" connectionTimeout="20000" port="8180" protocol="HTTP/1.1" redirectPort="8443"/>
Note-> the latest two changes needs openkm restarting

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Sun Apr 12, 2015 12:26 pm
by srf68
I have the same problem and my config is Centos 6.5 runing on a VM (VMware). and openjdk jre u65-b17.
No one of the solutions worked for me.

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Mon Apr 13, 2015 8:40 am
by srf68
srf68 wrote:I have the same problem and my config is Centos 6.5 runing on a VM (VMware). and openjdk jre u65-b17.
No one of the solutions worked for me.
Finally i found out what is the problem. In com.openkm.core.Config.java class and in line:920 it returns an UnknownHostException that cause we have an "Error reading configuration table" error in start openkm and in catalina.log file. I set the application.url to my own application url in OpenKM.cfg and any thing ok now. :)

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Thu Apr 16, 2015 4:46 pm
by jllort
The UnknownHostException is caused because application try to connect to openkm.com to retrieve OpenKM latest version and suggest on user UI the upgrade when needed.

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Sat Apr 18, 2015 4:48 am
by srf68
jllort wrote:The UnknownHostException is caused because application try to connect to openkm.com to retrieve OpenKM latest version and suggest on user UI the upgrade when needed.
I don't think so. I get UnknownHostException when it's trying to guess default application URL as the comment at line:910 said it:
Code: Select all
// Guess default application URL
			String defaultApplicationUrl = cfg.getProperty(PROPERTY_APPLICATION_URL);
			
			if (defaultApplicationUrl == null || defaultApplicationUrl.isEmpty()) {
				String hostName = InetAddress.getLocalHost().getCanonicalHostName();
				defaultApplicationUrl = "http://" + hostName + "/" + Config.CONTEXT + "/index.jsp";
			}
When the PROPERTY_APPLICATION_URL is not set the if statement condition is true and it's trying to get application URL by
Code: Select all
InetAddress.getLocalHost().getCanonicalHostName();
and here we have an UnknownHostException exception.

Re: Error after logging in for the first time: Taxonomy error

PostPosted:Sat Apr 18, 2015 11:35 am
by jllort
In this case, could be a server miss configuration that cause application will not be able to get local host address ?