<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Headless conversion fails silently"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123861">123861</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Headless conversion fails silently
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Extensions
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>loff@mangrove.cz
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=149733" name="attach_149733" title="test input">attachment 149733</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=149733&action=edit" title="test input">[details]</a></span>
test input

The command

export HOME=/home/testuser/X-C-201941787 && libreoffice --headless --convert-to
pdf --outdir /home/testuser/X-C-201941787
/home/testuser/X-C-201941787/filledTemplate.odt

does not generate any pdf on some systems (i.e. Linux amc-dev 3.16.0-6-amd64 #1
SMP Debian 3.16.57-2 (2018-07-14) x86_64 GNU/Linux). Same command works for
root. X-C-201941787 is a temporary directory, created empty before running the
conversion (in production, testuser is Apache, doing the conversion for web
clients). LibreOffice is standard Debian package, LibreOffice 4.3.3.2
430m0(Build:2). filledTemplate.odt is attached but nothing special - the
failure should be reproducible with basically any input. The underlying problem
(found with strace) is the existence of a directory,
/var/spool/libreoffice/uno_packages/cache/uno_packages/ , which is only
readable by root.

That problem is _not_ the subject of this bug report - I don't know where the
directory came from (although since it appeared on both development and
production machines, there probably is a way to provoke it), and it might well
be outside LibreOffice. What I'd expect from LibreOffice is to report (say on
standard error - it already uses it for successful conversions) that it cannot
read a directory it needs.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>