• Missing Tables

  • 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.
 #29025  by emily.beckett
 
Hi,

I have installed open KM with a MySQL database, however I seem to have a couple of tables missing.

I have followed the KB article, http://wiki.openkm.com/index.php/MySQL_-_OpenKM_6.2 and set my OpenKM.cfg to:

hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=create

The majoriy of the tables look to have been created (see attached view from MySQL Workbench)

However when I log in I get the attached error.

In my Catalina log file I get the below messages:
Code: Select all
2014-06-23 14:19:39,039 [http-apr-0.0.0.0-8080-exec-1] WARN  org.hibernate.util.JDBCExceptionReporter- SQL Error: 1146, SQLState: 42S02
2014-06-23 14:19:39,040 [http-apr-0.0.0.0-8080-exec-1] ERROR org.hibernate.util.JDBCExceptionReporter- Table 'okmdb.okm_activity' doesn't exist
2014-06-23 14:19:39,040 [http-apr-0.0.0.0-8080-exec-1] ERROR com.openkm.util.UserActivity- could not insert: [com.openkm.dao.bean.Activity]
2014-06-23 14:19:40,252 [http-apr-0.0.0.0-8080-exec-10] WARN  org.hibernate.util.JDBCExceptionReporter- SQL Error: 1064, SQLState: 42000
2014-06-23 14:19:40,252 [http-apr-0.0.0.0-8080-exec-10] ERROR org.hibernate.util.JDBCExceptionReporter- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 nodebase0_.NBS_UUID as col_0_0_ from OKM_NODE_BASE nodebase0_ where nodebase0_' at line 1
2014-06-23 14:19:40,342 [http-apr-0.0.0.0-8080-exec-10] WARN  org.hibernate.util.JDBCExceptionReporter- SQL Error: 1146, SQLState: 42S02
2014-06-23 14:19:40,342 [http-apr-0.0.0.0-8080-exec-10] ERROR org.hibernate.util.JDBCExceptionReporter- Table 'okmdb.okm_activity' doesn't exist
2014-06-23 14:19:40,342 [http-apr-0.0.0.0-8080-exec-10] ERROR com.openkm.util.UserActivity- could not insert: [com.openkm.dao.bean.Activity]
Attachments
Tables
Tables
Tables.PNG (83.43 KiB) Viewed 44403 times
Error Message
Error Message
Error.PNG (5.94 KiB) Viewed 44403 times
 #29035  by emily.beckett
 
I am also getting this error in the Catalina log, what version of MySQL is supported in Open KM 6.3? I have MySQL 5.6

2014-06-24 08:57:57,719 [pool-2-thread-1] INFO com.openkm.servlet.RepositoryStartupServlet- *** Initialize language detection engine... ***
2014-06-24 08:57:58,115 [pool-2-thread-1] WARN org.hibernate.util.JDBCExceptionReporter- SQL Error: 1146, SQLState: 42S02
2014-06-24 08:57:58,115 [pool-2-thread-1] ERROR org.hibernate.util.JDBCExceptionReporter- Table 'okmdb.okm_config' doesn't exist
2014-06-24 08:57:58,116 [pool-2-thread-1] ERROR com.openkm.core.Config- ** Error reading configuration table **
2014-06-24 08:57:58,117 [pool-2-thread-1] INFO com.openkm.servlet.RepositoryStartupServlet- *** Repository initializing... ***
2014-06-24 08:57:58,135 [pool-2-thread-1] WARN org.hibernate.util.JDBCExceptionReporter- SQL Error: 1064, SQLState: 42000
2014-06-24 08:57:58,135 [pool-2-thread-1] ERROR org.hibernate.util.JDBCExceptionReporter- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 nodebase0_.NBS_UUID as col_0_0_ from OKM_NODE_BASE nodebase0_ where nodebase0_' at line 1
2014-06-24 08:57:58,135 [pool-2-thread-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/OpenKM]- Servlet /OpenKM threw load() exception
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 nodebase0_.NBS_UUID as col_0_0_ from OKM_NODE_BASE nodebase0_ where nodebase0_' at line 1
 #29064  by pavila
 
Have you modified the file $TOMCAT_HOME/conf/server.xml ?

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.