<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Configuring preview with LibreOffice in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321454#M8455</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jan 2013 16:10:30 GMT</pubDate>
    <dc:creator>Julien_A_</dc:creator>
    <dc:date>2013-01-29T16:10:30Z</dc:date>
    <item>
      <title>Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321452#M8453</link>
      <description>&lt;P&gt;I'm having some trouble setting up the document preview and annotations tool with LibreOffice.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;First, the LibreOffice daemon never starts with nuxeo (Nuxeo documentation says : "If OpenOffice/LibreOffice is already installed on your server, Nuxeo applications come with a daemon that should automatically start it.")
I can't find any documentation on how to configure the ooo-manager-config.xml file.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Second, after starting the daemon "by hand", the preview function still does not work.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks for your help,&lt;/P&gt;
&lt;P&gt;Patrice&lt;/P&gt;
&lt;P&gt;_&lt;/P&gt;
&lt;P&gt;Here are more details :&lt;/P&gt;
&lt;H2&gt;Nuxeo starting :&lt;/H2&gt;
&lt;PRE&gt;&lt;CODE&gt;$ service nuxeo restart
Redémarrage du serveur : Nuxeo version 5.6
Mot de passe :
Nuxeo home:          /home/nuxeo/nuxeo-cap-5.6-tomcat
Nuxeo configuration: /home/nuxeo/nuxeo_conf/nuxeo.conf
Include template: /home/nuxeo/nuxeo-cap-5.6-tomcat/templates/common-base
Include template: /home/nuxeo/nuxeo-cap-5.6-tomcat/templates/common
Include template: /home/nuxeo/nuxeo-cap-5.6-tomcat/templates/postgresql
Include template: /home/nuxeo/nuxeo-cap-5.6-tomcat/templates/dam
Include template: /home/nuxeo/nuxeo-cap-5.6-tomcat/templates/collaboration
Stopping server.....Server stopped.
Detected Tomcat server.
Configuration files generation (nuxeo.force.generation=true)...
Configuration files generated.
Server started with process ID 5579.
= Component Loading Status: Pending: 0 / Unstarted: 0 / Total: 654
Started in 1min19s
0
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;No Libreoffice daemon running :&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$ ps -edf |grep office |grep -v grep
$ netstat -taupe |grep office
$
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H2&gt;Not working preview after hand running office daemon :&lt;/H2&gt;
&lt;PRE&gt;&lt;CODE&gt;$  /usr/lib64/libreoffice/program/soffice --headless --nologo --nofirststartwizard --accept="socket,host=localhost,port=2222;urp;StarOffice.Service"&amp;amp;
$ ps -edf |grep office |grep -v grep
nuxeo     5800  5359  0 10:48 pts/1    00:00:00 /usr/lib64/libreoffice/program/oosplash.bin --headless --nologo --nofirststartwizard --accept=socket,host=localhost,port=2222;urp;StarOffice.Service
nuxeo     5807  5800  4 10:48 pts/1    00:00:00 /usr/lib64/libreoffice/program/soffice.bin --headless --nologo --nofirststartwizard --accept=socket,host=localhost,port=2222;urp;StarOffice.Service
$

$ netstat -taupe |grep office
tcp      0     0 localhost:EtherNet/IP-1     *:*               LISTEN      nuxeo      75615      5807/soffice.bin
$
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Error message when clicking on the preview icon :&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Preview can not be generated for this document.
``Blob path: default.
org.nuxeo.ecm.platform.preview.api.PreviewException: Converter office2html is not available
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H2&gt;Our Nuxeo config for Office :&lt;/H2&gt;
&lt;PRE&gt;&lt;CODE&gt;jod.connection.protocol      SOCKET
jod.jpipe.lib.path	            &amp;lt;no value&amp;gt;
jod.max.tasks.per.process    200
jod.office.home	         /usr/lib64/libreoffice/program
jod.task.execution.timeout   120000
jod.task.queue.timeout       30000
jod.template.profile.dir        &amp;lt;no value&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Jan 2013 12:03:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321452#M8453</guid>
      <dc:creator>apx25_</dc:creator>
      <dc:date>2013-01-22T12:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321453#M8454</link>
      <description>&lt;P&gt;Nuxeo uses a JOD based converter, which uses the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    try {
        officeManager = configuration.buildOfficeManager();
        officeManager.start();
        started = true;
        log.debug("Starting ooo manager.");
    } catch (Exception e) {
        Throwable t = unwrapException(e);
        log.warn("OpenOffice was not found, JOD Converter "
                + "won't be available: " + t.getMessage());
    }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It sets the started property to true, when there is no exception.
The property is used later to check if OO is running.
It means that the code above have to be done properly.&lt;/P&gt;
&lt;P&gt;So, you should check:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;if you have nuxeo-platform-convert-5.6.jar bundle in nxserver/bundles subdirectory,&lt;/LI&gt;
&lt;LI&gt;if you have jodconverter-core-3.0-NX3.2.jar library in nxserver/lib subdirectory,&lt;/LI&gt;
&lt;LI&gt;logs in the server.log file. The JOD records a lot informations.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You can also set the DEBUG logging level in log4j.xml file (the change requires restart).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 22:35:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321453#M8454</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2013-01-22T22:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321454#M8455</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 16:10:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321454#M8455</guid>
      <dc:creator>Julien_A_</dc:creator>
      <dc:date>2013-01-29T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321455#M8456</link>
      <description>&lt;P&gt;here is the error in the log&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 16:26:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321455#M8456</guid>
      <dc:creator>Julien_A_</dc:creator>
      <dc:date>2013-01-29T16:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321456#M8457</link>
      <description>&lt;P&gt;try to change WARN to DEBUG in log4j.xml&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2013 22:57:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321456#M8457</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2013-01-29T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321457#M8458</link>
      <description>&lt;P&gt;Here is what I get&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 11:35:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321457#M8458</guid>
      <dc:creator>Julien_A_</dc:creator>
      <dc:date>2013-01-30T11:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321458#M8459</link>
      <description>&lt;P&gt;Unusual is that there have been two starts of nuxeo&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:33:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321458#M8459</guid>
      <dc:creator>adam_bo_</dc:creator>
      <dc:date>2013-01-30T15:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321459#M8460</link>
      <description>&lt;P&gt;yes, exactly... any idea of where it could come from ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 15:51:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321459#M8460</guid>
      <dc:creator>Julien_A_</dc:creator>
      <dc:date>2013-01-30T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321460#M8461</link>
      <description>&lt;P&gt;ok, I solved it... reinstalling Nuxeo from scratch &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2013 18:51:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321460#M8461</guid>
      <dc:creator>Julien_A_</dc:creator>
      <dc:date>2013-01-30T18:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring preview with LibreOffice</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321461#M8462</link>
      <description>&lt;P&gt;try to change
jod.office.home          /usr/lib64/libreoffice/program&lt;/P&gt;
&lt;P&gt;to
jod.office.home          /usr/lib64/libreoffice&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 06:55:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-preview-with-libreoffice/m-p/321461#M8462</guid>
      <dc:creator>TNelson_</dc:creator>
      <dc:date>2015-04-16T06:55:17Z</dc:date>
    </item>
  </channel>
</rss>

