Page 2 of 2

Re: PDF Report Generation broken

Posted: Mon Aug 11, 2014 4:25 pm
by GldRush98
Yes, sorry. The full output is:

Code: Select all

************ ERROR: Failed to render URL 'https://[redacted]/nagiosxi/reports/availability.php?1&hideoptions=1&username=noverstreet&ticket=[valid api key]&locale=en_US' as '/usr/local/nagiosxi/tmp/scheduledreport-noverstreet-1407791975-page.pdf' ************
I verified wkhtmltopdf is working properly by doing a "wkhtmltopdf http://www.google.com /tmp/google.pdf" and that did correctly generate a pdf file.

Here's that report.txt file from the curl command from above... dunno if that'll be helpful or not.

Re: PDF Report Generation broken

Posted: Tue Aug 12, 2014 4:07 pm
by abrist
Can we move this to a ticket? I think we will need to set up a remote to continue troubleshooting directly on the server. Please send an email from a registered address to: [email protected]

Re: PDF Report Generation broken

Posted: Fri Aug 15, 2014 12:26 pm
by GldRush98
I just wanted to update that I got this figured out today.
After doing the remote session yesterday, we determined that I was missing the openssl 32bit libs, and this was breaking wkhtmltopdf 32 bit from retrieving the https url.
I tried installing but ran in to a transaction error. Basically it was because my x64 openssl wasn't up to date.
So to fix it I had to:
yum update openssl
yum install openssl.i686

Now everything is working! 32 bit wkhtmltopdf is happy.

Re: PDF Report Generation broken

Posted: Fri Aug 15, 2014 12:35 pm
by slansing
Excellent, thank you for letting us know.