Hello dears
We are currently using the Jasper Report module developed by Serpent Cs without problems on many servers. However, when installing it in a ubuntu server of a customer, we have the following error that appears at the generation of all the reports (included the example):
2017-11-09 13:56:20,023 17857 INFO demo odoo.addons.jasper_reports.jasper_report: Requested report: '/usr/lib/python2.7/dist-packages/odoo/addons/jasper_reports/custom_reports/sale_order_report.jrxml'
2017-11-09 13:56:20,025 17857 INFO demo odoo.addons.jasper_reports.jasper_report: Temporary data file: '/tmp/tmpQvrlkR'
2017-11-09 13:56:20,062 17857 ERROR demo odoo.service.report: Exception: [Errno 13] Permission denied: 'openerp-jasper.pid'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/service/report.py", line 94, in go
result, format = odoo.report.render_report(cr, uid, ids, object, datas, context)
File "/usr/lib/python2.7/dist-packages/odoo/report/__init__.py", line 19, in render_report
return env['ir.actions.report.xml'].render_report(ids, name, data)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_actions.py", line 234, in render_report
return report.create(self._cr, self._uid, res_ids, data, context=self._context)
File "/usr/lib/python2.7/dist-packages/odoo/addons/jasper_reports/jasper_report.py", line 311, in create
return r.execute()
File "/usr/lib/python2.7/dist-packages/odoo/addons/jasper_reports/jasper_report.py", line 183, in execute
sub_report_data_files)
File "/usr/lib/python2.7/dist-packages/odoo/addons/jasper_reports/jasper_report.py", line 272, in execute_report
output_file, parameters)
File "/usr/lib/python2.7/dist-packages/odoo/addons/jasper_reports/JasperReports/jasper_server.py", line 110, in execute
self.start()
File "/usr/lib/python2.7/dist-packages/odoo/addons/jasper_reports/JasperReports/jasper_server.py", line 100, in start
with open(self.pidfile, 'w') as f:
IOError: [Errno 13] Permission denied: 'openerp-jasper.pid'
2017-11-09 13:56:20,270 17857 ERROR demo odoo.addons.web.controllers.main: An exception occured during an http request Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 70, in wrap
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 1477, in index
request.session.db, request.session.uid, request.session.password, report_id])
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 118, in dispatch_rpc
result = dispatch(method, params)
File "/usr/lib/python2.7/dist-packages/odoo/service/report.py", line 35, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/python2.7/dist-packages/odoo/service/report.py", line 142, in exp_report_get
return _check_report(report_id)
File "/usr/lib/python2.7/dist-packages/odoo/service/report.py", line 120, in _check_report
raise UserError('%s: %s' % (exc.message, exc.traceback))
UserError: (u"13\nPermission denied: (<type 'exceptions.IOError'>, IOError(13, 'Permission denied'), <traceback object at 0x7fbea5720a28>)", '')
I have searched the openerp-jasper.pid and dont find it within any folder of the SO.
We have done everything necessary for the execution of the module as giving execution permissions to the jasper folder and others.
Odoo Version:10
Github repository used for the project: https://github.com/JayVora-SerpentCS/Jasperreports_odoo#10
We appreciate any help you can give us.
Thank you very much in advance.
Gabriel Cáceres Cabriza