Alfresco Startup Error "Unable to start JodConverter library"

cancel
Showing results for 
Search instead for 
Did you mean: 
kdineshbabu
Member II

Alfresco Startup Error "Unable to start JodConverter library"

Hi,

We are getting the following exception whenever we start alfresco server. 

We already added the following libraries in ubuntu as suggested in different discussions:

Environment:

Ubuntu 20.10

Alfresco 6.0.2.1-ea

Libraries Installed:

sudo apt-get update -y
apt-get install -y libcairo2
sudo apt-get install libdbus-glib-1-2
sudo apt-get install libxrender1 libsm-dev libice-dev libxext-dev libxinerama-dev fontconfig-config libfontconfig1

alfresco-global.properties configurations:

ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin
ooo.enabled=true
ooo.port=9100
img.root=/opt/alfresco-community/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
alfresco-pdf-renderer.root=/opt/alfresco-community/common/alfresco-pdf-renderer
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer

jodconverter.enabled=true
jodconverter.officeHome=/opt/alfresco-community/libreoffice
jodconverter.portNumbers=9100

Exception:

Jan 15, 2021 10:43:10 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: Using original OpenOffice command: [/opt/alfresco-community/libreoffice/program/soffice.bin, -accept=socket,host=127.0.0.1,port=9100;urp;, -env:UserInstallation=file:///opt/alfresco-community/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-9100, -headless, -nocrashreport, -nodefault, -nofirststartwizard, -nolockcheck, -nologo, -norestore]
Jan 15, 2021 10:43:10 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: starting process with acceptString 'socket,host=127.0.0.1,port=9100,tcpNoDelay=1' and profileDir '/opt/alfresco-community/tomcat/temp/.jodconverter_socket_host-127.0.0.1_port-9100'
Jan 15, 2021 10:43:10 AM org.artofsolving.jodconverter.office.OfficeProcess start
INFO: started process; pid = 1360
2021-01-15 10:43:10,436 ERROR [repo.content.JodConverterSharedInstance] [localhost-startStop-1] Unable to start JodConverter library. The following error is shown for informational purposes only.
org.artofsolving.jodconverter.office.OfficeException: failed to start and connect
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:62)
at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:96)
at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:60)
at org.alfresco.repo.content.JodConverterSharedInstance.afterPropertiesSet(JodConverterSharedInstance.java:352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:824)
at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1098)
at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:637)
at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:214)
at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:185)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5110)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1015)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:991)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:2002)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
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:206)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:60)
... 39 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connection
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:141)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$000(ManagedOfficeProcess.java:29)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:56)
... 5 more
Caused by: org.artofsolving.jodconverter.office.OfficeException: connection failed: socket,host=127.0.0.1,port=9100,tcpNoDelay=1
at org.artofsolving.jodconverter.office.OfficeConnection.connect(OfficeConnection.java:96)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess$6.attempt(ManagedOfficeProcess.java:122)
at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:34)
at org.artofsolving.jodconverter.office.Retryable.execute(Retryable.java:24)
at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:139)
... 7 more
Caused by: com.sun.star.lang.DisposedException: java_remote_bridge com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge@5307ee67 is disposed
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.checkDisposed(java_remote_bridge.java:699)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:620)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendInternalRequest(java_remote_bridge.java:666)
at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.getInstance(java_remote_bridge.java:567)
at org.artofsolving.jodconverter.office.OfficeConnection.connect(OfficeConnection.java:84)
... 11 more
2021-01-15 10:43:10,486 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'OOoJodconverter' subsystem, ID: [OOoJodconverter, default] complete

 

 Your help is appreciated in resolving this issue.

3 Replies
abhinavmishra14
Advanced

Re: Alfresco Startup Error "Unable to start JodConverter library"

Couple of things to try.

1- You are using early access version of acs, i would suggest to use the latest stable version :

https://download.alfresco.com/cloudfront/release/community/201911-GA-build-368/alfresco-content-serv...

2- LibreOffice v6.3.5 is the supported version for ACS 6.x as per the https://docs.alfresco.com/6.2/concepts/supported-platforms-ACS.html , I would suggest to install the version as stated in the supported platform.

You can download from here: https://downloadarchive.documentfoundation.org/libreoffice/old/6.3.5.2/rpm/x86_64/LibreOffice_6.3.5....

3- Make sure installation path is correctly set in alfresco-global.properties file. 

4- Although it is possible to use/start both 'OOoDirect' and 'OOoJodConverter' both (As you are doing as per your alfresco-global.properties), i would suggest to use just 'OOoJodConverter'. 

Alfresco recommends that you enable only one at a time. To take advantage of the stability and performance benefits of the OOoJodconverter subsystem,  ensure that you disable OOoDirect and enable OOoJodConverter using the following properties in the alfresco-global.properties file: ooo.enabled=false and jodconverter.enabled=true

Example:

ooo.exe=/opt/alfresco-community62ga/libreoffice/program/soffice.bin
ooo.enabled=false
ooo.port=8100
jodconverter.enabled=true
jodconverter.officeHome=/opt/alfresco-community62ga/libreoffice
jodconverter.portNumbers=8100

5- Make sure that libreoffice is having apropriate permissions for the user you are using to start alfresco. Make sure they have read and execute access (r-x)

6- And lastly, make sure the port you are using is not already occupied.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
sanjaybandhniya
Intermediate

Re: Alfresco Startup Error "Unable to start JodConverter library"

Hi,

i am trying same configuration with alfresco 7 zip installation but not working.

abhinavmishra14
Advanced

Re: Alfresco Startup Error "Unable to start JodConverter library"

If you are trying to run legacy transformation services using ACS7 package, it was removed after ACS6. It was marked deprecated in earlier version.

Take a look at this thread if you want to use local tranformation services:

https://hub.alfresco.com/t5/alfresco-content-services-forum/alfresco-comunity-7-zip-haven-t-alfresco...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)