Converter any2pdf is not available

Hi all

I'm deploying nuxeo 9.10 but I'm facing to a problem when I try to preview documents : I get the following error :

{“entity-type”:“exception”,“status”:500,“message”:“Converter any2pdf is not available”}

Yet I installed LibreOffice 5.1 and all theses libraries but unsuccessfully : did someone of you get this kind of error ?

I have defined jod.office.home=/opt/libreoffice5.1/ and jod.jpipe.lib.path=/opt/libreoffice5.1/program

It works with nuxeo 7.10 but not with nuxeo 9.10

texlive-pdfpages texlive-pdfsync texlive-pdftex texlive-pdftex-bin texlive-pdftex-def texlive-thumbpdf texlive-thumbpdf-bin apache-pdfbox pdfpc pdf2html xpdf-poppler xpdf-poppler-debuginfo xpdf-poppler-debugsource zathura-plugin-pdf-poppler zathura-plugin-pdf-poppler

0 votes

0 answers

2301 views

ANSWER

Check your startup logs to see the reason why any2pdf is not available.
01/31/2018

This is my startup log

It tells that I need to install LibreOffice and add soffice to the PATH environment variable ; but I don't know how to call this variable… Besides, I didn't define any environment variable to make it work with nuxeo 7.10

Starting Nuxeo Framework

  • Server home = /Doc/apps/nuxeo-server-9.10-tomcat
  • Runtime home = /Doc/apps/nuxeo-server-9.10-tomcat/nxserver
  • Data Directory = /Doc/apps/nuxeo-data/data
  • Log Directory = /Doc/apps/ulr-config-nuxeo-91/log
  • Configuration Directory = /Doc/apps/nuxeo-server-9.10-tomcat/nxserver/config
  • Temp Directory = /Doc/apps/nuxeo-server-9.10-tomcat/tmp

2018-01-31 14:58:28,436 WARN [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: soffice (command soffice not found in system path (descriptor CommandLineDescriptor[name=soffice,enabled=true,available=false,command=soffice,parameterString=–headless –norestore –writer –convert-to #{format} #{sourceFilePath} –outdir #{outDirPath},testParameterString=–version,winParameterString=<null>,winTestParameterString=–headless –cat test,winCommand=soffice.exe,tester=<null>,readOutput=true,installationDirective=You need to install LibreOffice and add soffice to the PATH environment variable.,installErrorMessage=<null>]). You need to install LibreOffice and add soffice to the PATH environment variable.)

01/31/2018

I have just fixed the path and the error message at nuxeo startup has disappeared. However, the preview still does not work. Now I have the following error:

{"entity-type":"exception","status": 500,"message":"java. lang. NullPointerException"}

` 2018-01-31 16:30:19,431 ERROR [ajp-nio-0.0.0.0-8009-exec-3] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] java.lang.NullPointerException java.lang.NullPointerException

at org.nuxeo.ecm.platform.preview.adapter.PdfPreviewer.getPreview(PdfPreviewer.java:55) at org.nuxeo.ecm.platform.preview.adapter.OfficePreviewer.getPreview(OfficePreviewer.java:41) at org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAdapter.java:140) at org.nuxeo.ecm.platform.preview.adapter.base.ConverterBasedHtmlPreviewAdapter.getPreviewBlobs(ConverterBasedHtmlPreviewAdapter.java:107) at org.nuxeo.ecm.platform.preview.adapter.base.AbstractHtmlPreviewAdapter.getFilePreviewBlobs(AbstractHtmlPreviewAdapter.java:119) at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.getPreviewBlobs(PreviewAdapter.java:148) at org.nuxeo.ecm.restapi.server.jaxrs.adapters.PreviewAdapter.preview(PreviewAdapter.java:83) 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:498) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ObjectOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:258)`
01/31/2018