<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 - "javaldx failed! Warning: failed to read path from javaldx" when converting using soffice --headless on Linux"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=122086">122086</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"javaldx failed! Warning: failed to read path from javaldx" when converting using soffice --headless on Linux
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.7.3 release
          </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>LibreOffice
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ben.wilson1337@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
I am trying to add functionality to convert .DOCX files to .PDF in a web app
I'm developing. The app is using Node.js, which is on an AWS EC2 instance
(using Elastic Beanstalk) running Amazon Linux AMI (release 2018.03). I'm using
the office-to-pdf package (<a href="https://www.npmjs.com/package/office-to-pdf">https://www.npmjs.com/package/office-to-pdf</a>) which
is really just running `soffice --headless --convert-to pdf somefile.docx`
under the hood.

I installed LibreOffice 6.0.7.3 and all dependencies and was able to run the
headless conversion just fine while SSH'd in as 'ec2-user'. No problem. But the
programmatic call in office-to-pdf hangs every time. I found that it runs as a
different user, 'nodejs', and when I do `top -u nodejs` I can indeed see the
soffice.bin and oosplash processes, but they are sleeping. When I kill them, I
get the message:

javaldx failed!
Warning: failed to read path from javaldx

This is not just the package; I can do `sudo -u nodejs soffice --headless
--convert-to pdf somefile.docx` and it shows the same exact message and hangs
the process.

I have read some bug reports on here and some questions on Super User that
pointed to the .config directory -- I tried opening the permissions up with
`chmod -R 777 .config/` to no avail. I also tried changing the owner & group
from the default user 'ec2-user' to 'nodejs' to no avail.

This may ultimately be a Linux question but I could not find any info on
javaldx to try to dive deeper.

Steps to Reproduce:
1. Launch AWS Elastic Beanstalk Node.js environment with Amazon Linux AMI
release 2018.03. (Also set up SSH)
2. SSH into instance.
3. Install LibreOffice 6.0.7.3 release typically.
4. Try to run `soffice --headless --convert-to pdf somefile.docx` with some
sample file. Observe that it converts successfully.
5. Try to run `sudo -u nodejs soffice --headless --convert-to pdf
somefile.docx` to generate the warning message/hang.


Actual Results:
The conversion process hangs forever, therefore failing.

Expected Results:
The command is expected to convert the file regardless of the user calling it.


Reproducible: Always


User Profile Reset: No



Additional Info:
I have not and can not run the LO GUI. I only have access to the CLI.</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>