Page 1 of 1

Docker container y soffice problema

Posted: Mon Oct 07, 2019 12:14 pm
by bieli
Hola,

tengo instalado un container de Docker con openkm (6.3.6) que ha funcionado algunas semanas sin problemas.
Pero de repente ya no carga bien el libreoffice y me deja con estos errores en el arranque:

Code: Select all

2019-10-07 08:26:27,307 [localhost-startStop-1] [] INFO  c.o.servlet.RepositoryStartupServlet - *** Start OpenOffice manager ***
2019-10-07 08:26:27,321 [localhost-startStop-1] [] INFO  com.openkm.util.DocConverter - *** Build Office Manager ***
2019-10-07 08:26:27,322 [localhost-startStop-1] [] INFO  com.openkm.util.DocConverter - system.openoffice.path=/usr/lib/libreoffice
2019-10-07 08:26:27,323 [localhost-startStop-1] [] INFO  com.openkm.util.DocConverter - system.openoffice.tasks=200
2019-10-07 08:26:27,323 [localhost-startStop-1] [] INFO  com.openkm.util.DocConverter - system.openoffice.port=2002
2019-10-07 08:26:28,181 [localhost-startStop-1] [] WARN  c.o.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) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:62) ~[jodconverter-core-3.0-beta-4.jar:na]
        at com.openkm.util.DocConverter.start(DocConverter.java:153) ~[classes/:6.3.6]
        at com.openkm.servlet.RepositoryStartupServlet.start(RepositoryStartupServlet.java:270) [classes/:6.3.6]
        at com.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:116) [classes/:6.3.6]
        at javax.servlet.GenericServlet.init(GenericServlet.java:158) [servlet-api.jar:3.1.FR]
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4931) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241) [catalina.jar:8.5.24]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.24]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) [catalina.jar:8.5.24]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.24]
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:986) [catalina.jar:8.5.24]
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857) [catalina.jar:8.5.24]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_201]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_201]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_201]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_201]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201]
Caused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
        at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_201]
        at java.util.concurrent.FutureTask.get(FutureTask.java:192) [na:1.8.0_201]
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62) ~[jodconverter-core-3.0-beta-4.jar:na]
        ... 22 common frames omitted
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:142) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:31) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:58) ~[jodconverter-core-3.0-beta-4.jar:na]
        ... 5 common frames omitted
Caused by: org.artofsolving.jodconverter.office.OfficeException: office process died with exit code 1
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:136) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:40) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:30) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:120) ~[jodconverter-core-3.0-beta-4.jar:na]
        ... 7 common frames omitted
2019-10-07 08:26:28,193 [localhost-startStop-1] [] INFO  c.o.extension.core.ExtensionManager - Initialize and load plugins...
2019-10-07 08:26:28,407 [localhost-startStop-1] [] INFO  c.o.servlet.RepositoryStartupServlet - *** Execute start script ***
2019-10-07 08:26:28,416 [localhost-startStop-1] [] WARN  com.openkm.util.ExecutionUtils - Unable to read script: /opt/openkm/start.bsh
2019-10-07 08:26:28,418 [localhost-startStop-1] [] WARN  com.openkm.util.ExecutionUtils - Unable to read jar: /opt/openkm/start.jar
2019-10-07 08:26:28,418 [localhost-startStop-1] [] INFO  c.o.servlet.RepositoryStartupServlet - *** Execute start SQL ***
2019-10-07 08:26:28,419 [localhost-startStop-1] [] WARN  c.o.servlet.RepositoryStartupServlet - Unable to read sql: /opt/openkm/start.sql
2019-10-07 08:26:28,436 [localhost-startStop-1] [] WARN  o.a.c.o.s.i.a.CmisAtomPubServlet - CMIS version is not defined! Setting it to CMIS 1.0.
...y claro luego cuando quiero abrir un doc o xls en openkm, ya no funciona:

Code: Select all

2019-10-07 08:38:38,562 [http-nio-0.0.0.0-8080-exec-9] [] ERROR c.o.s.frontend.ConverterServlet - Error in application/msword to PDF conversion
com.openkm.core.ConversionException: Error in application/msword to PDF conversion
        at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:293) ~[classes/:6.3.6]
        at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:243) ~[classes/:6.3.6]
        at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:122) ~[classes/:6.3.6]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [servlet-api.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [catalina.jar:8.5.24]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.24]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-websocket.jar:8.5.24]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.24]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.24]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)[spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160) [spring-security-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343) [spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE
]
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260) [spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:8.5.24]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [catalina.jar:8.5.24]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [catalina.jar:8.5.24]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [catalina.jar:8.5.24]
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) [catalina.jar:8.5.24]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [catalina.jar:8.5.24]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [catalina.jar:8.5.24]
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-coyote.jar:8.5.24]
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-coyote.jar:8.5.24]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) [tomcat-coyote.jar:8.5.24]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) [tomcat-coyote.jar:8.5.24]
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:8.5.24]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_201]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_201]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.5.24]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_201]
Caused by: java.lang.IllegalStateException: this OfficeManager is currently stopped
        at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:70) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78) ~[jodconverter-core-3.0-beta-4.jar:na]
        at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:69) ~[jodconverter-core-3.0-beta-4.jar:na]
        at com.openkm.util.DocConverter.convert(DocConverter.java:236) ~[classes/:6.3.6]
        at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:290) ~[classes/:6.3.6]
        ... 52 common frames omitted
No he cambiado nada en la base del container. Estoy sorpendido de que ahora ya no quiere cargar el soffice.
¿Que esta pasando? ¿Hay algun comando con que puedo volver a arrancar el soffice a mano, despues del arranque del openkm?

Muchas gracias y un saludo,
Bielius

Re: Docker container y soffice problema

Posted: Fri Oct 18, 2019 11:47 am
by pavila
Puedes probar a parar el contenedor y iniciarlo de nuevo. Por algún motivo el proceso de LibreOffice ha muerto, y ahora no está accesible para hacer las conversiones.

Saludos.

Re: Docker container y soffice problema

Posted: Fri Oct 18, 2019 5:18 pm
by bieli
Hola,

eso ya he intentado varias veces, siempre con el mismo resultado. :(

Parece que tengo que crear de nuevo el container con OpenKM y migrar de otra vez todo, pq al principio si ha funcionado sin problemas.

Saludos,
Stefan