跳至内容
菜单
此问题已终结
3 回复
3301 查看

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


形象
丢弃
最佳答案

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.

形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

Hello,

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

形象
丢弃