<?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: Stopping splunk after upgrade to 6.3.3: &amp;quot;Could not kill pid&amp;quot; in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251567#M8967</link>
    <description>&lt;P&gt;I think you might find the answer to your problem here: &lt;A href="https://answers.splunk.com/answers/40435/error-unable-to-stop-splunk-helpers.html"&gt;https://answers.splunk.com/answers/40435/error-unable-to-stop-splunk-helpers.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 19:56:22 GMT</pubDate>
    <dc:creator>emeelan_splunk</dc:creator>
    <dc:date>2017-10-19T19:56:22Z</dc:date>
    <item>
      <title>Stopping splunk after upgrade to 6.3.3: "Could not kill pid"</title>
      <link>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251563#M8963</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Regarding Splunk Universal Forwarder 6.3.3&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;OS: AIX 7100-03-03-1415&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I'm using a script to upgrade splunk forwarder on our servers. &lt;BR /&gt;
The script is run from a single server and uses rsh to do the nessesary work.&lt;/P&gt;

&lt;P&gt;In essence the script does the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#Disable boot-start
$output = `rsh $target /opt/splunkforwarder/bin/splunk disable boot-start 2&amp;gt;&amp;amp;1`;

#Stop Splunk
$output = `rsh $target /opt/splunkforwarder/bin/splunk stop 2&amp;gt;&amp;amp;1`;

#It then backs up some configuration files...

#Remove Splunk
$output = `rsh $target rm -r /opt/splunkforwarder 2&amp;gt;&amp;amp;1`;

#Extract Splunk
$output = `rsh $target "(cd /opt &amp;amp;&amp;amp; tar -xf /tmp/$base)" 2&amp;gt;&amp;amp;1`;

#Re-deploy configuration files...

#Set permissions
$output = `rsh $target chown -R splunk:staff /opt/splunkforwarder/ 2&amp;gt;&amp;amp;1`;

#Start Splunk
$output = `rsh $target /opt/splunkforwarder/bin/splunk start --accept-license 2&amp;gt;&amp;amp;1`;

#Enable boot-start
$output = `rsh $target /opt/splunkforwarder/bin/splunk enable boot-start -user splunk 2&amp;gt;&amp;amp;1`;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The script runs without problems and we get the upgraded servers to start indexing. Everything looks to be working.&lt;/P&gt;

&lt;P&gt;However, I'm having some trouble trying to stop splunk forwarder on the upgraded servers...&lt;/P&gt;

&lt;P&gt;Basically when trying to run (as root):&lt;BR /&gt;
&lt;STRONG&gt;$ /opt/splunkforwarder/bin/splunk stop&lt;/STRONG&gt;&lt;BR /&gt;
&lt;EM&gt;Stopping splunkd...&lt;BR /&gt;
Shutting down.  Please wait, as this may take a few minutes.&lt;BR /&gt;
Could not kill pid 41156748.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;A quick &lt;STRONG&gt;$ ps -ef | grep splunkd | grep -v grep&lt;/STRONG&gt; shows:&lt;BR /&gt;
    &lt;EM&gt;root 41156748  splunkd -p 8089 start&lt;BR /&gt;
    root 41680960 [splunkd pid=41156748] splunkd -p 8089 start [process-runner]&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;And just to be sure &lt;STRONG&gt;$ whoami&lt;/STRONG&gt;&lt;BR /&gt;
&lt;EM&gt;root&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Can someone please explain what's going on here, so we can fix this?&lt;/P&gt;

&lt;P&gt;Thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251563#M8963</guid>
      <dc:creator>tobb</dc:creator>
      <dc:date>2017-01-24T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping splunk after upgrade to 6.3.3: "Could not kill pid"</title>
      <link>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251564#M8964</link>
      <description>&lt;P&gt;Usually I would try to add root to the splunk group, in your case add root to staff. The question is, why are you stopping the process as root? I would atleast do sudo -u splunk -c 'the command needed'.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251564#M8964</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-01-25T11:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping splunk after upgrade to 6.3.3: "Could not kill pid"</title>
      <link>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251565#M8965</link>
      <description>&lt;P&gt;I have tried that, but with the same result. I did it as root here just to illustrate that it's most likely not a permissions-problem.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;test30:/opt/splunkforwarder/var/log/splunk&amp;gt; su splunk -c /opt/splunkforwarder/bin/splunk stop
Stopping splunkd...
Shutting down.  Please wait, as this may take a few minutes.
Could not kill pid 13238426.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would also add that the same thing happens when using the System Resource Controller directly&lt;BR /&gt;
&lt;STRONG&gt;test30:/opt/splunkforwarder/var/log/splunk&amp;gt; stopsrc -s splunkd&lt;BR /&gt;
0513-004 The Subsystem or Group, splunkd, is currently inoperative.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 11:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251565#M8965</guid>
      <dc:creator>tobb</dc:creator>
      <dc:date>2017-01-25T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping splunk after upgrade to 6.3.3: "Could not kill pid"</title>
      <link>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251566#M8966</link>
      <description>&lt;P&gt;Well, I would open a support case then to see if there are any known problems.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251566#M8966</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-01-25T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping splunk after upgrade to 6.3.3: "Could not kill pid"</title>
      <link>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251567#M8967</link>
      <description>&lt;P&gt;I think you might find the answer to your problem here: &lt;A href="https://answers.splunk.com/answers/40435/error-unable-to-stop-splunk-helpers.html"&gt;https://answers.splunk.com/answers/40435/error-unable-to-stop-splunk-helpers.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 19:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Stopping-splunk-after-upgrade-to-6-3-3-quot-Could-not-kill-pid/m-p/251567#M8967</guid>
      <dc:creator>emeelan_splunk</dc:creator>
      <dc:date>2017-10-19T19:56:22Z</dc:date>
    </item>
  </channel>
</rss>

