Getting Data In

pdfserver error

Path Finder

Has anyone seen this before? PDF server status page generates a pdf as expected and it seems to work, the error below is when used with an email alert.

ERROR An error occurred while generating a PDF of this report: Failed to contact appserver at http://splunkserver:8000/en-US/report/: HTTP Error 504: Gateway Time-out

I'm running splunk 4.3.2.

Tags (2)
0 Karma
1 Solution

Path Finder

So, I got the pdfserver working again and the solution for my system was to disable ipv6.

View solution in original post

Path Finder

tuxford, where did you disable the ipv6 ?

0 Karma

Path Finder

So, I got the pdfserver working again and the solution for my system was to disable ipv6.

View solution in original post

Builder

You can try this if it's timing out:

Step 1. Stop Splunk Splunkweb
Step 2. Make a copy of init.py, under path $SPLUNK_HOME/lib/python2.7/site-packages/splunk/rest
Step 3. Edit path $SPLUNK_HOME/lib/python2.7/site-packages/splunk/rest/__init__.py
Step 4. Make the change on line 28 - up the timeout to 60 seconds.

lines 26 - 28
__init__.py
#number of seconds to wait for splunkd HTTP connection to complete before
#raising a socket.timeout exception
SPLUNKD_CONNECTION_TIMEOUT = 60

Step 5. Restart Splunkweb 

Path Finder

The change did not help, still seeing the same error.

Path Finder

The last time pdfserver was working was on splunk 4.3.1 on 1th of may on this server. There has been some os updates since then that might be the cause of the failures now, and also splunk was updated yesterday to 4.3.2. I've now tested with fresh installations of splunk 4.3.1/4.3.2 and the same error on both on this server, so the version of splunk is probably not the cause. Currently running Red Hat Enterprise Linux Server release 6.2 (Santiago) with all the newest updates.

0 Karma

Motivator

sorry i have no other ideas...

0 Karma

Path Finder

Yes, also http://splunkserver:8000/en-US/debug/pdf gives me a pdf in the blue box.

0 Karma

Motivator

I presume the url in the first error http://splunkserver:8000/en-US/report/ is ok too?

0 Karma

Path Finder

This XML file does not appear to have any style information associated with it. The document tree is shown below.



Traceback (most recent call last): File "/ssd/splunk/bin/rest_handler.py", line 84, in print splunk.rest.dispatch(**params) File "/ssd/splunk/lib/python2.7/site-packages/splunk/rest/init.py", line 137, in dispatch method = getattr(classInstance, 'handle_%s' % httpVerb) AttributeError: 'RenderPDF' object has no attribute 'handle_GET'


0 Karma

Motivator

Are you able to access this link:
https://127.0.0.1:8089/services/pdfserver/renderpdf

0 Karma

Path Finder

It's local.

0 Karma

Motivator

is the pdf server remote or local?

0 Karma