<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PDF Server Timed out while waiting for a response in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78160#M181609</link>
    <description>&lt;P&gt;Yes, actually. I opened a case with splunk support and Rebecca had me change another timeout variable.&lt;/P&gt;

&lt;P&gt;Edit this file: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/rest/__init__.py&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And change :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SPLUNKD_CONNECTION_TIMEOUT&lt;/CODE&gt; from 30 to 300.&lt;/P&gt;

&lt;P&gt;I still get the same timeout error during the PDF Server test page, but generating PDF reports like normal from a dashboard works just fine, which is all I need.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2012 14:38:00 GMT</pubDate>
    <dc:creator>mrenfr0</dc:creator>
    <dc:date>2012-03-13T14:38:00Z</dc:date>
    <item>
      <title>PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78158#M181607</link>
      <description>&lt;P&gt;I'm getting the error "Timed out while waiting for a response" when attempting to generate the test preview on the PDF Server App on Splunk 4.3. I'm baffled as to why this is the case, because, according to python.log, the pdf generation is successful.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2012-02-24 11:26:51,316 DEBUG cli_common:226 - Preloading from '/opt/splunk/var/run/splunk/merged/server.conf'.&lt;BR /&gt;
2012-02-24 11:26:51,316 DEBUG Preloading from '/opt/splunk/var/run/splunk/merged/server.conf'.&lt;BR /&gt;
2012-02-24 11:26:51,316 DEBUG   cli_common:226 - Preloading from '/opt/splunk/var/run/splunk/merged/web.conf'.&lt;BR /&gt;
2012-02-24 11:26:51,316 DEBUG Preloading from '/opt/splunk/var/run/splunk/merged/web.conf'.&lt;BR /&gt;
2012-02-24 11:26:51,429 DEBUG   cli_common:229 - Running btool for 'pdf_server.conf'.&lt;BR /&gt;
2012-02-24 11:26:51,429 DEBUG Running btool for 'pdf_server.conf'.&lt;BR /&gt;
2012-02-24 11:26:51,628 INFO    pdfhandler:646 - Starting PDF App Renderer Version 1.3&lt;BR /&gt;
2012-02-24 11:26:51,628 INFO Starting PDF App Renderer Version 1.3&lt;BR /&gt;
2012-02-24 11:26:51,653 WARNING pdfhandler:458 - body=Splunk;4.3;4.3&lt;BR /&gt;
2012-02-24 11:26:51,653 WARNING body=Splunk;4.3;4.3&lt;BR /&gt;
2012-02-24 11:26:51,653 WARNING pdfhandler:459 - entries=['Splunk', '4.3', '4.3']&lt;BR /&gt;
2012-02-24 11:26:51,653 WARNING entries=['Splunk', '4.3', '4.3']&lt;BR /&gt;
2012-02-24 11:26:51,659 INFO    xvfb:45 - Started new X server. Now 1 active&lt;BR /&gt;
2012-02-24 11:26:51,659 INFO Started new X server. Now 1 active&lt;BR /&gt;
2012-02-24 11:26:51,659 WARNING pdfhandler:551 - Restricting Firefox to following hosts only: *:53 127.0.0.1&lt;BR /&gt;
2012-02-24 11:26:51,659 WARNING Restricting Firefox to following hosts only: *:53 127.0.0.1&lt;BR /&gt;
2012-02-24 11:26:51,659 INFO    pdfhandler:558 - Executing /opt/shared/etc/apps/pdfserver/bin/firefox-x86_64/firefox -print &lt;A href="http://127.0.0.1:8000/debug/pdf_echo" target="_blank"&gt;http://127.0.0.1:8000/debug/pdf_echo&lt;/A&gt; -printmode pdf -printfile /tmp/tmpIcXXwU -title &lt;A href="http://127.0.0.1:8000/debug/pdf_echo" target="_blank"&gt;http://127.0.0.1:8000/debug/pdf_echo&lt;/A&gt; -orientation portrait -paperwidth 216 -paperheight 279 -mode default -timeout 800 -windowsize 782x768 -cookie session_id_8000=8563e316a641141c2c0e630d599a0777b7e31e41&lt;BR /&gt;
2012-02-24 11:26:51,659 INFO Executing /opt/shared/etc/apps/pdfserver/bin/firefox-x86_64/firefox -print &lt;A href="http://127.0.0.1:8000/debug/pdf_echo" target="_blank"&gt;http://127.0.0.1:8000/debug/pdf_echo&lt;/A&gt; -printmode pdf -printfile /tmp/tmpIcXXwU -title &lt;A href="http://127.0.0.1:8000/debug/pdf_echo" target="_blank"&gt;http://127.0.0.1:8000/debug/pdf_echo&lt;/A&gt; -orientation portrait -paperwidth 216 -paperheight 279 -mode default -timeout 800 -windowsize 782x768 -cookie session_id_8000=8563e316a641141c2c0e630d599a0777b7e31e41&lt;BR /&gt;
2012-02-24 11:26:51,665 INFO    xvfb:205 - Assigned DISPLAY :5&lt;BR /&gt;
2012-02-24 11:26:51,665 INFO Assigned DISPLAY :5&lt;BR /&gt;
2012-02-24 11:26:51,666 INFO    xvfb:115 - Starting X Server: ['/usr/bin/Xvfb', ':5', '-screen', '0', '3000x768x24', '-nolisten', 'tcp']&lt;BR /&gt;
2012-02-24 11:26:51,666 INFO Starting X Server: ['/usr/bin/Xvfb', ':5', '-screen', '0', '3000x768x24', '-nolisten', 'tcp']&lt;BR /&gt;
2012-02-24 11:26:51,666 INFO    xvfb:116 - Starting X Server env: {'XAUTHORITY': '/opt/splunk/var/run/splunk/xvfb/xauth-5/Xauthority'}&lt;BR /&gt;
2012-02-24 11:26:51,666 INFO Starting X Server env: {'XAUTHORITY': '/opt/splunk/var/run/splunk/xvfb/xauth-5/Xauthority'}&lt;BR /&gt;
2012-02-24 11:26:53,669 INFO    xvfb:122 - X Started&lt;BR /&gt;
2012-02-24 11:26:53,669 INFO X Started&lt;BR /&gt;
2012-02-24 11:27:12,751 INFO    pdfhandler:628 - Generated pdf file.  bytes=8802 time=19.08&lt;BR /&gt;
2012-02-24 11:27:12,751 INFO Generated pdf file.  bytes=8802 time=19.08&lt;BR /&gt;
2012-02-24 11:27:12,761 DEBUG   pdfhandler:746 - statuslog: ['startup', 'delayedshow', 'settings', 'print', 'success']&lt;BR /&gt;
2012-02-24 11:27:12,761 DEBUG statuslog: ['startup', 'delayedshow', 'settings', 'print', 'success']&lt;BR /&gt;
2012-02-24 11:27:12,761 WARNING xvfb:132 - Stopping X Server 5&lt;BR /&gt;
2012-02-24 11:27:12,761 WARNING Stopping X Server 5&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The only thing unusual about my setup is that the search heads are pooled. I've attempted to change the &lt;CODE&gt;firefox_timeout&lt;/CODE&gt; variable in pdf_server.conf but that doesn't seem to have changed anything. I've also tried adding the suggested settings:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[settings]&lt;BR /&gt;
&lt;CODE&gt;screenshot_enabled&lt;/CODE&gt; = True&lt;BR /&gt;
&lt;CODE&gt;restrict_to_splunkweb&lt;/CODE&gt; = False&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I'm still getting the same result.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78158#M181607</guid>
      <dc:creator>mrenfr0</dc:creator>
      <dc:date>2020-09-28T11:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78159#M181608</link>
      <description>&lt;P&gt;I have the same issue, were you able to resolve it?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 16:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78159#M181608</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2012-03-12T16:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78160#M181609</link>
      <description>&lt;P&gt;Yes, actually. I opened a case with splunk support and Rebecca had me change another timeout variable.&lt;/P&gt;

&lt;P&gt;Edit this file: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/rest/__init__.py&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And change :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;SPLUNKD_CONNECTION_TIMEOUT&lt;/CODE&gt; from 30 to 300.&lt;/P&gt;

&lt;P&gt;I still get the same timeout error during the PDF Server test page, but generating PDF reports like normal from a dashboard works just fine, which is all I need.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2012 14:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78160#M181609</guid>
      <dc:creator>mrenfr0</dc:creator>
      <dc:date>2012-03-13T14:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78161#M181610</link>
      <description>&lt;P&gt;Thanks much, will try it.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 09:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78161#M181610</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2012-03-16T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78162#M181611</link>
      <description>&lt;P&gt;It can weird but it's not working for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I upgrade search heads to 4.3.1, remote pdf server is also on 4.3.1 but...&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 11:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78162#M181611</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2012-03-16T11:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78163#M181612</link>
      <description>&lt;P&gt;And another weird thing is everything works good for old search heads 4.2.x&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 11:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78163#M181612</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2012-03-16T11:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78164#M181613</link>
      <description>&lt;P&gt;We are aware of some issues successfully rendering a PDF with PDF Server.  File a case with customer support and we should be able to help you through then.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2012 16:55:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78164#M181613</guid>
      <dc:creator>melting</dc:creator>
      <dc:date>2012-03-16T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Server Timed out while waiting for a response</title>
      <link>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78165#M181614</link>
      <description>&lt;P&gt;Just to add we got the PDF server status page working by completing the above and then updating the timeout in:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/debug.py&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;line 436:&lt;/EM&gt; timeout = 20&lt;/P&gt;

&lt;P&gt;You can check in the splunkd_access.log how long the "POST /services/pdfserver/renderpdf HTTP/1.1" requests take and pick a more suitable timeout for your environment.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 16:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/PDF-Server-Timed-out-while-waiting-for-a-response/m-p/78165#M181614</guid>
      <dc:creator>stevenwr</dc:creator>
      <dc:date>2012-04-02T16:22:02Z</dc:date>
    </item>
  </channel>
</rss>

