Problem Description:
Alibaba Cloud odoo docker is used well. Suddenly the pdf cannot be printed. (Neither docker can print). View log discovery
WARNING demo odoo.addons.base.models.ir_actions_report: wkhtmltwopdf: b'Exit with code 1 due to network error: TimeoutError\n'
No one has modified the configuration and code before
Solution:
1. Set the access port of Alibaba Cloud to all IPs. That's it (I didn't understand at first. But for normal use. It's open)
Then through google. Find
The report module will first look for the report.url parameter and only use web.base.url as a fallback. Leave web.base.url as is and set report.url to http://0.0.0.0:8069.
(At this time, I think it may be related to the port of docker)
Global search report.url
base_url = IrConfig.get_param('report.url') or IrConfig.get_param('web.base.url')
Found this code
Then set report.url Settings >> Parameters >> System Parameters
Adding a report.url=" http://0.0.0.0:9579 " download is solved. But still garbled. So I thought that it might be set to the port of docker
ports:
- 0.0.0.0:9579:8069
Set it to http://0.0.0.0:8069 to solve it
To summarize the reasons:
Why it turned out to be normal. But it's abnormal now. . And it’s ok to let go of all IP
It is guessed that Ali firewall upgrade rules have changed. . Principle http://0.0.0.0:9579 then wkhtmltwopdf query http://47.103.19.155: 9579 / local ( 47.103.19.155 ) to the local ip ( 47.103.19.155 ) does not intercept. . But after upgrading the firewall rules. The local IP is also blocked. So docker cannot access the IP 47.103.19.155: 9579.
To confirm the speculation. Alibaba Cloud's local IP also gives the release port