"You will need to run whktmltopdf within a "virutal" X server" error when being executed within crontab job
See original GitHub issueI am getting an exception when my script is being executed by crontab job:
You will need to run whktmltopdf within a "virutal" X server.
Go to the link above for more information
https://github.com/JazzCore/python-pdfkit/wiki/Using-wkhtmltopdf-without-X-serverUse exit() or Ctrl-D (i.e. EOF) to exit
If I run the script manually - it works and saves html to pdf. So of course I did that magic which is written in the URL above. But it doesn’t help when script is executed within crontab (root user)
Debian 7
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
can't run wkhtmltopdf from a cronjob - Stack Overflow
The cronjob may not be pulling in the environment of the user and therefor doesn't know what $PATH actually contains. I've found I...
Read more >Since xorg 1.20, can no longer change root window from cron job
I have a cron job that every three minutes runs a shell script, that will recurse ... specially for cases like this (it...
Read more >Unable to execute a python script via crontab ... - DigitalOcean
In summary: My script works without error when manually executed, but for some reason the cron job is either not executing it, or...
Read more >8.3. Web config file — CRATE 0.19.4 documentation
Defaults are in crate_anon.crateweb.config.settings , which are then overridden as ... Overriding BROKER_URL will allow you to use multiple virtual hosts, ...
Read more >Nagios XI Change Log
Nagios XI provides network, server, and application monitoring. ... Fixed issue with Availability report rounding/data error in service averages in the data ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Some investigation:
PDFKit is calling /usr/bin/wkhtmltopdf when is being executed from CRON. When it is executed from command line it uses our shortcut /usr/local/bin/wkhtmltopdf
Should be fixed now, closing