When I am in the view of the invoice shown in the image and I click on download, the browser is continuously processing (the loading circle of the tab rotates) and after about 20-30 seconds the nginx error of the image is displayed.
I have checked the logs but no logs are being saved in the /var/log/odoo/odoo.log file
I tried installing wkhtmltopdf, but the problem persists. What else could I try?
Hi, I solved the problem.
The odoo.conf file had only 1 worker defined.
Print / download invoice requires 2 workers
Sound good.
If you want to user workers you need to configure it correctly:
number of workers = (CPU Core * 2) + 1
So if you have server with 4 CPU, 8 Thread:
(4 * 2) + 1 = 9 <- theoretical maximal number of worker
You can refer to Odoo deployment:
https://www.odoo.com/documentation/16.0/administration/install/deploy.html#id5