unoconv conversion fails from within trytond
Dear All,
I am running trytond 3.4 (latest minor version) on FreeBSD with the default unoconv pipe settings "unoconv = pipe,name=trytond;urp;StarOffice.ComponentContext" inside my configuration file.
LibreOffice headless version is 5.0.6.3.
I run trytond as user trytond.
If I run: su trytond -c "unoconv -c 'pipe,name=trytond;urp;StarOffice.ComponentContext' /tmp/test_document.odt", everything works fine.
Using the default trytond report configuration with 'OpenDocument Text" as Template Extension and with empty Extension, I can print labels, which are produced via my local (workstation) LibreOffice instance.
Changing Extension to Portable Document Format" produces this error:
--------------------------------%<-----------------------------
Traceback (most recent call last):
File "/site-packages/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/site-packages/trytond/protocols/jsonrpc.py", line 179, in _dispatch
res = dispatch(*args)
File "/site-packages/trytond/protocols/dispatcher.py", line 161, in dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/site-packages/trytond/report/report.py", line 144, in execute
type, data = cls.parse(action_report, records, data, {})
File "/site-packages/trytond/report/report.py", line 300, in parse
data = cls.unoconv(data, report.template_extension, output_format)
File "/site-packages/trytond/report/report.py", line 320, in unoconv
raise Exception(stderrdata)
Exception: None
--------------------------------%<-----------------------------
This, although the direct deployment of unoconv works, see above. If at all possible, I would like to do away with the need to call LibreOffice locally on the workstation.
Am I missing something, or is this a bug? thanks a lot!
Chris