Page 1 of 1

how can I update 5.1.3 to 5.1.4

PostPosted:Wed May 25, 2011 8:23 am
by juliaugong
thanks!

Re: how can I update 5.1.3 to 5.1.4

PostPosted:Thu May 26, 2011 7:25 am
by joako
It's in the wiki, but there's no place to download it from.

I try to upgrade from 5.1.3 to 5.1.5 but even though 5.1.5 was released an hour after 5.1.4 it seems like you need to upgrade 5.1.3 -> 5.1.4 - > 5.1.5.

5.1.3 -> 5.1.4 gives many errors and won't run.

Re: how can I update 5.1.3 to 5.1.4

PostPosted:Thu May 26, 2011 9:41 am
by joako
Ok, this process works 5.1.3. -> 5.1.5. Replace OpenKM.war didn't work with 5.1.5 or 5.1.4

1) Stop OpenKM
Code: Select all
# /etc/init.d/okmInstance stop
2) Backup entire OpenKM dir (/opt/openkm here) just in case:
Code: Select all
# tar -czf /root/okm-backup-`date +%s`.tgz /opt/openkm/
3) Keep repository/ OpenKM.cfg, server/default/data
Code: Select all
# mv /opt/openkm/OpenKM.cfg /opt/openkm/repository/ /opt/openkm/server/default/data /opt/
4) Replace OpenKM Directory with new one
Code: Select all
# rm -rf /opt/openkm
# unzip OpenKM-5.1.5_JBoss-4.2.3.GA.zip
# mv jboss-4.2.3.GA/ /opt/openkm
5) Replace the data files
Code: Select all
# rm -rf /opt/openkm/OpenKM.cfg /opt/openkm/server/default/data/
# mv /opt/OpenKM.cfg /opt/repository/ /opt/openkm/
# mv /opt/data/ /opt/openkm/server/default/
6) Change hibernate.hbm2ddl=none in OpenKM.cfg to hibernate.hbm2ddl=update

7) Start OpenKM Service
Code: Select all
# /etc/init.d/omkInstance start
8) Login to your OpenKM and logout (not sure if this is needed, I believe I read hibernate.hbm2ddl=create affects every login, so I assume the same for update)

9) Change hibernate.hbm2ddl=update in OpenKM.cfg to hibernate.hbm2ddl=none

10) Restart OpenKM Service
Code: Select all
# /etc/init.d/omkInstance stop && # /etc/init.d/omkInstance start

Re: how can I update 5.1.3 to 5.1.4

PostPosted:Thu May 26, 2011 10:47 am
by pavila
If you see an Hibernate exception when upgrading from 5.1.3 to 5.1.4, remove the hibernate-annotations.jar file located at $JBOSS_HOME/server/default/lib.

Re: how can I update 5.1.3 to 5.1.4

PostPosted:Fri May 27, 2011 8:14 pm
by joako
pavila wrote:If you see an Hibernate exception when upgrading from 5.1.3 to 5.1.4, remove the hibernate-annotations.jar file located at $JBOSS_HOME/server/default/lib.
Yes, I believe that's what I saw. That's vital information that should be in the Migration Guide: http://wiki.openkm.com/index.php/Migration_Guide

Can you please update it? I don't see a way I can update it myself.

Re: how can I update 5.1.3 to 5.1.4

PostPosted:Mon May 30, 2011 4:16 pm
by pavila