• Opehibernate.hbm2ddl alway ="create" (Install PostgreSQL km)

  • 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.
 #26043  by shrek258
 
Why when i install "PostgreSQL - OpenKM 6.2.4" , ( option is: hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.hbm2ddl = create ) at start finish openkm database is established, OpenKM.cfg where the parameter is still create, even if I put it modified to none, restart the tomcat, openkm will still go to rebuild the database.
 #26047  by jllort
 
What you explain is very strange, normally if parameter is not automatically changed to none is caused because has been some error.
Code: Select all
grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log
Are you sure if you change to none the database is created again ? Anyway I suggest you change to 6.2.5 which has already released last week.
 #26051  by shrek258
 
thank you! But here no hmb2ddl error in logs, only one error message: "ERROR com.openkm.util.Update - UnknownHost Exception: update.openkm.com".

I am installed openkm at intranet, not internet. so host exception is normal. There are ways can go to skip this operation "com.openkm.util.Update - update.openkm.com "?
jllort wrote:What you explain is very strange, normally if parameter is not automatically changed to none is caused because has been some error.
Code: Select all
grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log
Are you sure if you change to none the database is created again ? Anyway I suggest you change to 6.2.5 which has already released last week.
 #26063  by jllort
 
This error is not relevant. OpenKM daily connect to update.openkm.com looking for news ( appears at bottom right -> version changes )

Is strange hbm2dll will not be replaces automatically to none. If tables are created and does not appears any error I suggest change manually to none.
 #26069  by shrek258
 
I will still be manually changed to none recreate the database and clean repository. catelina.log show "RELOAD hibernate.hbm2ddl = create". Even though I installed the latest version 6.2.5, replaced mysql database the same way and only install using the default embedded database "HSQLDB" after installation hibernate.hbm2ddl will automatically become none. update.openkm.com to the exception, I have the parameters can be set Openkm.cfg update = off to turn off the error, but hbm2ddl = create the problem persists, manually modify none remains useless.
jllort wrote:This error is not relevant. OpenKM daily connect to update.openkm.com looking for news ( appears at bottom right -> version changes )

Is strange hbm2dll will not be replaces automatically to none. If tables are created and does not appears any error I suggest change manually to none.
 #26074  by jllort
 
which PostgreSQL version are you using ?
are you sure after executing grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log you get empty results ? what you explain is strange, the only reason could be while creating DB table structure happens some error and then break the process but should be in log something about it
 #26076  by shrek258
 
Both PostgreSQL 8.3 and 9.4 are two versions of this, but the problem is the same as the mysql 5.x , no ERROR in catalina.log
jllort wrote:which PostgreSQL version are you using ?
are you sure after executing grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log you get empty results ? what you explain is strange, the only reason could be while creating DB table structure happens some error and then break the process but should be in log something about it

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.