Installation

PDF server: 404 and File does not begin with '%PDF-'

Michael
Contributor

I'm running Enterprise on a Linux (RH Ent 5) box. Just installed the PDF app per the directions ("auto" install). Then I scheduled a PDF delivery. My email said:

"An error occurred while generating a PDF of this report: Failed to generate PDF: Appserver got a 404 response while contacting the PDF server at /services/pdfserver/renderpdf - Check that the PDF Server app is installed and that reportServerURL is correct"

In the config, the URL is blank, per the instructions ("Leave blank to use a local PDF server").

Back in the System Settings, Email Settings -- I try clicking on status page (to generate a test page, I presume) -- it passes all the tests ("true, true, true..."), then opens Adobe Reader (8.2.2) with an error box of:

File does not begin with '%PDF-'

Thanks in advance!

1 Solution

rroberts
Splunk Employee
Splunk Employee

PDF server will make a HTTP call to whatever host you have listed in ‘hostname’. If that hostname doesn’t resolve (to itself, in this case), then the generic URL error is displayed. Try entering a hostname in the PDF server box.

View solution in original post

kstocks
New Member

You may be missing essential firefox components on your linux server.

(apt-get install firefox) or equiv. for your flavor of linux (this fixed this for me).

Also - is your Splunk instance running as http or https? If you are using https, you MUST use a valid SSL cert, or you'll just end up in "certificate is not valid" hell. 🙂

Gary

0 Karma

rroberts
Splunk Employee
Splunk Employee

PDF server will make a HTTP call to whatever host you have listed in ‘hostname’. If that hostname doesn’t resolve (to itself, in this case), then the generic URL error is displayed. Try entering a hostname in the PDF server box.

Hazel
Communicator

hello, could you let me know what exactly you typed in the box to fix this? How do i know what the url should be for my hostname?

0 Karma

Michael
Contributor

That was it!

I could have sworn I originally had that in there, then took it out while trouble-shooting.

Oh well, in any case, I put it back in and now it's working.

Thanks Roberts...

0 Karma

rroberts
Splunk Employee
Splunk Employee

I know you probably did this but just to check did you install Xvfb and xauth as mentioned here? http://www.splunk.com/base/Documentation/4.1.1/Installation/ConfigurePDFprintingforSplunkWeb

0 Karma

Michael
Contributor

Yes, sir!
"On Redhat/CentOS/Fedora, type: yum install Xvfb xauth"
Maybe I'll try a manual install and see what happens...

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...