Difference between revisions of "Knowledge:Migration from 6.2.23 to 6.2.24"

From OpenKM Documentation
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 19: Line 19:
 
<source lang="bash">
 
<source lang="bash">
 
$ grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log
 
$ grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log
</source>
 
 
* Go to Administration > Database Query, and update configuration properties:
 
 
'''Solve ampersand problem converting & to &amp; ( internal datastore change );'''
 
<source lang="sql">
 
SELECT concat('OKMDocument.getInstance().rename(null, "', NBS_UUID, '","',  NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_DOCUMENT) AND NBS_NAME LIKE '%&%';
 
SELECT concat('OKMFolder.getInstance().rename(null, "', NBS_UUID, '","',  NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_FOLDER) AND NBS_NAME LIKE '%&%';
 
SELECT concat('OKMDocument.getInstance().rename(null, "', NBS_UUID, '","',  NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_DOCUMENT) AND NBS_NAME LIKE '%>%';
 
SELECT concat('OKMFolder.getInstance().rename(null, "', NBS_UUID, '","',  NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_FOLDER) AND NBS_NAME LIKE '%>%';
 
SELECT concat('OKMDocument.getInstance().rename(null, "', NBS_UUID, '","',  NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_DOCUMENT) AND NBS_NAME LIKE '%<%';
 
SELECT concat('OKMFolder.getInstance().rename(null, "', NBS_UUID, '","',  NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_FOLDER) AND NBS_NAME LIKE '%<%';
 
</source>
 
 
Execute the result script
 
<source lang="java">
 
import com.openkm.api.OKMDocument;
 
import com.openkm.api.OKMFolder;
 
// Add here
 
 
</source>
 
</source>
  

Latest revision as of 09:19, 20 January 2014

  • Make a backup!!!
  • Stop Tomcat
  • Edit OpenKM.cfg and set hibernate.hbm2ddl to update
  • Replace the OpenKM.war
  • Review file descriptor limit and, eventually, increase it.
  • Start Tomcat again
  • Check for database errors:
$ grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log
  • Enjoy OpenKM 6.2.24!

If you have any weird problem try to stop Tomcat, delete these folders:

  • $TOMCAT_HOME/webapps/OpenKM
  • $TOMCAT_HOME/work/Catalina/localhost

And start Tomcat again.


Nota clasica.png Recommended to clear browser cache and Java Plugin cache