Correct way to print report in tryton


I’m installing trytond on python3.6 (before I use 3.4) and follow the steps and requirements described on How to install Tryton — trytond 5.3 documentation

All works fine at the moment, except when I try to print a report I receive this message:

Traceback (most recent call last):
File “/opt/test/lib/python36/site-packages/trytond/wsgipy”, line 73, in dispatch_request
return endpoint(request, **requestview_args)
File “/opt/test/lib/python36/site-packages/trytond/protocols/dispatcherpy”, line 46, in rpc
request, database_name, *requestrpc_params)
File “/opt/test/lib/python36/site-packages/trytond/wsgipy”, line 44, in auth_required
return wrapped(*args, **kwargs)
File “/opt/test/lib/python36/site-packages/trytond/protocols/wrapperspy”, line 122, in wrapper
return func(request, pool, *args, **kwargs)
File “/opt/test/lib/python36/site-packages/trytond/protocols/dispatcherpy”, line 176, in _dispatch
result = rpcresult(meth(*c_args, **c_kwargs))
File “/opt/test/lib/python36/site-packages/trytond/report/reportpy”, line 182, in execute
oext, content = cls_execute(records, data, action_report)
File “/opt/test/lib/python36/site-packages/trytond/report/reportpy”, line 190, in _execute
return clsconvert(action, clsrender(action, report_context))
File “/opt/test/lib/python36/site-packages/trytond/report/reportpy”, line 318, in convert
File “/usr/lib/python36/subprocesspy”, line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocessCalledProcessError: Command ‘[‘soffice’, ‘–headless’, ‘–nolockcheck’, ‘–nodefault’, ‘–norestore’, ‘–convert-to’, ‘pdf’, ‘–outdir’, ‘/tmp/trytond_p5_mvp5n’, ‘/tmp/trytond_p5_mvp5n/salesaleodt’]’ returned non-zero exit status 77

I’m not sure if I have to install an additional requirement to it.

Thanks in advance!

Exit code 77 is normaly for permission denied. So it seems the trytond user does not have the permission to execute soffice which is required if you want format transformation.

Thanks for the help, it works! Change /tmp/ dir permission works.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.