On click of PDF button on report you receive error
IOError: No wkhtmltopdf executable found: “”
My environment is Ubuntu. I followed below steps to make it work
$ tar vxf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
$ sudo cp wkhtmltox/bin/wk* /usr/bin/
And you can confirm with:
$ wkhtmltopdf --version
wkhtmltopdf 0.12.3 (with patched qt)
Note normal $ sudo apt-get install wkhtmltopdf installs wkhtmltopdf 0.12.2.4 and ERPNext has requirement for wkhtmltopdf with patched Qt (version 0.12.3)
Sharing this, might be useful to others for installation. Thanks
PDF generation does not work here, no matter if with or without a letterhead… We get a nginx timeout.
We are using wkhtmltopdf 0.12.4 (with patched qt) - as recommended in
https://www.howtoforge.com/tutorial/how-to-install-erpnext-on-debian/ on Debian jessie with bench --version 4.1.0.
How could we further debug this? ERPnext log does not show anything.
“We get a nginx timeout.”
This indicates a network connectivity failure.
A log should confirm this with a traceback.
One test is that wkhtmltopdf runs on the command line.
edit: for eg Wkhtmltopdf failing - #4 by pdvyas
You give bench version, but what erpnext and frappe version?
What have you found or tried to debug your case?
Here’s are lengthy threads with what to try
Found the reason for this issue…
It is to do with file permissions. As the letterhead images are ‘by default’ put in the /private folder they seem to be inaccessible to wkhtmltopdf, resulting in the time-out.
If you move the images being used to the public folder and then try generating the pdfs it turns out fine.
Probably changing file permissions in the /private folder may work too but i have not tried this.
I find problem i use “hostname”: “
http://192.168.42.51:7005”, i change to “host_name”: “ http://192.168.42.51:7005”, and problem solve .
now looking how i can remove "View this in your browser" and “Leave this conversation:” ??
Because it’s linked to local ip and server and when we send email to customer it’s not work for them .
@rasos Make sure, that wkhtml can access the urls given in the html files. If the server can’t access it’s own IP adress it wont work hint
@epe - putting the erp domain names in /etc/hosts did the trick!