KB Article #175866
Error running wkhtmltopdf when generating PDF reports in Analytics
Problem
When attempting to generate a PDF Report, Analytics shows an error with wkhtmltopdf similar to the following:
ERROR 01/Jan/2014:00:00:00.000 [10000000] Error executing: /opt/Vordel/analytics/posix/bin/generatepdf --quiet --print-media-type --orientation landscape --javascript-delay 30000 --username admin --password changeme http://localhost:8040/?id=Id-0001000000000000-0000000060000000-2&print=true&level=0&from=today&to=now /opt/reports/systems-1day-20140101.pdf
ERROR 14/Mar/2014:08:40:19.709 [10000000] Error stream: /opt/Vordel/analytics/platform/bin/wkhtmltopdf/wkhtmltopdf: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
Resolution
Analytics uses the Webkit HTML-to-PDF (wkhtmltopdf) program to generate PDFs of the reports generated by Analytics by calling the generatepdf shell script which uses the bundled copy of wkhtmltopdf.
On certain systems that are installed with the fewest packages possible, some of the packages that wkhtmltopdf depends on may not be installed. The easiest way to gather all of these dependencies is via the command: yum groupinstall "X window system"
For those attempting to add as few packages as possible, the following list appears to be the minimum requirements for a typical minimal install: yum install fontconfig freetype libICE libjpeg libpng libpng12 libSM libX11 libXau libXdmcp libXext libXrender
For Analytics running in container you can generate the report in CSV format as an alternative. However, PDF report generation issue in container based analytics is on the Roadmap to fix in the future release.