When I try to generate a PDF from a quotation or something else the following error messge appears:
Wkhtmltopdf failed (error code: -11). Message
Feb 9 10:50:01 SRV02 kernel: [2175649.190455] wkhtmltopdf: segfault at bbadbeef ip 00000000004f3449 sp 00007fff9c574870 error 6 in wkhtmltopdf[400000+2274000]
I having an Ubuntu 14.4 Server, Wkhtmltopdf was installed as follows:
sudo wget http://downloads.sourceforge.net/project/wkhtmltopdf/archive/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
Am I the only one having this issue?
The solution in my question was relatively simple.
Because normally odoo is started from the root user, so the environment variable from the odoo user are not active. The environment variables are coming from the process, eg are normally stated in the /etc/init.d/odoo-server startup file.
This variable should solve the problem: Please ad or correct in the startup script.
About This Community
|Asked: 2/9/15, 5:22 AM|
|Seen: 5635 times|
|Last updated: 3/5/16, 5:02 AM|