Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3336 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

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

Ảnh đại diện
Huỷ bỏ