Splunk Search

Generate PDF from a dashbord throws '[Errno 2] No such file or directory' exception error for graph panels

madcowchow
New Member

Hi,

I have a dashboard panel that contains graphs (column), when I click on 'Generate PDF', it throws out the error.

Interesting is when I edit the visualization, and change the view from Column to Table, then the 'Generate PDF' works without problems.

wazimu# tail -n3 python.log

2012-12-18 15:02:21,269 +0300 INFO pdfgen_endpoint:308 - pdf time-of-report=1355832141.27

2012-12-18 15:02:21,508 +0300 ERROR pdfgen_endpoint:173 - Exception raised while trying to prepare "TEST" for rendering to PDF. [Errno 2] No such file or directory

2012-12-18 15:02:21,509 +0300 ERROR pdfgen_endpoint:179 - No views prepared without exceptions. Bailing out of PDF render.

Please help in fixing the PDF in rending graphs. Thanks.

0 Karma

madcowchow
New Member

Hi sorry for the late reply. Im running Splunk version 5.0.1, build 143156 on FreeBSD 8.0-RELEASE (i386). Link hostname contains the correct DNS entry, resolvable from the internet + local machine.

Problem still persists...

0 Karma

rsimmons
Splunk Employee
Splunk Employee

Normally when you see this error it means whichever hostname they put in for the link hostname, it wasn't resolvable. Check for the following:

  1. a typo under Manager » System settings » Email alert settings » Link hostname

  2. an issue with the dns setup not being set up properly on this machine that the app is installed on.

0 Karma

madcowchow
New Member

Nah, DNS seems to be correctly setup, problem still there. Thanks.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

Yup, I understand the differences. I was just pointing out that I think the original question is about integrated PDF generation, and your answer is about the PDF Report Server app. I noticed that the person who accepted your answer was not one of the people who asked the question, so I think there's still a possibility we haven't answered the original posting, unless it's the OS issue that jlaw pointed out.

0 Karma

rsimmons
Splunk Employee
Splunk Employee

This is pertaining to the PDF generation not completing. If this is simple XML report than the Integrated PDF is fine however, if this is an advance XML report than the PDF App is required on Linux.

0 Karma

ChrisG
Splunk Employee
Splunk Employee

This comment pertains to the PDF Report Server App, correct? Is the question about the app, or integrated PDF generation in Splunk 5?

jlaw
Splunk Employee
Splunk Employee

Which OS are you using? Integrated PDF Generation is not supported on as many platforms as Splunk in general (for example, AIX). Here are the system requirements for Integrated PDF Generation on Splunk 5.0:

http://docs.splunk.com/Documentation/Splunk/latest/Installation/UpgradePDFprintingforSplunkWeb#Syste...

Edited to add:

I think you're running into a known issue that got fixed for 5.0.2 (http://docs.splunk.com/Documentation/Splunk/5.0/ReleaseNotes/KnownIssues#Integrated_PDF_generation_i... ).

It's SPL-56049. On nonsupported platforms, Splunk isn't supposed to try using integrated PDF gen. (Looks like FreeBSD 8.0 isn't supported, just 6.1 & 6.2. The requirement here might be node.js, or it might be something else, I'm not sure.)

Since you're using Linux (madchowchow), you should be able to use the PDF Report Server app from Splunkbase. Because of SPL-56049, though, I don't think Splunk will call Report Server unless you have Flash or Advanced XML (both of which are not supported in integrated PDF gen). This is not a recommendation to convert your dashboards into Flash or Advanced XML! 🙂 But I think you'll have to upgrade to 5.0.2 to get the bugfix that makes Splunk call the Report Server app on nonsupported platforms.

dieusplunk
Engager

The same problem....
(splunk 5.0.1)

0 Karma

ekristen
New Member

I am having the same issue, anyone have a clue as to what might be causing this?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...