Skip to Content
Menú
This question has been flagged
1 Respondre
602 Vistes

When i try to print reports i get this error and the report is printed wihout layout 

2025-06-04 15:12:07,922 320428 WARNING  Production_db  odoo.addons.base.models.ir_actions_report: wkhtmltopdf: Exit with code 1 due to network error: ContentNotFoundError


2025-06-04 15:12:07,925 320428 INFO v odoo.addons.base.models.ir_actions_report: The PDF report has been generated for model: account.move, records [3150].

2025-06-04 15:12:07,928 320428 INFOProduction_db werkzeug: 105.76.25.121 - - [04/Jun/2025 15:12:07] "POST /report/download HTTP/1.1" 200 - 32 0.015 2.610



I already checked the wkhtmltopdf package and reconfigured it and configured the system parameters  and i still get this error.

and it's happening to me on two different server ubuntu where i have Odoo 17

Avatar
Descartar
Best Answer

Hi,

Check if wkhtmltopdf is the Correct Version


Odoo 17 is known to work best with:


    wkhtmltopdf 0.12.6 (with patched Qt)


Check with:


wkhtmltopdf --version


If your version is not 0.12.6 with patched Qt, replace it:


sudo apt remove wkhtmltopdf

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.6/wkhtmltox_0.12.6-1.focal_amd64.deb

sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb


Restart Odoo after reinstallation.


Hope it helps

Avatar
Descartar
Autor

Hello ,
Thanks for your help, but I have already tried all the solutions.
the wkhtmltopdf work when I run the tests on the server, but when printing from odoo i get the error is mentioned.
In my case I am running multiple databases on the same server, the only solution that worked for me is when I specified a database in the configuration thread using db_name=my_db but without it's not working