Issue with exporting reports to PDF
Posted: Fri Aug 27, 2021 12:53 pm
When trying to export a report to PDF, I get the following error page:
Failed to create PDF
Verify that your Nagios XI server can connect to the URL:
https://localhost/nagiosxi/reports/avai ... r_compat=1
If I run a curl on that url from the server, I get:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
If I replace the 'localhost' with the correct domain name, I get a time out error. I also found this in the logs:
/var/log/httpd/error_log
sh: line 1: 39622 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 37699 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 71024 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 108445 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "202$
sh: line 1: 120561 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "202$
sh: line 1: 15197 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 122731 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "202$
sh: line 1: 676 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 3689 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 3689 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021-08-27 09:53:44" --no-stop-slow-scripts 'https://localhost/nagiosxi/reports/avai ... r_compat=1' '/usr/local/nagiosxi/tmp/exportreport-username-6128ee689e61b' &>>/usr/local/nagiosxi/var/wkhtmltox.log
/usr/local/nagiosxi/var/wkhtmltox.log
/usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021-08-27 10:29:39" --no-stop-slow-scripts 'https://localhost/nagiosxi/reports/avai ... r_compat=1' '/usr/local/nagiosxi/tmp/exportreport-username-6128f6d3b30d3'
The file /usr/local/nagiosxi/tmp/exportreport-username-6128f6d3b30d3 doesn't exist.
Failed to create PDF
Verify that your Nagios XI server can connect to the URL:
https://localhost/nagiosxi/reports/avai ... r_compat=1
If I run a curl on that url from the server, I get:
curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.
If I replace the 'localhost' with the correct domain name, I get a time out error. I also found this in the logs:
/var/log/httpd/error_log
sh: line 1: 39622 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 37699 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 71024 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 108445 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "202$
sh: line 1: 120561 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "202$
sh: line 1: 15197 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 122731 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "202$
sh: line 1: 676 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 3689 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021$
sh: line 1: 3689 Segmentation fault /usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021-08-27 09:53:44" --no-stop-slow-scripts 'https://localhost/nagiosxi/reports/avai ... r_compat=1' '/usr/local/nagiosxi/tmp/exportreport-username-6128ee689e61b' &>>/usr/local/nagiosxi/var/wkhtmltox.log
/usr/local/nagiosxi/var/wkhtmltox.log
/usr/bin/wkhtmltopdf --lowquality --no-outline --footer-spacing 3 --margin-bottom 15mm --footer-font-size 9 --footer-right "Page [page] of [toPage]" --footer-left "2021-08-27 10:29:39" --no-stop-slow-scripts 'https://localhost/nagiosxi/reports/avai ... r_compat=1' '/usr/local/nagiosxi/tmp/exportreport-username-6128f6d3b30d3'
The file /usr/local/nagiosxi/tmp/exportreport-username-6128f6d3b30d3 doesn't exist.