Application Error

On Red Hat 7.x, installed a clean version of LO (6.4.7.2 rpm). After installation:

$ soffice --version
LibreOffice 6.4.7.2 639b8ac485750d5696d7590a72ef1b496725cfb5

Running the following command as a test:
echo “Test Libreoffice” > test.txt && soffice --headless --convert-to docx test.txt && soffice --headless --convert-to pdf test.docx

The results are:
convert /home/xxxxx/test.txt → /home/sxxxxx/test.docx using filter : MS Word 2007 XML
convert /home/xxxxx/test.docx → /home/xxxxx/test.pdf using filter : writer_pdf_Export
Application Error

The test and docx file exist. The command also shows as lu166675abs8u.tmp file of 0 bytes.

The only version on Red Hat 7 that I can seem to get running is the rpm version offered by the vendor:
LibreOffice 5.3.6.1 30(Build:1)

Any ideas? Any way to better understand what might be causing the Application Error? This seems to just be for conversion to PDF.

Thank you.

FYI, same results happen when the same command is entered as the root user.

Why do you store as .docx in the intermediate step? Does it error out if you convert to .odt (native format) instead?

Have you tried direct conversion to PDF without storing in an intermediate format?

Result:

$ soffice --headless --invisible --convert-to pdf --outdir /tmp ./test.txt
convert /home/xxxxx/test.txt -> /tmp/test.pdf using filter : writer_pdf_Export
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/test.pdf> failed: 0x507(Error Area:Io Class:Access Code:7))

$ soffice --headless --invisible --convert-to pdf ./test.txt
convert /home/xxxxx/test.txt -> /home/sgreber/test.pdf using filter : writer_pdf_Export
Application Error

And with .odt intermediate step?