<?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 Python Error in restarting Splunk in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407639#M7036</link>
    <description>&lt;P&gt;upon restarting splunk forwarder, we are encountering the error below..&lt;/P&gt;

&lt;P&gt;python: can't open file '/opt/splunkforwarder/lib/python2.7/site-packages/splunk/clilib/cli.py': [Errno 2] No such file or directory&lt;/P&gt;

&lt;P&gt;what could be the reason and fix for this?&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 03:35:37 GMT</pubDate>
    <dc:creator>teddyidc1101</dc:creator>
    <dc:date>2018-05-23T03:35:37Z</dc:date>
    <item>
      <title>Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407639#M7036</link>
      <description>&lt;P&gt;upon restarting splunk forwarder, we are encountering the error below..&lt;/P&gt;

&lt;P&gt;python: can't open file '/opt/splunkforwarder/lib/python2.7/site-packages/splunk/clilib/cli.py': [Errno 2] No such file or directory&lt;/P&gt;

&lt;P&gt;what could be the reason and fix for this?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 03:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407639#M7036</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-23T03:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407640#M7037</link>
      <description>&lt;P&gt;did you use the &lt;CODE&gt;/opt/splunkforwarder/bin/splunk start&lt;/CODE&gt; command? &lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 03:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407640#M7037</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-23T03:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407641#M7038</link>
      <description>&lt;P&gt;yes we did but still getting the error.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 06:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407641#M7038</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-23T06:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407642#M7039</link>
      <description>&lt;P&gt;Hey, try running this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;/opt/splunkforwarder/bin/splunk validate files&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It will check your install for missing files, and give you a hint what is wrong. &lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 07:38:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407642#M7039</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-23T07:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407643#M7040</link>
      <description>&lt;P&gt;I triend running the command and its saying that &lt;BR /&gt;
Result:  Validating installed files against hashes from '/opt/splunkforwarder/splunkforwarder-7.0.0-c8a78efdd40f-linux-2.6-x86_64-manifest'&lt;BR /&gt;
        All installed files intact.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 00:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407643#M7040</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-28T00:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407644#M7041</link>
      <description>&lt;P&gt;Wait a second, you get this error &lt;CODE&gt;/opt/splunkforwarder/lib/python2.7/site-packages/splunk/clilib/cli.py': [Errno 2] No such file or directory&lt;/CODE&gt; ... but this is a universal forwarder ?! &lt;BR /&gt;
Splunk universal forwarder does not ship Python, the only Splunk software that ships Python is the full enterprise install.&lt;/P&gt;

&lt;P&gt;How did you install this version of Splunk; What package did you use and what command to install it?&lt;/P&gt;

&lt;P&gt;cheer, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 00:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407644#M7041</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-28T00:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407645#M7042</link>
      <description>&lt;P&gt;By the way, here are the items we looked into to check...&lt;STRONG&gt;did we miss anything&lt;/STRONG&gt;?&lt;BR /&gt;
- Checked the logs and confirmed that the events stopped coming in at 5/21 around 12:30MN&lt;BR /&gt;
- Check on crash logs…none found&lt;BR /&gt;
- Checked forwarder management, the server was not a client&lt;BR /&gt;
- Executed Splunk start forwarder instead of Splunk restart - failed&lt;BR /&gt;
- Obtained the following logs in /opt/splunkforwarder/var/log/splunk of the server : python.log – not found for splunkforwarder, splunkd-utility.log, splunkd.log&lt;BR /&gt;
- When we checked the actual file the restart is looking for, &lt;STRONG&gt;file was not found,&lt;/STRONG&gt; as indicated in the error does not exist  - &lt;BR /&gt;
&lt;STRONG&gt;python: can't open file '/opt/splunkforwarder/lib/python2.7/site-packages/splunk/clilib/cli.py': [Errno 2] No such file or directory&lt;/STRONG&gt;&lt;BR /&gt;
**Does this file really exist? &lt;/P&gt;

&lt;P&gt;What is the best way to revive the UF.** &lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 00:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407645#M7042</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-28T00:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407646#M7043</link>
      <description>&lt;P&gt;Did you see my comment I posted just one minute before you posted your comment?&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 01:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407646#M7043</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-28T01:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407647#M7044</link>
      <description>&lt;P&gt;yeah i did...did we miss any steps with the one listed above?&lt;BR /&gt;
the client installed the UF in their  servers. we dont have access on them. but upon checking via splunk search, UF version is 7.0. &lt;/P&gt;

&lt;P&gt;checking the UF , we dont have the Python in there but what the team did was linked python and python 2 to the  /opt/splunkforwarder/bin. Is this ok?&lt;/P&gt;

&lt;P&gt;upon checking in server via command "whereis python" , it listed /opt/splunkforwarder/bin/python. &lt;BR /&gt;
is this ok?&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 03:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407647#M7044</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-28T03:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407648#M7045</link>
      <description>&lt;P&gt;you did what??? &lt;BR /&gt;
Please revert those changes. The universal forwarder does not need Python by default. It only needs Python if you want to run a python script using the universal forwarder.&lt;/P&gt;

&lt;P&gt;Still this is really weird ..... &lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 04:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407648#M7045</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-28T04:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407649#M7046</link>
      <description>&lt;P&gt;ok thanks...the linking happend 5/10 and UF stopped in 5/21, so i am not sure if they are connected at all...if we remove the link, does it impact the start/restart of the splunk instance? will it restart successfully? is reinstalling the forwarder an option here? &lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 05:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407649#M7046</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-28T05:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407650#M7047</link>
      <description>&lt;P&gt;Yeah, that's sounds rather strange... If I were you, I'd wipe the complete /opt/splunkforwarder directory and reinstall the forwarder from scratch. Be aware, however, that this might lead to duplicate events for some time.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 07:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407650#M7047</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-28T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python Error in restarting Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407651#M7048</link>
      <description>&lt;P&gt;ok thanks @xpac...i'm already considering it as i'm running out of resources to look into &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks so much for sharing you expertise!&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 12:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-Error-in-restarting-Splunk/m-p/407651#M7048</guid>
      <dc:creator>teddyidc1101</dc:creator>
      <dc:date>2018-05-28T12:21:52Z</dc:date>
    </item>
  </channel>
</rss>

