PDF Conversion failing

When attempting to convert a file to pdf soffice falls into a loop. The command I’m using is:
/usr/lib/libreoffice/program/soffice.bin --headless --invisible --nologo --nofirststartwizard --convert-to pdf --outdir /tmp ./BookingConfirmation-1542719405591.pdf

Here’s the result as it appears in our logs:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:98)
Caused by: java.lang.NoClassDefFoundError: net/zemberek/yapi/DilAyarlari
at net.zemberek.ooo.spellchecker.TurkishSpellChecker.(TurkishSpellChecker.java:94)
… 5 more
Caused by: java.lang.ClassNotFoundException: net.zemberek.yapi.DilAyarlari
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 6 more
Hata. Servis y��klenemedi.
Gelen Constructor sayisi: 1
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:98)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:118)
Caused by: java.lang.NoClassDefFoundError: net/zemberek/yapi/DilAyarlari
at net.zemberek.ooo.spellchecker.TurkishSpellChecker.(TurkishSpellChecker.java:94)
… 6 more
Caused by: java.lang.ClassNotFoundException: net.zemberek.yapi.DilAyarlari
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 7 more
Hata. Servis y��klenemedi.
Gelen Constructor sayisi: 1
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:98)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:118)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:118)
Caused by: java.lang.NoClassDefFoundError: net/zemberek/yapi/DilAyarlari
at net.zemberek.ooo.spellchecker.TurkishSpellChecker.(TurkishSpellChecker.java:94)
… 7 more
Caused by: java.lang.ClassNotFoundException: net.zemberek.yapi.DilAyarlari
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 8 more
Hata. Servis y��klenemedi.
Gelen Constructor sayisi: 1
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:98)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:118)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:118)
at net.zemberek.ooo.OneInstanceFactory.createInstance(OneInstanceFactory.java:118)
Caused by: java.lang.NoClassDefFoundError: net/zemberek/yapi/DilAyarlari
at net.zemberek.ooo.spellchecker.TurkishSpellChecker.(TurkishSpellChecker.java:94)
… 8 more
Caused by: java.lang.ClassNotFoundException: net.zemberek.yapi.DilAyarlari
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 9 more

It continues on like that with list get larger and larger, until the process is manually killed.
Please advise

Just some notes.

Are you really converting ./BookingConfirmation-1542719405591.pdf to pdf?

–invisible and --nologo aren’t needed with --headless

–nofirststartwizard does nothing (ignored) since the very first release of LibreOffice, and is there only for compatibility with OOo.

It helps to mention versions of LibreOffice and OS.

It’s a generic command we’re using for all files that are to converted to PDF, we experienced the issue even when converting a Docx file, as well as a Txt file. Only started experiencing the issue today.

We ran the command from linux (Ubuntu 16.04.5 LTS), using soffice (LibreOffice 5.1.6.2 10m0(Build:2))

Remove Zemberek. Does the problem persist?

Only started experiencing the issue today

Has something happened (new software installed? updates applied?) since yesterday?

Can you also update LO (using the Ubuntu LibreOffice Packaging team’s PPA) to test if the issue persists with later versions?

It’s weird that the Turkish spell checker (Zemberek) extension would be called as part of the PDF conversion. Seems like most of the errors relate to that plugin.

Removing Zemberek helped…thanks for the assistance