I installed the PDF Report Server App on my linux box.
Installed the following packages :
fontconfig
libxrender1
libxinerama1
Enabled the app in alert_actions.conf
Set the Link hostname in Email Alert Settings
The staus page shows the following error inside the blue box: Failed to load PDF Document
Running the command- sudo /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/firefox gave the following error :
firefox-i386/firefox-bin: error while loading shared libraries: /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/dep/lib/libgtk-x11-2.0.so.0: file too short
When i try to preview the pdf in Actions--> Schedule pdf delivery.., for my view (built using advanced xml), i get the following error:
An error occurred while rendering the PDF: PDF server at /services/pdfserver/renderpdf returned error: Failed to generate a report using Firefox: Failed to start: Check that all Firefox dependencies are met
Increased the firefox_timeout in the pdf_server.conf
My machine details : Linux Ubuntu02 3.5.0-30-generic #51-Ubuntu SMP Tue May 14 18:49:52 UTC 2013 i686 i686 i686 GNU/Linux
Using Splunk version 5.0.3, build 163460
Errors in python.log:
2013-06-12 17:37:41,024 +0530 INFO pdfhandler:646 - Starting PDF App Renderer Version 1.3
2013-06-12 17:37:41,024 INFO Starting PDF App Renderer Version 1.3
2013-06-12 17:37:41,035 +0530 WARNING pdfhandler:458 - body=Splunk;5.0.3;5.0.3
2013-06-12 17:37:41,035 WARNING body=Splunk;5.0.3;5.0.3
2013-06-12 17:37:41,035 +0530 WARNING pdfhandler:459 - entries=['Splunk', '5.0.3', '5.0.3']
2013-06-12 17:37:41,035 WARNING entries=['Splunk', '5.0.3', '5.0.3']
2013-06-12 17:37:41,051 +0530 INFO xvfb:45 - Started new X server. Now 1 active
2013-06-12 17:37:41,051 INFO Started new X server. Now 1 active
2013-06-12 17:37:41,051 +0530 WARNING pdfhandler:551 - Restricting Firefox to following hosts only: *:53
2013-06-12 17:37:41,051 WARNING Restricting Firefox to following hosts only: *:53
2013-06-12 17:37:41,051 +0530 INFO pdfhandler:558 - Executing /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/firefox -print http://hostname:8000/en-US/app/SplunkforCiscoIronportWSA/overview -printmode pdf -printfile /tmp/tmp8wZVOt -title Splunk Report -orientation portrait -paperwidth 216 -paperheight 279 -mode splunk -timeout 180 -windowsize 782x768 -footer_right Generated by Splunk at &D -cookie session_id_8000=317a46519a6e7254cdd5a8b6babbf4d3c306dc05
2013-06-12 17:37:41,051 INFO Executing /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/firefox -print http://hostname:8000/en-US/app/SplunkforCiscoIronportWSA/overview -printmode pdf -printfile /tmp/tmp8wZVOt -title Splunk Report -orientation portrait -paperwidth 216 -paperheight 279 -mode splunk -timeout 180 -windowsize 782x768 -footer_right Generated by Splunk at &D -cookie session_id_8000=317a46519a6e7254cdd5a8b6babbf4d3c306dc05
2013-06-12 17:37:41,057 +0530 INFO xvfb:205 - Assigned DISPLAY :5
2013-06-12 17:37:41,057 INFO Assigned DISPLAY :5
2013-06-12 17:37:41,057 +0530 INFO xvfb:115 - Starting X Server: ['/usr/bin/Xvfb', ':5', '-screen', '0', '3000x768x24', '-nolisten', 'tcp']
2013-06-12 17:37:41,057 INFO Starting X Server: ['/usr/bin/Xvfb', ':5', '-screen', '0', '3000x768x24', '-nolisten', 'tcp']
2013-06-12 17:37:41,057 +0530 INFO xvfb:116 - Starting X Server env: {'XAUTHORITY': '/opt/splunk/var/run/splunk/xvfb/xauth-5/Xauthority'}
2013-06-12 17:37:41,057 INFO Starting X Server env: {'XAUTHORITY': '/opt/splunk/var/run/splunk/xvfb/xauth-5/Xauthority'}
2013-06-12 17:37:43,061 +0530 INFO xvfb:122 - X Started
2013-06-12 17:37:43,061 INFO X Started
2013-06-12 17:37:43,131 +0530 ERROR pdfhandler:623 - Execution of Firefox for i386 failed
2013-06-12 17:37:43,131 ERROR Execution of Firefox for i386 failed
2013-06-12 17:37:43,131 +0530 ERROR pdfhandler:625 - FF STDERR: /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/firefox-bin: error while loading shared libraries: /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/dep/lib/libgtk-x11-2.0.so.0: file too short
2013-06-12 17:37:43,131 ERROR FF STDERR: /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/firefox-bin: error while loading shared libraries: /opt/splunk/etc/apps/pdfserver/bin/firefox-i386/dep/lib/libgtk-x11-2.0.so.0: file too short
2013-06-12 17:37:43,132 +0530 ERROR pdfhandler:761 - (500) Failed to generate a report using Firefox: Failed to start: Check that all Firefox dependencies are met
2013-06-12 17:37:43,132 ERROR (500) Failed to generate a report using Firefox: Failed to start: Check that all Firefox dependencies are met
2013-06-12 17:37:43,132 +0530 WARNING xvfb:132 - Stopping X Server 5
2013-06-12 17:37:43,132 WARNING Stopping X Server 5
What am i missing? Any suggestion welcome. Thankyou
... View more