• Preview Unavailable

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #13365  by abin
 
Dear Sir,

I have installed OpenKM 5.1.8 on Debain Sequeeze on a Cloud server.

My OpenKM.cfg looks as under;
Code: Select all
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none
application.url=http://localhost:8080/OpenKM/frontend/index.jsp
max.file.size=50
repository.config=repository.xml
max.search.results=25
system.ocr=/usr/local/bin/tesseract
default.lang=es-ES
system.pdf2swf=/usr/bin/pdf2swf
system.ghostscript.ps2pdf=/usr/bin/ps2pdf
system.convert=/usr/bin/convert
system.openoffice=on
system.openoffice.path=/usr/lib/openoffice
system.openoffice.tasks=5
system.openoffice.port=2222
While my terminal open, moment I log on as to OpenKm

application.url=http://localhost:8080/OpenKM/frontend/index.jsp

I can see an Error in the terminal
Code: Select all
03:47:55,376 WARN  [DocConverter] system.openoffice.path not configured
03:47:55,377 WARN  [DocConverter] and also system.openoffice.server not configured
whereas I have installed Openoffice as a root user and have started open office as service, output as under
Code: Select all
root@opendms:~# netstat -nap | grep office
tcp        0      0 127.0.0.1:8100          0.0.0.0:*               LISTEN 31360/soffice.bin
unix  2      [ ACC ]     STREAM     LISTENING     75304    31360/soffice.bin   / tmp/OSL_PIPE_0_SingleOfficeIPC_44e0c34da8623980ccf9f8299a62e4fb

I am not able to Preview any kind of file, Please advice

Thanks and regards,

Purs
 #13373  by abin
 
Dear Sir,

Thank you for your reply.

You mean to say that I should make changes for OpenKm.cfg through Administration Panel " configuration" in order to effect changes to happen

Kindly advice

Thanks

Abin
 #13388  by jllort
 
Exact, tell us if it solves the problem.
 #13396  by abin
 
Dear Sir,

Thank you for your reply.

First of all, I must say OpenKM is an Excellent & an Intelligent Software.

I am able to get Preview window but gives an Error now "There was a problem with the conversion generation, please contact your administrator"

I have Microsoft Documents, Pdf, & Jpeg images

Kindly note, after making changes in Openkm.cfg, I have stopped & started Jboss

I tried with both installation of Libreoffice i as well as Openoffice but the same Error.

My Server is Debain Squeeze

Regards,

Abin
 #13402  by abin
 
Dear Sir,

Finally, I have solved the Error "There was a problem with the conversion generation, please contact your administrator" for jpeg & PDF files

The problem was as under;

The path was not correct in my pdf2swf_wrapper.sh which should have been the path where pdf2swf was located
(#!/bin/bash/root/swftools-0.9.1/src/pdf2swf $* -f -t -G -s storeallcharacters)

But still Error showing for MS Word
Code: Select all
ERROR [ConverterServlet] Error in application/msword to PDF conversioncom.openkm.core.ConversionException: Error in application/msword to PDF conversion
        at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:311)
        at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:188)
        at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:225)
        at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce 
Please advice

Abin
 #13422  by jllort
 
OK, if pdf2swf is right, now must take a look at soffice service. Try converting some .doc to pdf ( using toolbar feature, any error ? ).
Is soffice service started when jboss starts ? you must got a soffice process running executed as service by openkm. Take a look at your path openoffice configuration and startp up ( if there's some error on starting soffice service )
 #13439  by abin
 
Dear Sir,

I can have all Previews now, Jpeg, doc, xls, ppt, bmp, tiff working fine

Infact, I have libreoffice on my server

I just started headless service and got the problem solved

Thank you so much for your support

It is really a wonderful product

Thanks and regards,

Abin
 #13460  by okmuser
 
Hi Abin,

Can you please share with us how exactly you solved the issue, as it may help us.

Thanks with regards,
 #13462  by abin
 
Hello,

I used the following command as root user;
Code: Select all
soffice -accept=socket,host=127.0.0.1,port=2003,tcpNoDelay=1--headless --nodefault --nofirststartwizard --nolockcheck --nologo --norestore
thanks

Abin
 #13482  by pavila
 
Start OpenOffice / LibreOffice manually as service is not necessary if you system.openoffice.path configuration property points to the installation path.
 #13483  by okmuser
 
Hi Pavila,

Yes you are correct, but from a recent upgrade on debian wheezy suddenly openkm stopped starting soffice automatically.

But after another upgrade on my system last night (debian related) it is all good now. I think there was some issues with libreoffice on the previous update and now all sorted out (latest version Libreoffice 1:3.4.4-2)

Thanks for the help.

Cheers.

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.