<?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: Splunk upgrade error in Installation</title>
    <link>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604703#M11700</link>
    <description>&lt;P&gt;Typically permission issues come from inconsistency in launching splunk and/or editing splunk files. If you switch between root and your $SPLUNK_USER a lot you're bound to sooner or later run the service with wrong user and have it create files/dirs with wrong ownership. Especially if you don't use systemd.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 06:20:27 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-07-07T06:20:27Z</dc:date>
    <item>
      <title>How to solve this Splunk upgrade error?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604684#M11698</link>
      <description>&lt;P&gt;Received the below error after answering "y" to Perform migration and upgrade without previewing configuration changes? [y/n] y.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- Migration information is being logged to '/opt/splunk/var/log/splunk/migration.log.2022-07-06.23-37-40' --&lt;/P&gt;
&lt;P&gt;Migrating to:&lt;BR /&gt;VERSION=9.0.0&lt;BR /&gt;BUILD=6818ac46f2ec&lt;BR /&gt;PRODUCT=splunk&lt;BR /&gt;PLATFORM=Linux-x86_64&lt;/P&gt;
&lt;P&gt;Copying '/opt/splunk/etc/myinstall/splunkd.xml' to '/opt/splunk/etc/myinstall/splunkd.xml-migrate.bak'.&lt;/P&gt;
&lt;P&gt;An unforeseen error occurred:&lt;/P&gt;
&lt;P&gt;Exception: &amp;lt;class 'PermissionError'&amp;gt;, Value: [Errno 13] Permission denied: '/opt/splunk/etc/myinstall/splunkd.xml-migrate.bak'&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 1359, in &amp;lt;module&amp;gt;&lt;BR /&gt;sys.exit(main(sys.argv))&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 1212, in main&lt;BR /&gt;parseAndRun(argsList)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 1067, in parseAndRun&lt;BR /&gt;retVal = cList.getCmd(command, subCmd).call(argList, fromCLI = True)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli.py", line 293, in call&lt;BR /&gt;return self.func(args, fromCLI)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/control_api.py", line 35, in wrapperFunc&lt;BR /&gt;return func(dictCopy, fromCLI)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/_internal.py", line 189, in firstTimeRun&lt;BR /&gt;migration.autoMigrate(args[ARG_LOGFILE], isDryRun)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/migration.py", line 3158, in autoMigrate&lt;BR /&gt;comm.copyItem(PATH_SPLUNKD_XML, PATH_SPLUNKD_XML_BAK, dryRun)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/site-packages/splunk/clilib/cli_common.py", line 1086, in copyItem&lt;BR /&gt;shutil.copy(src, dst)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/shutil.py", line 248, in copy&lt;BR /&gt;copyfile(src, dst, follow_symlinks=follow_symlinks)&lt;BR /&gt;File "/opt/splunk/lib/python3.7/shutil.py", line 121, in copyfile&lt;BR /&gt;with open(dst, 'wb') as fdst:&lt;BR /&gt;PermissionError: [Errno 13] Permission denied: '/opt/splunk/etc/myinstall/splunkd.xml-migrate.bak'&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604684#M11698</guid>
      <dc:creator>myskyvideo</dc:creator>
      <dc:date>2022-07-07T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk upgrade error</title>
      <link>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604697#M11699</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244082"&gt;@myskyvideo&lt;/a&gt;&amp;nbsp;- Very likely permission issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;&amp;lt;user&amp;gt;&lt;/STRONG&gt; does not have ownership of the to /opt/splunk directory.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You can use &lt;STRONG&gt;chown -R &amp;lt;user&amp;gt;:&amp;lt;user-group&amp;gt; /opt/splunk&lt;/STRONG&gt; command to achieve that.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here &lt;STRONG&gt;&amp;lt;user&amp;gt;&lt;/STRONG&gt; refers to the Linux username you are using to run Splunk service and splunk commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 05:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604697#M11699</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-07-07T05:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk upgrade error</title>
      <link>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604703#M11700</link>
      <description>&lt;P&gt;Typically permission issues come from inconsistency in launching splunk and/or editing splunk files. If you switch between root and your $SPLUNK_USER a lot you're bound to sooner or later run the service with wrong user and have it create files/dirs with wrong ownership. Especially if you don't use systemd.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 06:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604703#M11700</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-07T06:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve this Splunk upgrade error?</title>
      <link>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604869#M11701</link>
      <description>&lt;P&gt;Correct, it was permission issue. I did change the ownership, restarted Splunk&amp;nbsp; and the upgrade worked.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 00:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/How-to-solve-this-Splunk-upgrade-error/m-p/604869#M11701</guid>
      <dc:creator>myskyvideo</dc:creator>
      <dc:date>2022-07-08T00:24:58Z</dc:date>
    </item>
  </channel>
</rss>

