I recently installed Alfresco for testing in the vagrant instance. I used the Ubuntu image for the vagrant instance. But I forgot to install all the libraries which are necessary to be installed on Ubuntu before you install alfresco. But fortunately alfresco worked without those dependencies.
nn
http://docs.alfresco.com/5.0/concepts/install-lolibfiles.html
nn
Above link gives you what are the libraries you should install before you install Alfresco. You should run below command to install libraries.
nn
$ sudo apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2n
n
But still, office document previews didn’t work properly. Some documents worked properly but some of them didn’t. Then I tried to debug it with one of my colleagues. We found below text in our logs.
nn
2015-05-14 10:04:16,607 ERROR [repo.content.JodConverterSharedInstance] [localhost-startStop-1] Unable to start JodConverter library. The following error is shown for informational purposes only.n org.artofsolving.jodconverter.office.OfficeException: failed to start and connectn at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:68)n at org.artofsolving.jodconverter.office.PooledOfficeManager.start(PooledOfficeManager.java:101)n at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.start(ProcessPoolOfficeManager.java:66)n at org.alfresco.enterprise.repo.content.JodConverterSharedInstance.afterPropertiesSet(JodConverterSharedInstance.java:239)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1572)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1510)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)n at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)n at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)n at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)n at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)n at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)n at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)n at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)n at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:809)n at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1018)n at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:557)n at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)n at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)n at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)n at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)n at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)n at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)n at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)n at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)n at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)n at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5524)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)n at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)n at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)n at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)n at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081)n at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877)n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)n at java.util.concurrent.FutureTask.run(FutureTask.java:266)n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)n at java.lang.Thread.run(Thread.java:745)nCaused by: java.util.concurrent.ExecutionException: org.artofsolving.jodconverter.office.OfficeException: could not establish connectionn at java.util.concurrent.FutureTask.report(FutureTask.java:122)n at java.util.concurrent.FutureTask.get(FutureTask.java:206)n at org.artofsolving.jodconverter.office.ManagedOfficeProcess.startAndWait(ManagedOfficeProcess.java:66)n ... 39 morenCaused by: org.artofsolving.jodconverter.office.OfficeException: could not establish connectionn at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:147)n at org.artofsolving.jodconverter.office.ManagedOfficeProcess.access$0(ManagedOfficeProcess.java:122)n at org.artofsolving.jodconverter.office.ManagedOfficeProcess$1.run(ManagedOfficeProcess.java:62)n ... 5 morenCaused by: java.lang.IllegalStateException: process with acceptString 'socket,host=127.0.0.1,port=8100' started but its pid could not be foundn at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:137)n at org.artofsolving.jodconverter.office.OfficeProcess.start(OfficeProcess.java:67)n at org.artofsolving.jodconverter.office.ManagedOfficeProcess.doStartProcessAndConnect(ManagedOfficeProcess.java:124)n ... 7 moren
nn
Then we tried to run the soffice application from the terminal. Look what we got!
nn
/home/vagrant/alfresco-5.0.1/libreoffice/program/oosplash: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directoryn
nn
Then we realised that we should install that library on Ubuntu. Run below command on the Ubuntu server to install the missing library.
nn
$ sudo apt-get install libxinerama1n
nn
Make sure you run both commands above!
nn
Gist
nn
nn
Tags
nn
- n
- libreoffice
- openoffice
- Ubuntu
- alfresco
n
n
n
n
n





