Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/9/15, 5:22 AM|
|Seen: 6286 times|
|Last updated: 3/5/16, 5:02 AM|