Hello guys, great work for OpenKM ! I just learned about it few days ago and have started to test it ( or plan to use it throughout our company )
What is more great news, despite requiring the recommended 4GB Ram, I can install it on mini-server pi3 and so far it's servicing request well. A huge update to Intel-running server would be great but that's another issue
Yes, there were some bumps since swftools is not part of Debian package, and hence not making it way to raspbian's repo. This issue was simply solved by building one your own from source and replace bundled pdf2swf to one your own
My current issue however with failed preview of standard office documents like MSDoc, MSExcel, ods for libre/openoffice users
When trying to preview, $TOMCAT_HOME/logs/catalina.log will come with error as follow
What I have tried
1. Clear browser cache and enable/re-enable Flash in Chrome browser, and restart OpenKM server => preview for pdf/images work but for docs/excel still same error
2. Configuration check :
3. I have installed Libreoffice on raspberry and confirm that I can convert .ods to .pdf from command line like and I can open .pdf file and it's
converted nicely
Architecture used
Cheers,
Arief
What is more great news, despite requiring the recommended 4GB Ram, I can install it on mini-server pi3 and so far it's servicing request well. A huge update to Intel-running server would be great but that's another issue
Yes, there were some bumps since swftools is not part of Debian package, and hence not making it way to raspbian's repo. This issue was simply solved by building one your own from source and replace bundled pdf2swf to one your own
My current issue however with failed preview of standard office documents like MSDoc, MSExcel, ods for libre/openoffice users
When trying to preview, $TOMCAT_HOME/logs/catalina.log will come with error as follow
Code: Select all
2018-08-08 09:03:21,690 [http-bio-0.0.0.0-8080-exec-12] ERROR com.openkm.servlet.frontend.DocumentServlet- Error in application/vnd.openxmlformats-officedocument.wordprocessingml.document to PDF conversion
com.openkm.core.ConversionException: Error in application/vnd.openxmlformats-officedocument.wordprocessingml.document to PDF conversion
at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:330)
at com.openkm.servlet.frontend.DocumentServlet.convertToPdf(DocumentServlet.java:941)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
What I have tried
1. Clear browser cache and enable/re-enable Flash in Chrome browser, and restart OpenKM server => preview for pdf/images work but for docs/excel still same error
2. Configuration check :
Code: Select all
Yes, I have not enabled nor installed ocr but doesn't seem to be of important issue at the moment system.swftools.pdf2swf
OK - /opt/openkm/bin/pdf2swf
system.imagemagick.convert
OK - /usr/bin/convert
system.ocr
Not configured
system.openoffice.path
OK - /usr/lib/libreoffice/program/soffice.bin
3. I have installed Libreoffice on raspberry and confirm that I can convert .ods to .pdf from command line like and I can open .pdf file and it's
converted nicely
Code: Select all
I haven't tried other browser, but at this point I don't think the problem is client/browser related~/tomcat/logs $ /usr/lib/libreoffice/program/soffice.bin --headless --convert-to pdf ../file.ods
convert ~/file.ods -> ~/file.pdf using filter : calc_pdf_Export
~/tomcat/logs $ which soffice
/usr/bin/soffice
~/tomcat/logs $ ls /usr/lib/libreoffice/program/soffice.bin
/usr/lib/libreoffice/program/soffice.bin
Architecture used
Code: Select all
using OpenKM 6.3 community edition, downloaded from SourceForge
raspberry pi 3 running stretch
user@localhost:~ $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
Cheers,
Arief