Error Report_Webkit

Bug #675008 reported by ag2888
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Hello,

Fresh setup of openerp (13/11/2010)

Error when we generate the facture Webkit, log error :

[2010-11-13 21:53:47,694][ags] ERROR:web-services:[02]: Traceback (most recent call last):
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[03]: File "/opt/openerp/server/bin/service/web_services.py", line 711, in go
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[05]: File "/opt/openerp/addons/report_webkit/webkit_report.py", line 344, in create
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[06]: result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[07]: File "/opt/openerp/server/bin/report/report_sxw.py", line 462, in create_source_pdf
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[09]: File "/opt/openerp/addons/report_webkit/webkit_report.py", line 316, in create_single_pdf
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[10]: pdf = self.generate_pdf(bin, report_xml, head, foot, [html])
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[11]: File "/opt/openerp/addons/report_webkit/webkit_report.py", line 154, in generate_pdf
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[12]: pdf = file(out).read()
[2010-11-13 21:53:47,695][ags] ERROR:web-services:[13]: IOError: [Errno 2] Aucun fichier ou dossier de ce type: u'/tmp/factureWebKit1289681627.68.pdf'

GTK Error :

2
(<type 'exceptions.IOError'>, IOError(2, 'Aucun fichier ou dossier de ce type'), <traceback object at 0x940e3ec>)

For info :

wkhtmltopdf setup with apt-get install and path found at : /usr/bin/wkhtmltopdf

Peaps user not have acces to create the tmp folder ? Im not sure, humm !
I have create more folder "tmp" with chmod 777 but im realy not sure where to create that tmp folder...

Sincerely

Changed in openobject-addons:
assignee: nobody → Nicolas Bessi - Camptocamp (nbessi-c2c)
status: New → Confirmed
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

Hello,

Please download version 0.9.9 of wkhtmltopdf the one proposed via apt is too old.
https://bugs.launchpad.net/openobject-addons/+bug/670312

Propose a patch to fix the problem. Odony sais it will merge it when it will have time.

Nicolas

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

PS Do not forget to set the absolute path of the library in the company.

Regards

Nicolas

Revision history for this message
Bogdan Stanciu (bstanciu) wrote :

hello,

i have the latest rev (4373) and wkhtmltopdf 0.9.9-1ubuntu2, i set up the path in the company to /usr/bin/wkhtmltopdf, but i still get the same error (almost the same traceback):

ERROR:web-services:[01]: Exception: [Errno 2] No such file or directory: u'/tmp/factureWebKit1295751144.77.pdf'
[2011-01-23 03:52:24,988][bs_test_02] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-01-23 03:52:24,988][bs_test_02] ERROR:web-services:[03]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 724, in go
[2011-01-23 03:52:24,989][bs_test_02] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-01-23 03:52:24,989][bs_test_02] ERROR:web-services:[05]: File "/home/openerp/addons/report_webkit/webkit_report.py", line 369, in create
[2011-01-23 03:52:24,989][bs_test_02] ERROR:web-services:[06]: result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
[2011-01-23 03:52:24,989][bs_test_02] ERROR:web-services:[07]: File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 491, in create_source_pdf
[2011-01-23 03:52:24,989][bs_test_02] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2011-01-23 03:52:24,989][bs_test_02] ERROR:web-services:[09]: File "/home/openerp/addons/report_webkit/webkit_report.py", line 341, in create_single_pdf
[2011-01-23 03:52:24,990][bs_test_02] ERROR:web-services:[10]: pdf = self.generate_pdf(bin, report_xml, head, foot, [html])
[2011-01-23 03:52:24,990][bs_test_02] ERROR:web-services:[11]: File "/home/openerp/addons/report_webkit/webkit_report.py", line 158, in generate_pdf
[2011-01-23 03:52:24,990][bs_test_02] ERROR:web-services:[12]: pdf = file(out).read()
[2011-01-23 03:52:24,990][bs_test_02] ERROR:web-services:[13]: IOError: [Errno 2] No such file or directory: u'/tmp/factureWebKit1295751144.77.pdf'

Revision history for this message
René Glauser (rene-glauser) wrote :

I have the same problem in Version V6.1RC1 with the following error: No such file or directory: '/tmp/webkit.tmp.j5rO0P.pdf

What is the solution?

Revision history for this message
René Glauser (rene-glauser) wrote :

In my case the problem seems to have something to do with 64bit-system. I followed the instructions from https://github.com/jdpace/PDFKit/wiki and then the error dissapeared

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.