• openoffice.org3 Centos6

  • 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.
 #13417  by michael.schefczyk
 
Hello,

My aim is to install OpenKM 5.1.8 on a Centos 6.2 64bit virtual machine. I am currently using the community version of Knowledgetree on a Windows 2008 server, but I sense that there may be no further updates which would limit that system's use in the future (e.g., indexing files in up to date pdf-versions). Hence, I would like to switch. I do get OpenKM to run, however, indexing and searching will not work and preview does not work on office documents.

Starting JBoss, I persistently get (followed by a lot of additional output):
Code: Select all
WARN  [RepositoryStartupServlet] invalid officeHome: it doesn't contain soffice.bin: /usr/lib64/openoffice.org3/program
java.lang.IllegalStateException: invalid officeHome: it doesn't contain soffice.bin: /usr/lib64/openoffice.org3/program
OpenOffice 3.2.1 is installed, since I set up the Centos system as a desktop machine. When I "cd" to the directory above (i.e. /usr/lib64/openoffice.org3/program), a file named soffice.bin is definitively there. Hence, I do not understand the warning.

The post "OpenKM can not find soffice.bin" on this forum deviates to another cause which does not resolve my issue. There, jllort wrote on December 16, 2011 that installing openoffice on Centos would not be trivial - which is most probably true. Obviously, my knowledge about OpenOffice (and many linux issues) is quite limited. At least, I did not manage to reinstall OpenOffice using the commands stated by jllort. The rpms downloaded have different names (org3 and 3.2.1 instead of just org and 3.1.1) and a "headless" file is not in sight. Doing the rpm -ivh leads to depenencies which cannot be resolved in a trivial manner (e.g., via yum install despite including RPMForge and EPEL).

Any help would be very welcome!

Michael
 #13418  by Bart
 
try /usr/lib64/openoffice.org3 and restart jboss

Don't forget to set hibernate.hbm2ddl to none (OpenKM.cgf)
 #13426  by michael.schefczyk
 
Thank you very much, Bart!

Preview now works with all file formats. I did learn that the openoffice path may not point to the directory containing soffice.bin itsel, but rather to the folder one level above.

What does not work is searching and thus probably indexing. I seem to be in the same category as multiple other recent posters who are unable to search. Any help on that issue would still be very welcome.

Michael Schefczyk
 #13435  by jllort
 
To ensure openoffice if correctly configured with openkm, simply try convert .doc or .odt to pdf ( at toolbar there's option to downloading document as pdf ). If it goes right openffice is correctly configured with openkm.
 #13442  by michael.schefczyk
 
Thank you very much. The configuration of openoffice appears to be correct as the download as pdf-function does work. I will just keep reading the "search doesn't work" thread in order to find out what the other issue is.
 #13467  by jllort
 
is soffice program running ?
you should not have any other openoffice instance opened on the server, could cause problems ! soffice service started by openkm should be the only one active.
 #13523  by michael.schefczyk
 
In the meantime, I got openoffice to work correctly. The only major thing still not working is searching for text in pdf files. Previewing works with all major file types. Tesseract also works well from the command line interface on tif-files. However, when uploading a pdf-file, the terminal lists the following error
Code: Select all
18:19:59,453 WARN  [PdfTextExtractor] PDF does not contains text layer
18:19:59,455 WARN  [RegisteredExtractors] There was a problem extracting text from '/okm:root/testpdf.pdf'
The file in question does yield full OCR/search results on the demo machine.

Can someone please point me to what to look for? Thanks a lot Michael
 #13535  by pavila
 
Please, don't mix issues in the same forum thread. Open a new one for this problem.

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.