Odoo Help


wkhtmltopdf on ubuntu 12.04 fails

David Arnold
on 11/7/14, 4:49 AM 3,625 views


please can you help me, I'm unable to figure out the problem.

# uname -a : 
Linux usve59166 2.6.32-042stab092.3 #1 SMP Sun Jul 20 13:27:24 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux

# lsb_release -a: 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:        12.04
Codename:       precise

# which wkhtmltopdf

# wkhtmltopdf -V
wkhtmltopdf 0.12.1 (with patched qt)

wkthmlto* files have also been copied to /usr/bin

Key webkit_path
Value /usr/local/bin

log_level = error shows no relevant log entries


Can anybody help finding the cause?


Thanks in advance

ps no ability to go on 14.04

David Arnold
on 11/7/14, 4:51 AM

Hi. I also had issues with wkhtmltopdf for your case, just simlink ln -s /usr/loca/bin/wkhtmltopdf /usr/bin/wkhtmltopdf. If this fails use the 0.9 version of wkhtmltopdf, it workerd for me: https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 just untar and place in in /usr/bin

Marco Galicia
on 11/10/14, 5:59 PM
David Arnold
On 11/13/14, 11:20 AM

Thanks for your replies, I'll consolidate the answer:

As Matthias:

The Odoo path in the startupscript seems the relevant factor, as I read in other posts, configuring the webkit_path in odoo is just something legacy and only valid info for some part of the odoo code. It seems that the rest goes for the PATH variable...

This is why either

  • symlinking,
  • copying or
  • changing the path variable works.

Chowning might be necessary.

I reported at one point that a reboot did not solve it, after completing those steps. After a day it worked. I'm not sure where was the whichdoctor about this fact and I'm about to believe that he was in my head. or somwhere in the runlevels, or...



--Odoo --

| 5 2 5
--Odoo --

Working in Odoo TEchnologies

On 11/7/14, 5:10 AM

Follow below steps and ,  Restart the system it will work

1) Download wkhtmltopdf version from wkhtmltopdf.org depend on your system arch (32 or 64 bit)


    wget wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb


2) Install the package using commnad :


   sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb 


3) Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command


    sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/


4) Restart Odoo server and try once again.

is it right to get the trusty package for a precise ubuntu? restart system? = reboot server? or restart odoo service?

David Arnold
on 11/7/14, 5:16 AM

I got this same issue ,but after restarting my system it will works properly, need restart odoo service also

on 11/7/14, 5:33 AM

negative, a server reboot didn't do the magic...

David Arnold
on 11/7/14, 5:43 AM

Are you working with an auto-start of odoo-server on system boot? If yes, pleas be shure that the path in startup-script look like this: PATH=/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin If not, you can try to make a copy of the wkhtmltopdf inside your odoo-path and chown it to odoo and change the value in configuration.

Mathias Neef
on 11/8/14, 7:37 AM
Erhuvwu Akpobaro
On 11/12/14, 4:48 AM

I had the same issue simply :

to solve wkhtmltopdf issue (report are empty or version error) use this :
sudo wget http://jaist.dl.sourceforge.net/project/wkhtmltopdf/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

Then restart server , should work


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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 11/7/14, 4:49 AM
Seen: 3625 times
Last updated: 3/16/15, 8:10 AM