• Setup OKM 6.2 community on Ubuntu 12.04 - my notes

  • 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.
 #18673  by macjaeger
 
Congratulations to releasing OKM 6.2, and thank you very much!

I'd like to get my fingers dirty on the community-edition of 6.2, but I run into a lot of problems in all my installation attempts. Most of the (publicly) available documentation is somewhat outdated, eg. referring to jboss while 6.x uses tomcat, or referring to sun/oracle jre-6 in ubuntu, although sun/oracle jre was dropped from ubuntu repositories a good while ago. The same goes for Open/LibreOffice, etc.

It would really help to know which versions of linux (preferably ubuntu), java, open/libre-office etc. YOU consider a good ground for installing OKM 6.2. Right now I'm never sure if I misconfigured OKM, or just don't have the right versions of some 3rd-party-software installed. Could anyone provide a description of a "known to work" software assembly? Thanks!
Last edited by macjaeger on Fri Oct 12, 2012 3:14 pm, edited 2 times in total.
 #18674  by jllort
 
installer comes with java embeded, have you got any problem on it ?
 #18681  by macjaeger
 
Thank you for the quick reply!

Starting tomcat and OpenKM is ok, but while i'm exploring the software i run into problems which may or may not be caused by missing or wrong version of java.

For example: I tried document preview with .odt and .pdf files, but i get "Error in application/vnd.oasis.opendocument.text to PDF conversion", obviously there's something wrong with either my openoffice-installation or -configuration. But I can't say if a) openoffice is installed wrong, b) it's the wrong version of openoffice, c) openoffice is missing some other dependencies, d) it's misconfigured, or...

The same goes for imagemagick, swftools, ... There are just too many things that might be wrong, which leaves me poking around in a trial-and-error scheme. That's why I'd love to have a list of basic requirements that would help narrow the scope of poking around.
 #18685  by macjaeger
 
Ok, after some more trial & error (and especially emptying caches where ever i found them: browser, java, tomcat...) i got my openkm server up and running on Ubuntu 12.04. Document conversion seems to work (can convert .odt to .pdf via toolbar / menu) using LibreOffice (Ubuntu default), as well as pdf2swf. But preview is only possible with zviewer, flexpaper gets stuck spinning it's wheel in the upper right corner. And I still can't use scanner.jar and uploader.jar because of java security exception "attempted to open sandboxed jar http://192.168.0.66:8080/OpenKM/uploader.jar as Trusted-Only". Any ideas?
 #18695  by macjaeger
 
So I tried a little harder, and now I can use uploader.jar and scanner.jar, but I had to sign both applets using jarsigner and keytool.

Still flexpaper doesn't work, zviewer does though. So again: any ideas?
 #18696  by macjaeger
 
Continuing my findings...

Scanner applet does its job, but I have a problem with previewing tif-images. All other formats work as expected, but after scanning to tif-file there is an error-window "Conversion: The document is not open" and a ballontip "Document url not provided or invalid". The scanned image file is ok, i can download it and it looks like it should, but there seems to be a problem with tif-to-swf conversion: "Conversion: Error: May not be a PDF file (continuing anyway)".
 #18709  by macjaeger
 
Yes, imagemagick is installed (version 6.6.9-7), system.imagemagick.convert is set to /usr/bin/convert, and i tested the conversion from tif to jpg in the shell successfully. The problem is limited to .tif files, all other image-formats are can be previewed without problems (using zviewer).

Preview of .odt, .pdf and all image formats (except tif) works when zviewer is selected. When i switch to flexpaper an restart tomcat, preview doesn't work for any files at all; flexpaper loads ("initializing"), i can even open the version info by clicking on "flexpaper"-logo, but it seems like it is stuck after fully receiving the document (the little circle icon in the upper right corner is constantly spinning around the number 100).
 #18733  by macjaeger
 
No. There are no errors in the console, not in the log-files either. The conversion to .swf is successfull, i downloaded the .swf-file to my desktop and could view it in my browser. I checked my flash installation (it's up to date) and tried with firefox and chrome, same results.

So this is not a "known problem" but restricted to my installation? Then I'll try a little more...
 #18750  by macjaeger
 
Thank you for the advice, but i tried that already - didn't help. The conversion works, the .swf-files seem fine (can be viewed in flash-viewer after dowload to desktop). I confirmed from another client PC and tried firefox, chrome and internet explorer, but the result is always the same, concluding that the problem has to come from my OKM installation...

[Update]
I followed up on the same error in other systems (e.g. drupal) and found the problem (and solution): I was missing the option "-T 9" (setting flash version in header) in swf2pdf commandline, which didn't cause any problems with zviewer, but obviously crashed flexpaper... After fixing this, flexpaper works like a charm!

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.