<?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: Couldn't able to perform any commands in Deployment Server in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545960#M154741</link>
    <description>&lt;P&gt;The output is pointing out to /opt/splunk.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 06:43:02 GMT</pubDate>
    <dc:creator>anandhalagaras1</dc:creator>
    <dc:date>2021-03-30T06:43:02Z</dc:date>
    <item>
      <title>Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545798#M154686</link>
      <description>&lt;P class="lia-align-left"&gt;Hi Team,&lt;/P&gt;&lt;P class="lia-align-left"&gt;We have recently upgraded our Deployment Master server from 7.3.1 to 8.1.2 version. The upgrade seems to be success whereas if i perform any of the commands below I am getting an error. Refer below for more information.&lt;/P&gt;&lt;P class="lia-align-left"&gt;Commands:&lt;/P&gt;&lt;P class="lia-align-left"&gt;splunk restart&lt;/P&gt;&lt;P class="lia-align-left"&gt;splunk start&lt;/P&gt;&lt;P class="lia-align-left"&gt;splunk stop&lt;/P&gt;&lt;P class="lia-align-left"&gt;splunk reload deploy-server&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Errors:&lt;/P&gt;&lt;P&gt;[splunk@servername bin]$ splunk reload deploy-server&lt;BR /&gt;Error processing line 1 of /opt/splunk/lib/python3.7/site-packages/zc.lockfile-2.0-py3.7-nspkg.pth:&lt;/P&gt;&lt;P&gt;Fatal Python error: initsite: Failed to import the site module&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site.py", line 168, in addpackage&lt;BR /&gt;exec(line)&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/opt/splunk/lib/python3.7/importlib/util.py", line 14, in &amp;lt;module&amp;gt;&lt;BR /&gt;from contextlib import contextmanager&lt;BR /&gt;File "/opt/splunk/lib/python3.7/contextlib.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt;from collections import deque&lt;BR /&gt;File "/opt/splunk/lib/python3.7/collections/__init__.py", line 27, in &amp;lt;module&amp;gt;&lt;BR /&gt;from reprlib import recursive_repr as _recursive_repr&lt;BR /&gt;File "/opt/splunk/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;raise ImportError('This package should not be accessible on Python 3. '&lt;BR /&gt;ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site.py", line 579, in &amp;lt;module&amp;gt;&lt;BR /&gt;main()&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site.py", line 566, in main&lt;BR /&gt;known_paths = addsitepackages(known_paths)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site.py", line 349, in addsitepackages&lt;BR /&gt;addsitedir(sitedir, known_paths)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site.py", line 207, in addsitedir&lt;BR /&gt;addpackage(sitedir, name, known_paths)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site.py", line 178, in addpackage&lt;BR /&gt;import traceback&lt;BR /&gt;File "/opt/splunk/lib/python3.7/traceback.py", line 3, in &amp;lt;module&amp;gt;&lt;BR /&gt;import collections&lt;BR /&gt;File "/opt/splunk/lib/python3.7/collections/__init__.py", line 27, in &amp;lt;module&amp;gt;&lt;BR /&gt;from reprlib import recursive_repr as _recursive_repr&lt;BR /&gt;File "/opt/splunk/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;raise ImportError('This package should not be accessible on Python 3. '&lt;BR /&gt;ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So kindly help to check and let me know how to resolve the issue. But our Deployment server has been upgraded successfully to 8.1.2 but couldn't able to perform any commands due to this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas if we ran the command with (./) as prefix then i can able to execute all commands:&lt;/P&gt;&lt;P class="lia-align-left"&gt;./splunk restart&lt;/P&gt;&lt;P class="lia-align-left"&gt;./splunk start&lt;/P&gt;&lt;P class="lia-align-left"&gt;./splunk stop&lt;/P&gt;&lt;P class="lia-align-left"&gt;./splunk reload deploy-server&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;So kindly help me to fix this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 05:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545798#M154686</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-03-29T05:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545822#M154695</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This sounds like you have several splunk installation on your server and another installation has in your path instead of that in which directory you are.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 06:42:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545822#M154695</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-03-29T06:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545823#M154696</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank for your reply. I have just checked in my /opt directory and&amp;nbsp; i can see two folders.&lt;/P&gt;&lt;P&gt;splunk&amp;nbsp;&lt;/P&gt;&lt;P&gt;splunkforwarder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if i remove Splunkforwarder will the issue be sorted out. Kindly guide me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 07:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545823#M154696</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-03-29T07:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545828#M154699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207926"&gt;@anandhalagaras1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes remove the Splunkforwarder package and keep only the Splunk package.&lt;/P&gt;&lt;P&gt;In Linux, any Splunk command should run&lt;SPAN&gt;&amp;nbsp;with (./) as a prefix. Whereas in windows you can run the Splunk commands without&amp;nbsp; (./) as a prefix.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545828#M154699</guid>
      <dc:creator>Vardhan</dc:creator>
      <dc:date>2021-03-29T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545829#M154700</link>
      <description>&lt;P&gt;You should check how your organisation has defined to use UF on Splunk Server hosts. It could be that UFs are automatically installed all hosts and then it's not helping to remove it manually.&lt;/P&gt;&lt;P&gt;Best option is ensure that you are using full path /opt/splunk/bin/splunk all times when you are using those commands.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 09:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545829#M154700</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-03-29T09:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545858#M154713</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232459"&gt;@Vardhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have removed the Splunk forwarder package from /opt and restarted the splunk services. But still I am getting the same python error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e. Previously before upgrade I can able to ran the below commands&amp;nbsp; from any directory (without ./) and it could fetch the results.&lt;/P&gt;&lt;P&gt;splunk restart&lt;/P&gt;&lt;P&gt;splunk start&lt;/P&gt;&lt;P&gt;splunk reload deploy-server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now Eventhough I have removed the splunk forwarder package from /opt I couldn't able to execute the command from any directory and especially without ./&lt;/P&gt;&lt;P&gt;So kindly guide me how to fix it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 14:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545858#M154713</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-03-29T14:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545865#M154716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207926"&gt;@anandhalagaras1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was your previous Splunk version?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 14:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545865#M154716</guid>
      <dc:creator>Vardhan</dc:creator>
      <dc:date>2021-03-29T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545887#M154719</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232459"&gt;@Vardhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is 7.2.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545887#M154719</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-03-29T16:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545953#M154738</link>
      <description>&lt;P&gt;What is output of: which splunk&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545953#M154738</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-03-30T08:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545960#M154741</link>
      <description>&lt;P&gt;The output is pointing out to /opt/splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 06:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545960#M154741</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-03-30T06:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545979#M154750</link>
      <description>&lt;P&gt;Is it pointing to /opt/splunk/bin/splunk or /opt/splunk?&lt;/P&gt;&lt;P&gt;What you have in your $PATH?&lt;/P&gt;&lt;P&gt;Maybe you should create alias splunk_ds = /opt/splunk/bin/splunk and use it instead of splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 08:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545979#M154750</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-03-30T08:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545990#M154756</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i ran the below command it is pointing to /opt/splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[splunk@servername bin]$ echo $SPLUNK_HOME&lt;BR /&gt;/opt/splunk&lt;/P&gt;&lt;P&gt;So kindly let me know how to create a alias so that will do it and test the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 10:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/545990#M154756</guid>
      <dc:creator>anandhalagaras1</dc:creator>
      <dc:date>2021-03-30T10:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Couldn't able to perform any commands in Deployment Server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/546322#M154867</link>
      <description>I suppose that you are using bash on that host.&lt;BR /&gt;Then just add to user splunk's (or what ever is your splunk user) ${HOME}/.bashrc the next line&lt;BR /&gt;alias splunk_ds = /opt/splunk/bin/splunk&lt;BR /&gt;then source it (source ~splunk/.bashrc) into shell or log in again to that user. After that you could use that command splunk_ds when you needs splunk in cli.</description>
      <pubDate>Thu, 01 Apr 2021 05:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Couldn-t-able-to-perform-any-commands-in-Deployment-Server/m-p/546322#M154867</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-04-01T05:16:07Z</dc:date>
    </item>
  </channel>
</rss>

