<?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: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603) in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519229#M1344</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/201814"&gt;@tyler_bailey&lt;/a&gt;&amp;nbsp;unfortunately, it still didn't work. after applying the setting&amp;nbsp;&lt;SPAN&gt;SplunkPy.&lt;/SPAN&gt;&lt;SPAN&gt;splunk-search.timeout to 15 and saving the config, I attempted to re-run the automation but got the same result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do I need to restart the XSOAR instance or do anything else to make it work ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please share more troubleshooting steps ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 13:09:25 GMT</pubDate>
    <dc:creator>Retired Member</dc:creator>
    <dc:date>2022-10-26T13:09:25Z</dc:date>
    <item>
      <title>Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519206#M1339</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a playbook task that sends a query to run on Splunk using the SplunkPy but it keeps failing and returning the following error&lt;BR /&gt;#22:&amp;nbsp;Splunk Search Query&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Command&lt;/STRONG&gt;:&amp;nbsp;&lt;BR /&gt;!splunk-search query="index= test blah blah" earliest_time="1666679348" latest_time="1666852148" batch_limit="25000" update_context="true" interval_in_seconds="30"&lt;BR /&gt;&lt;STRONG&gt;Reason&lt;/STRONG&gt;&lt;BR /&gt;Error from SplunkPy is : Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I checked the corresponding query on Splunk's end and noticed it took 11 minutes to run.&amp;nbsp;Following that I lookedup the&amp;nbsp;&lt;A href="https://xsoar.pan.dev/docs/reference/integrations/splunk-py" target="_blank"&gt;https://xsoar.pan.dev/docs/reference/integrations/splunk-py&lt;/A&gt;&amp;nbsp;doc page to find out timeout setting on the Splunk instance in XSOAR and the only one I could find was the enrichment timeout, the default for which was 5 minutes.&amp;nbsp;So after changed the setting to 15minutes, the task splunk-search(SplunkPy) still kept failing due to timeout. I am suspecting I am probably changing timeout setting at the wrong place. Since the suggestion in the error message is to change timeout on automation I checked the automation splunk-search(SplunkPy) but couldn't find the timeout setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please assist with this ? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:00:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519206#M1339</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2022-10-26T10:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519220#M1340</link>
      <description>&lt;P&gt;I believe the timeout value that you need to set is going to be a Server Configuration. The first configuration option under the Integrations section in the &lt;A href="https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-9/cortex-xsoar-admin/list-of-server-configurations/modify-server-configurations#idf7646bb3-857b-4aad-ba04-ecb40ba29e28_id0a02aba3-4930-4f61-84cc-a5a75cbce2fd" target="_self"&gt;docs&lt;/A&gt; is "&amp;lt;integration_name&amp;gt;.&amp;lt;command_name&amp;gt;.timeout". So for the command that you are running you will need to set a Server Configuration with a key of "SplunkPy.&lt;SPAN&gt;splunk-search.timeout" and a value of 15 (assuming you want the timeout to be 15 minutes).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:27:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519220#M1340</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-10-26T12:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519223#M1341</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/201814"&gt;@tyler_bailey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so as an example should the parameter be this assuming the integration name is&amp;nbsp;&amp;nbsp;SplunkPy_ABC and value 15?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SplunkPy_ABC.splunk-search.timeout&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:44:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519223#M1341</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2022-10-26T12:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519225#M1342</link>
      <description>&lt;P&gt;The parameter should be "&lt;SPAN&gt;"SplunkPy.&lt;/SPAN&gt;&lt;SPAN&gt;splunk-search.timeout". The example provided by the docs says that the first portion should be the "integration name". In your example, "SplunkPy_ABC" would be the instance name which unfortunately won't work. This also means that this timeout value will be used for ALL instances of the SplunkPy integration on the XSOAR server that you configure this on. I am not aware of an option to configure the timeout for a specific instance of an integration.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:47:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519225#M1342</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-10-26T12:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519226#M1343</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/201814"&gt;@tyler_bailey&lt;/a&gt;&amp;nbsp;for clarifying that. I have applied that config and testing now. Will let you know how it goes.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 12:54:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519226#M1343</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2022-10-26T12:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519229#M1344</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/201814"&gt;@tyler_bailey&lt;/a&gt;&amp;nbsp;unfortunately, it still didn't work. after applying the setting&amp;nbsp;&lt;SPAN&gt;SplunkPy.&lt;/SPAN&gt;&lt;SPAN&gt;splunk-search.timeout to 15 and saving the config, I attempted to re-run the automation but got the same result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do I need to restart the XSOAR instance or do anything else to make it work ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please share more troubleshooting steps ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:09:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519229#M1344</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2022-10-26T13:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519231#M1345</link>
      <description>&lt;P&gt;I just tested and I did not need to restart the service. If the server is configured for debug logs then you can check the log file at /var/log/demisto/server.log (or download the log bundle) and search for the SplunkPy command. It should indicate what the timeout is for the command in the logs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log from my lab:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-10-26 09:20:51.7649 debug Running SplunkPy_instance_1_SplunkPy_splunk-search. Timeout: 55m0s (source: /builds/GOPATH/src/code.pan.run/xsoar/server/services/automation/dockercoderunner.go:336)&lt;/LI-CODE&gt;
&lt;P&gt;Server Configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tyler_bailey_0-1666790553575.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44889i58D4A219F461B9B3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="tyler_bailey_0-1666790553575.png" alt="tyler_bailey_0-1666790553575.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:23:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519231#M1345</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-10-26T13:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519232#M1346</link>
      <description>&lt;P&gt;This is what I got which indicates its set to 15 minutes and the Splunk search took 12 mins.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-10-26 13:21:25.5782 debug Waiting for runner request for unnested script [SplunkPy_AWS_ES_SplunkPy_splunk-search], with script timeout [15m0s] (source: /builds/GOPATH/src/code.pan.run/xsoar/server/services/automation/dockercoderunner.go:417)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; Any ideas why still the automation might have failed ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:35:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519232#M1346</guid>
      <dc:creator>Retired Member</dc:creator>
      <dc:date>2022-10-26T13:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script failed to run: Timeout Error: Docker code script failed due to timeout, consider changing timeout value for this automation, (2604) (2603)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519233#M1347</link>
      <description>&lt;P&gt;If the splunk search is taking an excessive amount of time, then I would assume that it is returning quite a few records that XSOAR will then need to process. It could be that there is not enough time left after the Splunk search returns for XSOAR to finish running the automation. Can you try bumping the timeout up to 25 minutes?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:42:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/script-failed-to-run-timeout-error-docker-code-script-failed-due/m-p/519233#M1347</guid>
      <dc:creator>tyler_bailey</dc:creator>
      <dc:date>2022-10-26T13:42:40Z</dc:date>
    </item>
  </channel>
</rss>

