How to determine version

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
Post Reply
MKochS
Senior Boarder
Senior Boarder
Posts: 59
Joined: Wed Nov 13, 2013 10:40 am
Location: Hessen, Germany

How to determine version

Post by MKochS » Thu Apr 06, 2017 10:46 am

I realize this one sounds pretty stupid, but still.

I am quite positive that some time ago I upgraded my installation from 6.3.0 to 6.3.1. The administration tab, however, displays this:

Code: Select all

OpenKM - Knowledge Management
Version: 6.3.0 (build: 8156)
 
© 2006-2014 OpenKM
Is there another way to make sure which version I'm actually running? AFAIK upgrading basically means just replacing the OpenKM.war.

TIA
Matthias

jllort
Moderator
Moderator
Posts: 10707
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to determine version

Post by jllort » Fri Apr 07, 2017 6:18 pm

Try with ( sometimes seems tomcat is not cleaning and deploying war file correctly, these steps will prevent it ):
  • Stop OpenKM
  • replace war file
  • delete folders webapp/OpenKM and work/Catalina/localhost
  • start OpenKM

MKochS
Senior Boarder
Senior Boarder
Posts: 59
Joined: Wed Nov 13, 2013 10:40 am
Location: Hessen, Germany

Re: How to determine version

Post by MKochS » Fri Jun 14, 2019 8:00 am

Removing work/Catalina/localhost makes OpenKM unstartable, although both webapps/OpenKM and work/Catalina/localhost are being created on start.
Rolled both directories back from backup. Anyway.

I'm getting this on every start:

Code: Select all

2019-06-14 09:43:50,480 [localhost-startStop-1] INFO  com.openkm.util.WarUtils- Implementation-Version: 6.3.0
2019-06-14 09:43:50,480 [localhost-startStop-1] INFO  com.openkm.util.WarUtils- Implementation-Build: 8156
2019-06-14 09:43:50,483 [localhost-startStop-1] INFO  com.openkm.servlet.RepositoryStartupServlet- *** Application version: 6.3.0 (build: 8156) ***
which is supposed to be not true, because the OpenKM.war file is Version 6.3.8.

Code: Select all

# ls -l webapps/OpenKM.war
-rw-r--r--  1 root     root     163157516 Jun  9 20:20 OpenKM.war

jllort
Moderator
Moderator
Posts: 10707
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to determine version

Post by jllort » Sun Jun 16, 2019 8:44 am

You are doing something wrong, because when you remove work/Catalina/localhost -> you are removing the tomcat cache and these files should be created in the next start up. If are not created it is by another reason, usually because you are not using jdk 1.8 and you are using 1.7 ( it is a common issue ).

Can you please share:
1- full tomcat path
2- java -version you are using
3- with application stopped, remove all files into the logs, start tomcat and share here the catalina.log file ( should be shown some error there what can guide in the resolution )

MKochS
Senior Boarder
Senior Boarder
Posts: 59
Joined: Wed Nov 13, 2013 10:40 am
Location: Hessen, Germany

Re: How to determine version

Post by MKochS » Sun Jun 16, 2019 4:41 pm

The said folders ARE being replaced when I start up, so it is what I would expect as normal behaviour. The application just doesn't run, and wants the old folders back.

For your questions:

1 - The whole OpenKM installation is located in /opt/openkm-6.3.0-community. There's a symlink /opt/openkm that points there.
2 - openjdk-8-jdk, 8u212-b03-2-de, as shipped with the current Devuan Ascii distro

Code: Select all

# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-2~deb9u1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
3 - The log is available but I cannot upload it here. The BB system throws an "illegal extension" error.

This is where I end up:
Auswahl_008.png

jllort
Moderator
Moderator
Posts: 10707
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to determine version

Post by jllort » Wed Jun 19, 2019 1:52 pm

* stop openkm
* remove all logs
* start openkm
share here the openkm.log file

MKochS
Senior Boarder
Senior Boarder
Posts: 59
Joined: Wed Nov 13, 2013 10:40 am
Location: Hessen, Germany

Re: How to determine version

Post by MKochS » Thu Jun 20, 2019 9:46 am

I've pasted the log here:

https://pastebin.com/K2R908VA

jllort
Moderator
Moderator
Posts: 10707
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: How to determine version

Post by jllort » Sat Jun 29, 2019 10:00 am

You should change your current tomcat what seems older /opt/openkm-6.3.0-community/tomcat by newer.
Take a look here:
https://docs.openkm.com/kcenter/view/ok ... pdate.html

1- Before make a backup
2- The files to check are OpenKM.cfg, OpenKM.xml and conf/server.xml
3- The repository folder should be moved into the new tomcat folder

Post Reply