Page 1 of 1
Preview Unavailable
PostPosted:Mon Jan 02, 2012 10:07 am
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 allhibernate.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 all03: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 allroot@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
Re: Preview Unavailable
PostPosted:Tue Jan 03, 2012 12:15 pm
by jllort
After first openkm startup up, OpenKM.cfg values ( except hibernate ) has no use, are only to setting at first time. From version 5.1 must be set at administration take a look at
http://wiki.openkm.com/index.php/Configuration_view
Re: Preview Unavailable
PostPosted:Tue Jan 03, 2012 3:15 pm
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
Re: Preview Unavailable
PostPosted:Wed Jan 04, 2012 9:08 pm
by jllort
Exact, tell us if it solves the problem.
Re: Preview Unavailable
PostPosted:Thu Jan 05, 2012 7:30 am
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
Re: Preview Unavailable
PostPosted:Thu Jan 05, 2012 2:26 pm
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 allERROR [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
Re: Preview Unavailable
PostPosted:Sun Jan 08, 2012 11:23 am
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 )
Re: Preview Unavailable
PostPosted:Mon Jan 09, 2012 12:25 pm
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
Re: Preview Unavailable
PostPosted:Tue Jan 10, 2012 5:18 am
by okmuser
Hi Abin,
Can you please share with us how exactly you solved the issue, as it may help us.
Thanks with regards,
Re: Preview Unavailable
PostPosted:Tue Jan 10, 2012 7:08 am
by abin
Hello,
I used the following command as root user;
Code: Select allsoffice -accept=socket,host=127.0.0.1,port=2003,tcpNoDelay=1--headless --nodefault --nofirststartwizard --nolockcheck --nologo --norestore
thanks
Abin
Re: Preview Unavailable
PostPosted:Tue Jan 10, 2012 9:08 pm
by pavila
Start OpenOffice / LibreOffice manually as service is not necessary if you system.openoffice.path configuration property points to the installation path.
Re: Preview Unavailable
PostPosted:Tue Jan 10, 2012 11:28 pm
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.
Re: Preview Unavailable
PostPosted:Wed Jan 11, 2012 12:30 pm
by pavila
Thanks for sharing this!