<?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: Exception: &amp;lt;class 'PermissionError'&amp;gt;, Value: [Errno 13] Permission denied in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/665979#M13348</link>
    <description>&lt;P&gt;This also worked for me.&lt;BR /&gt;Upgrade from 9.0.4 to 9.1.1&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 08:57:03 GMT</pubDate>
    <dc:creator>Quadra</dc:creator>
    <dc:date>2023-10-24T08:57:03Z</dc:date>
    <item>
      <title>Why this error when upgrading "Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied"?</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/506386#M6392</link>
      <description>&lt;P&gt;Upgrading to VERSION=8.0.4.1 I'm getting this error running as ROOT!!&lt;/P&gt;
&lt;P&gt;Migrating to:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VERSION=8.0.4.1
BUILD=ab7a85abaa98
PRODUCT=splunk
PLATFORM=Linux-x86_64

Copying '/opt/splunk/etc/myinstall/splunkd.xml' to '/opt/splunk/etc/myinstall/splunkd.xml-migrate.bak'.

Checking saved search compatibility...

Handling deprecated files...

Checking script configuration...


An unforeseen error occurred:

Exception: &amp;lt;class 'PermissionError'&amp;gt;, Value: [Errno 13] Permission denied: '/opt/splunk/etc/system/local/inputs.conf.tmp'

Traceback (most recent call last):
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 1353, in &amp;lt;module&amp;gt;
sys.exit(main(sys.argv))
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 1206, in main
parseAndRun(argsList)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 1061, in parseAndRun
retVal = cList.getCmd(command, subCmd).call(argList, fromCLI = True)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 293, in call
return self.func(args, fromCLI)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/control_api.py", line 30, in wrapperFunc
return func(dictCopy, fromCLI)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/_internal.py", line 189, in firstTimeRun
migration.autoMigrate(args[ARG_LOGFILE], isDryRun)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/migration.py", line 3094, in autoMigrate
migInputs_3_3_0(migInputsConf, dryRun)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/migration.py", line 1682, in migInputs_3_3_0
comm.sed(policySearch, policyReplace, path, inPlace = True)
File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli_common.py", line 1232, in sed
outFile = open(tmpPath, 'w')
PermissionError: [Errno 13] Permission denied: '/opt/splunk/etc/system/local/inputs.conf.tmp'

Please file a case online at http://www.splunk.com/page/submit_issue

Error running pre-start tasks&lt;/LI-CODE&gt;
&lt;P&gt;Root is how I always run the upgrade process yet never have run into this issue before!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 04:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/506386#M6392</guid>
      <dc:creator>tb582</dc:creator>
      <dc:date>2022-03-18T04:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/506464#M6393</link>
      <description>&lt;P&gt;1. Is Splunk offline?&lt;/P&gt;&lt;P&gt;2. Who owns the processes?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 04:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/506464#M6393</guid>
      <dc:creator>The_Simko</dc:creator>
      <dc:date>2020-06-29T04:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/530902#M6948</link>
      <description>&lt;P&gt;I had this same problem when upgrading Splunk.&lt;/P&gt;&lt;P&gt;After untaring the TGZ file to my $SPLUNK_HOME.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cd $SPLUNK_ROOT_DIR
ls -lah&lt;/LI-CODE&gt;&lt;P&gt;This confirmed the owner of the folder changed to 10777&lt;/P&gt;&lt;P&gt;I went ahead and ran this line to fix permissions&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chown -R splunk:splunk $SPLUNK_HOME&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case change the user to root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 21:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/530902#M6948</guid>
      <dc:creator>panguy</dc:creator>
      <dc:date>2020-11-25T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/577734#M10971</link>
      <description>&lt;P&gt;Thanks panguy, this is exactly what I needed!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 06:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/577734#M10971</guid>
      <dc:creator>smoir</dc:creator>
      <dc:date>2021-12-08T06:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/589594#M11338</link>
      <description>&lt;P&gt;I had the same problem going doing an upgrade from 8.2.4 to 8..5&lt;/P&gt;&lt;P&gt;I went to the directory where the permission error was shown at the end of the Traceback like this&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;f = open(path, 'w')&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;PermissionError: [Errno 13] Permission denied: '/opt/splunk/etc/system/local/indexes.conf'&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Some of the files where read only so I did a&amp;nbsp; chmod 660 * and that fixed it. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 21:30:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/589594#M11338</guid>
      <dc:creator>tgendron_splunk</dc:creator>
      <dc:date>2022-03-17T21:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/665979#M13348</link>
      <description>&lt;P&gt;This also worked for me.&lt;BR /&gt;Upgrade from 9.0.4 to 9.1.1&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 08:57:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/665979#M13348</guid>
      <dc:creator>Quadra</dc:creator>
      <dc:date>2023-10-24T08:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: &lt;class 'PermissionError'&gt;, Value: [Errno 13] Permission denied</title>
      <link>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/688386#M13915</link>
      <description>&lt;P&gt;This also worked for me.&lt;BR /&gt;Upgrade from 9.0.4 to 9.2.1&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 20:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-this-error-when-upgrading-quot-Exception-lt-class/m-p/688386#M13915</guid>
      <dc:creator>felipecosta</dc:creator>
      <dc:date>2024-05-22T20:18:32Z</dc:date>
    </item>
  </channel>
</rss>

