• Migrating 6.2.2 to 6.2.4 Question

  • 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.
 #23600  by AthenaAutomation
 
Hello,

I am currently using OpenKM Community 6.2.2 on a Windows Server 2008 R2 with PostgreSQL database. I am looking to migrate to 6.2.4. I chose to skip 6.2.3 because of the user/role permission problems. Can I migrate straight to 6.2.4 from 6.2.2 ? What has to be done to the database?

The migration notes for 6.2.2 to 6.2.3 shows:
Run from your preferred SQL client these queries:
HSQL
ALTER TABLE OKM_NODE_MAIL ALTER COLUMN NML_CONTENT clob;
MySQL
ALTER TABLE OKM_NODE_MAIL MODIFY NML_CONTENT longtext;

The migration notes for 6.2.3 to 6.2.4 shows:
Run from your preferred SQL client these queries:
DROP TABLE OKM_OMR;
Start Tomcat again
Go to Administration > Database Query, and remove obsolete configuration properties:
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.model.file';
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.stopwords.file';
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.automatic.keyword.extraction.number';
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.automatic.keyword.extraction.restriction';

Links:
6.2.2 to 6.2.3 Migration Notes = http://wiki.openkm.com/index.php/Migrat ... 2_to_6.2.3
6.2.3 to 6.2.4 Migration Notes = http://wiki.openkm.com/index.php/Migrat ... 3_to_6.2.4

Thank you,

Alex
 #23628  by jllort
 
To migrate directly from 6.2.2 to 6.2.4 :
- stop application
- make sql changes which comes in migration guide related to 6.2.3 ( without change war file and do not start application )
- continue with suggested changes in 6.2.4

Anyway get a backup to prevent some possible mistake in sequence.
 #23631  by AthenaAutomation
 
Thanks for the response, but I can't seem to get it updating.

I followed the Migrating Guide for 6.2.2 to 6.2.3 without touching the .war file:

1. Stopped Tomcat
2. Copied OpenKM root folder for backup
3. Created backup of okm_app PostgreSQL Database
4. Edited OpenKM.cfg and set hibernate.hbm2ddl to update
5. The following SQL queries don't seem to apply to PostgreSQL
HSQL
ALTER TABLE OKM_NODE_MAIL ALTER COLUMN NML_CONTENT clob;

MySQL
ALTER TABLE OKM_NODE_MAIL MODIFY NML_CONTENT longtext;


Followed Migrating Guide for 6.2.3 to 6.2.4:
1. While Tomcat is still stopped, renamed old OpenKM.war file and copied 6.2.4 community OpenKM.war to same folder
2. Ran the following SQL query, but PostgreSQL said it doesn't exist:
DROP TABLE OKM_OMR;
3. Started Tomcat
4. Ran the following DB queries successfully:
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.model.file';
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.stopwords.file';
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.automatic.keyword.extraction.number';
DELETE FROM OKM_CONFIG WHERE CFG_KEY='kea.automatic.keyword.extraction.restriction';



But Help -> About OpenKM still displays Version 6.2.2 instead of 6.2.4 ?

Am I missing something?
 #23639  by okmuser
 
you may have to delete the localhost and OpenKM folders as specified in wiki.

and also clear the cache in the browser

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.