• OfficeManager is currently stopped

  • 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.
 #43484  by baclarkservices
 
OpenKM Version 6.3.2 (build: 8289)
Running on Ubuntu 16.04.2 LTS server Virtualized by Microsoft Hyper-V

I am not able to preview any office products, but I am able to preview pdf files. When I look at the catalina.log this is what I see:

At startup time:
Code: Select all
2017-03-24 08:19:26,091 [localhost-startStop-1] INFO  com.openkm.util.DocConverter- *** Build Office Manager ***
2017-03-24 08:19:26,091 [localhost-startStop-1] INFO  com.openkm.util.DocConverter- system.openoffice.path=/usr/lib/libreoffice
2017-03-24 08:19:26,092 [localhost-startStop-1] INFO  com.openkm.util.DocConverter- system.openoffice.tasks=200
2017-03-24 08:19:26,092 [localhost-startStop-1] INFO  com.openkm.util.DocConverter- system.openoffice.port=2002
2017-03-24 08:19:26,145 [localhost-startStop-1] INFO  org.artofsolving.jodconverter.office.ProcessPoolOfficeManager- ProcessManager implementation is SigarProcessManager
2017-03-24 08:19:26,176 [OfficeProcessThread-0] INFO  org.artofsolving.jodconverter.office.OfficeProcess- starting process with acceptString 'socket,host=127.0.0.1,port=2002,tcpNoDelay
=1' and profileDir '/openkm/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-2002'
2017-03-24 08:19:26,186 [OfficeProcessThread-0] INFO  org.artofsolving.jodconverter.office.OfficeProcess- started process; pid = 1710
2017-03-24 08:19:28,976 [OfficeProcessThread-0] WARN  org.artofsolving.jodconverter.office.ManagedOfficeProcess- office process died with exit code 81; restarting it
2017-03-24 08:19:28,981 [localhost-startStop-1] WARN  com.openkm.servlet.RepositoryStartupServlet- failed to start and connect
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:64)
        at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)
        at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62)
        at com.openkm.util.DocConverter.start(DocConverter.java:190)
        at com.openkm.servlet.RepositoryStartupServlet.start(RepositoryStartupServlet.java:279)
        at com.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:127)
        at javax.servlet.GenericServlet.init(GenericServlet.java:158)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:188)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62)
        ... 22 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:142)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:58)
        ... 5 more
Caused by: java.lang.IllegalStateException: a process with acceptString 'socket,host=127.0.0.1,port=2002' is already running; pid 1712
        at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:67)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:133)
        at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:40)
        at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:30)
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:120)
        ... 7 more
And When I try to preview or download a file an office document as pdf:
Code: Select all
2017-03-24 08:20:10,638 [http-bio-0.0.0.0-8080-exec-1] ERROR com.openkm.servlet.frontend.ConverterServlet- Error in application/vnd.openxmlformats-officedocument.wordprocessingml.docum
ent 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.ConverterServlet.toPDF(ConverterServlet.java:253)
        at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:141)
        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)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: this OfficeManager is currently stopped
        at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:70)
        at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
        at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:69)
        at com.openkm.util.DocConverter.convert(DocConverter.java:273)
        at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:327)
        ... 45 more
Please let me know any other information to gather or anything to try. Thanks.
 #43494  by jllort
 
Looking at the first log you have shared with us, seems the soffice service is not being able to be started by OpenKM.

Really exists /usr/lib/libreoffice and into there's the folder /program with file into named soffice ?
In what Linux distribution do you have OpenKM running ?
 #43502  by baclarkservices
 
I found that if I started libreoffice manually using this script it worked fine:
Code: Select all
/usr/lib/libreoffice/program/soffice.bin --nologo --headless --nofirststartwizard --accept="socket,host=localhost,port=8100;urp;StarOffice.Service"
For some reason OpenKM was starting soffice in port 2002. That is the only thing I can see is different. To fix the problem I added this to the startup.sh file:
Code: Select all
exec /usr/lib/libreoffice/program/soffice.bin --nologo --headless --nofirststartwizard --accept="socket,host=localhost,port=8100;urp;StarOffice.Service" &
Now all is working properly.
 #43512  by jllort
 
This is not the right way to get it running although it goes. You have not asked my question. Which is your linux distribution ?
 #44176  by alexkcy
 
Hi,

I encounter the same problem, no office preview , after upgrading from 6.3.2 -> 6.3.4.

I have the exact same log.

My linux distribution is Debian Jessie with latest apt-get update and upgrade.

Thanks in advance.

Regards
Alex
 #44180  by alexkcy
 
Hi,

I am fine now, to certain extent. I found out that some libraries during the latest Debian update has broken the startup of libreoffice (but not sure which...). I have rolled back to pre-updated image and now works fine.

However, I have another problem, browser problem.

Preview now works just fine at Chrome (OSX, Linux) and IE (Windows 7) but not Chrome in Windows 7. Needless to say, I have reset the plugin data and cache of Chrome, but the preview just doesn't load, the icon on the upper left hand corner becomes a red alert triangle.

Any clue ?

Thanks.

Alex
 #44192  by jllort
 
Important libraries for starting libreoffice as service are specially headless and also ure and pyuno. But sure withuot headless you will not starting as service from OpenKM. About browser problems, the community version based in flowpaper community ( older flexpaper ) needs to flash player support from browser, might be this is another problem you have ?

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.