<?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 How to resolve error when Splunkd intermittently crashes while streaming telemetry data on Universal Forwarder: &amp;quot;ProcessRunner: No such file or directory&amp;quot;? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470292#M3923</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I’m working on streaming telemetry data to Splunk. I use Splunk Universal Forwarder v7 x86_64 to capture and stream data to Splunk Enterprise 8.&lt;/P&gt;
&lt;P&gt;I use the &lt;CODE&gt;script://&lt;/CODE&gt; to capture data and run them at certain specified intervals. The data is being successfully streamed to the server. But, intermittently, &lt;CODE&gt;splunkd&lt;/CODE&gt; (SUF) crashes, and I see the following error in my &lt;CODE&gt;splunkd.log.&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;06-02-2020 17:12:27.975 -0700 INFO  WatchedFile - File too small to check seekcrc, probably truncated.  Will re-read entire file='/opt/splunkforwarder/var/log/splunk/btool.log'.
06-02-2020 17:12:27.993 -0700 INFO  WatchedFile - Will begin reading at offset=1182 for file='/opt/splunkforwarder/var/log/splunk/splunkd-utility.log'.
06-02-2020 17:12:56.832 -0700 INFO  ScheduledViewsReaper - Scheduled views reaper run complete. Reaped count=0 scheduled views
06-02-2020 17:30:37.696 -0700 WARN  TailReader - Could not send data to output queue (parsingQueue), retrying...
06-02-2020 17:53:37.315 -0700 ERROR ProcessRunner - Error from ProcessRunner helper process:  ERROR - Failed opening "": No such file or directory
06-02-2020 17:53:37.316 -0700 ERROR ProcessRunner - Error from ProcessRunner helper process:  terminate called after throwing an instance of 'EventLoopException'
06-02-2020 17:53:37.316 -0700 ERROR ProcessRunner - Error from ProcessRunner helper process:    what():  Main Thread: about to throw an EventLoopException: error from EventLoop poll: No such file or directory
06-02-2020 17:53:37.676 -0700 FATAL ProcessRunner - Unexpected EOF from process runner child!
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have tried to grok through Splunk answers and on Google; but, I couldn’t find much documentation/articles on what file &lt;CODE&gt;ProcessRunner&lt;/CODE&gt; was trying to open? Could someone help me or point me to the right channel to understand how I can fix this issue.&lt;/P&gt;
&lt;P&gt;Here’s my &lt;CODE&gt;inputs.conf&lt;/CODE&gt; ’s script stanzas:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-one&amp;gt;.py]
source = source-one
sourcetype = source-one
[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-two&amp;gt;.path]
source = source-two
sourcetype = source-two
interval = 60
[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-three&amp;gt;.path]
source = source-three
sourcetype = source-three
interval = 1800
[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-four&amp;gt;.path]
source = source-four
sourcetype = source-four
interval = 1800
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2020 22:31:19 GMT</pubDate>
    <dc:creator>prajnaamey</dc:creator>
    <dc:date>2020-06-05T22:31:19Z</dc:date>
    <item>
      <title>How to resolve error when Splunkd intermittently crashes while streaming telemetry data on Universal Forwarder: "ProcessRunner: No such file or directory"?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470292#M3923</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I’m working on streaming telemetry data to Splunk. I use Splunk Universal Forwarder v7 x86_64 to capture and stream data to Splunk Enterprise 8.&lt;/P&gt;
&lt;P&gt;I use the &lt;CODE&gt;script://&lt;/CODE&gt; to capture data and run them at certain specified intervals. The data is being successfully streamed to the server. But, intermittently, &lt;CODE&gt;splunkd&lt;/CODE&gt; (SUF) crashes, and I see the following error in my &lt;CODE&gt;splunkd.log.&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;06-02-2020 17:12:27.975 -0700 INFO  WatchedFile - File too small to check seekcrc, probably truncated.  Will re-read entire file='/opt/splunkforwarder/var/log/splunk/btool.log'.
06-02-2020 17:12:27.993 -0700 INFO  WatchedFile - Will begin reading at offset=1182 for file='/opt/splunkforwarder/var/log/splunk/splunkd-utility.log'.
06-02-2020 17:12:56.832 -0700 INFO  ScheduledViewsReaper - Scheduled views reaper run complete. Reaped count=0 scheduled views
06-02-2020 17:30:37.696 -0700 WARN  TailReader - Could not send data to output queue (parsingQueue), retrying...
06-02-2020 17:53:37.315 -0700 ERROR ProcessRunner - Error from ProcessRunner helper process:  ERROR - Failed opening "": No such file or directory
06-02-2020 17:53:37.316 -0700 ERROR ProcessRunner - Error from ProcessRunner helper process:  terminate called after throwing an instance of 'EventLoopException'
06-02-2020 17:53:37.316 -0700 ERROR ProcessRunner - Error from ProcessRunner helper process:    what():  Main Thread: about to throw an EventLoopException: error from EventLoop poll: No such file or directory
06-02-2020 17:53:37.676 -0700 FATAL ProcessRunner - Unexpected EOF from process runner child!
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have tried to grok through Splunk answers and on Google; but, I couldn’t find much documentation/articles on what file &lt;CODE&gt;ProcessRunner&lt;/CODE&gt; was trying to open? Could someone help me or point me to the right channel to understand how I can fix this issue.&lt;/P&gt;
&lt;P&gt;Here’s my &lt;CODE&gt;inputs.conf&lt;/CODE&gt; ’s script stanzas:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-one&amp;gt;.py]
source = source-one
sourcetype = source-one
[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-two&amp;gt;.path]
source = source-two
sourcetype = source-two
interval = 60
[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-three&amp;gt;.path]
source = source-three
sourcetype = source-three
interval = 1800
[script://$SPLUNK_HOME/bin/scripts/&amp;lt;script-four&amp;gt;.path]
source = source-four
sourcetype = source-four
interval = 1800
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 22:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470292#M3923</guid>
      <dc:creator>prajnaamey</dc:creator>
      <dc:date>2020-06-05T22:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error when Splunkd intermittently crashes while streaming telemetry data on Universal Forwarder: "ProcessRunner: No such file or directory"?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470293#M3924</link>
      <description>&lt;P&gt;Is it possible that you didn't do a proper error handling in the py scripts themselves ?&lt;BR /&gt;
Are you trying to read some data in the python scripts and they will abort not in a graceful way while not being able to read the data ?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 14:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470293#M3924</guid>
      <dc:creator>efika</dc:creator>
      <dc:date>2020-06-03T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error when Splunkd intermittently crashes while streaming telemetry data on Universal Forwarder: "ProcessRunner: No such file or directory"?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470294#M3925</link>
      <description>&lt;P&gt;Thank you for your reply, efika! &lt;/P&gt;

&lt;P&gt;My initital thought was that there was an unhandled exception in the script. I removed the  &lt;CODE&gt;.py&lt;/CODE&gt; script and was seeing the same error.&lt;/P&gt;

&lt;P&gt;I'm in the process of testing each stanza by itself to see if the culprit is one of our scripts.&lt;/P&gt;

&lt;P&gt;I observed this issue occurring in SUF 7.x and SUF 8.x. I have had the same scripts running for SUF 6.x (32-bit) and did not encounter any such error. The SUF 6.x machines have been running for months now using the same scripts.&lt;/P&gt;

&lt;P&gt;If my understanding is right - ExecProcessor runs the script stanzas, and it doesn't cause a Splunk crash if an error occurs while executing the script. I wonder what ProcessRunner is and what it's trying to do?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 19:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-resolve-error-when-Splunkd-intermittently-crashes-while/m-p/470294#M3925</guid>
      <dc:creator>prajnaamey</dc:creator>
      <dc:date>2020-06-03T19:44:29Z</dc:date>
    </item>
  </channel>
</rss>

