İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
3329 Görünümler

Hello everyone,

I've recently installed an instance of Odoo version 17 Community on a Ubuntu server. However, I'm facing a recurring issue where my Odoo instance unexpectedly crashes, while the other applications on the server are running fine. I'm using the wkhtmltopdf library to generate PDFs, but I'm encountering timeout problems. The logs display the following message:

WARNING demo odoo.addons.base.models.ir_actions_report: wkhtmltopdf: b'Exit with code 1 due to network error: TimeoutError\n'

Has anyone encountered a similar issue or have any suggestions on how to resolve this timeout problem with wkhtmltopdf?

Thanks in advance for your assistance


Avatar
Vazgeç
En İyi Yanıt

For Ubuntu 22.10 kinetic, wkhtmltopdf 0.12.6.1 version supported for odoo 15 & 16, for my machine finally.

wget https://github\.com/wkhtmltopdf/packaging/releases/download/0\.12\.6\.1\-2/wkhtmltox_0\.12\.6\.1\-2\.jammy_amd64\.deb

sudo apt install  ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb

or

sudo dpkg -i ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb


Then check the version by 

wkhtmltopdf --version //wkhtmltopdf 0.12.6.1 (with patched qt)
wkhtmltoimage --version //wkhtmltoimage 0.12.6.1 (with patched qt)

Sometimes it's required a restart.

Avatar
Vazgeç
En İyi Yanıt

Thank you Traoré for your response. I have the same problem. can you explain your solution more to me?

Avatar
Vazgeç
En İyi Yanıt

Hello,

You just have to set report.url to http://0.0.0.0:8069

Avatar
Vazgeç