<?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 upgrade to 7.2 fails with &amp;quot;ERROR while running mongod-fix-voting-priority migration.&amp;quot; in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389170#M21138</link>
    <description>&lt;P&gt;Splunk start produces error below and stopped running. So far it failed on 2 servers in a row.&lt;BR /&gt;
Any suggestions?&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Finished generating checksums for datamodel and report acceleration bucket summaries for all indexes.&lt;BR /&gt;
license with stackid=enterprise found in stack download-trial&lt;BR /&gt;
license with stackid=enterprise found in stack download-trial&lt;BR /&gt;
ERROR: [App Key Value Store migration] Service(36) terminated before the service availability check could complete. Exit code 14, waited for 0 seconds.&lt;BR /&gt;
[App Key Value Store migration] Checking if migration is needed. Upgrade type 1. This can take up to 600 seconds.&lt;/P&gt;

&lt;H2&gt;ERROR while running mongod-fix-voting-priority migration.&lt;/H2&gt;

&lt;P&gt;There is no splunkd.log messages put in the file since the upgrade and even 'splunk diag' fails with the same error.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 19:33:24 GMT</pubDate>
    <dc:creator>sylim_splunk</dc:creator>
    <dc:date>2019-01-08T19:33:24Z</dc:date>
    <item>
      <title>upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389170#M21138</link>
      <description>&lt;P&gt;Splunk start produces error below and stopped running. So far it failed on 2 servers in a row.&lt;BR /&gt;
Any suggestions?&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Finished generating checksums for datamodel and report acceleration bucket summaries for all indexes.&lt;BR /&gt;
license with stackid=enterprise found in stack download-trial&lt;BR /&gt;
license with stackid=enterprise found in stack download-trial&lt;BR /&gt;
ERROR: [App Key Value Store migration] Service(36) terminated before the service availability check could complete. Exit code 14, waited for 0 seconds.&lt;BR /&gt;
[App Key Value Store migration] Checking if migration is needed. Upgrade type 1. This can take up to 600 seconds.&lt;/P&gt;

&lt;H2&gt;ERROR while running mongod-fix-voting-priority migration.&lt;/H2&gt;

&lt;P&gt;There is no splunkd.log messages put in the file since the upgrade and even 'splunk diag' fails with the same error.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 19:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389170#M21138</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2019-01-08T19:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389171#M21139</link>
      <description>&lt;P&gt;We have been using default certs and were able to work around it by re-create the expired server.pem by following the steps below;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;$ splunk createssl server-cert -d $SPLUNK_HOME/etc/auth -n SplunkServerDefaultCert&lt;BR /&gt;
$ mv server.pem server.pem.orig&lt;BR /&gt;
$ mv SplunkServerDefaultCert.pem server.pem&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The Mongod.log has had error messages against expired server.pem file since last year so this  was the last thing we suspected - some changes in 7.2 might have started to cause the behavior. &lt;/P&gt;

&lt;P&gt;To check the expire date;&lt;BR /&gt;
$ openssl x509 -noout -enddate  -in $SPLUNK_HOME/etc/auth/server.pem &lt;/P&gt;

&lt;P&gt;If it is still the same then check the below;&lt;BR /&gt;
i) delete old mongod.lock file in $SPLUNK_HOME/var/lib/splunk/kvstore/mongo&lt;BR /&gt;
 ii) expired cert (KV store was not used at all)&lt;/P&gt;

&lt;P&gt;iii) unsupported ciphers &lt;BR /&gt;
 iv) mongod port taken by other process,&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 19:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389171#M21139</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2019-01-08T19:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389172#M21140</link>
      <description>&lt;P&gt;Hi Sylim,&lt;BR /&gt;
i also faced the same issue. i followed the above steps but the issue still persists. &lt;BR /&gt;
&lt;STRONG&gt;[root@localhost ~]# openssl x509 -noout -enddate -in /opt/splunk/etc/auth/server.pem&lt;BR /&gt;
notAfter=Jan  9 08:43:08 2022 GMT&lt;/STRONG&gt;&lt;BR /&gt;
the above is my output after creating new certificate. so when i am trying to run this command &lt;STRONG&gt;./splunk start --accept-license&lt;/STRONG&gt; ,the output is below:-&lt;BR /&gt;
&lt;STRONG&gt;ERROR: [App Key Value Store migration] Service(36) terminated before the service availability check could complete. Exit code 1, waited for 0 seconds.&lt;BR /&gt;
[App Key Value Store migration] Checking if migration is needed. Upgrade type 1. This can take up to 600 seconds.&lt;BR /&gt;
ERROR while running mongod-fix-voting-priority migration.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;can you please help me out here?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 08:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389172#M21140</guid>
      <dc:creator>MoniM</dc:creator>
      <dc:date>2019-01-10T08:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389173#M21141</link>
      <description>&lt;P&gt;Could you check the below?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;i) delete  old mongod.lock file in $SPLUNK_HOME/var/lib/splunk/kvstore/mongo&lt;BR /&gt;
&amp;nbsp;ii) expired cert (KV store was not used at all)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;iii) unsupported ciphers&amp;nbsp;&lt;BR /&gt;
&amp;nbsp;iv) mongod port taken by other process,&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389173#M21141</guid>
      <dc:creator>sylim_splunk</dc:creator>
      <dc:date>2019-01-10T19:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389174#M21142</link>
      <description>&lt;P&gt;I have encountered the same ERROR when I tried to upgrade my cluster from 7.1.4 to 7.1.5.&lt;BR /&gt;
I have a two-site indexer-cluster. Several indexers in site2 produced "mongod exited abnormally (exit code 14, ..." and "ERROR: Failed to running mongod-fix-voting-priority migration." during starting procedure.&lt;BR /&gt;
These indexers have one thing in common. The modtime of the server.pem is in May 2016, and now is in Jan 2019.&lt;BR /&gt;
I tried to create new server.pem with commands provided by your answer and it worked.&lt;BR /&gt;
After I replaced the old server.pem file with the new one, Splunk started normally.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 16:12:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389174#M21142</guid>
      <dc:creator>witski</dc:creator>
      <dc:date>2019-01-15T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389175#M21143</link>
      <description>&lt;P&gt;I also had this same error when upgrading from Splunk 6.5 to 7.3.2. I tried Sylim's fixes and they didn't seem to help. But then I found the following solution which fixed it immidately (though I have a feeling I would have needed to have applied Sylim's fix also):&lt;/P&gt;

&lt;P&gt;The permissions on &lt;STRONG&gt;$SPLUNK_HOME/var/lib/splunk/kvstore/mongo/splunk.key&lt;/STRONG&gt; were &lt;STRONG&gt;-rw-rw----&lt;/STRONG&gt;&lt;BR /&gt;
I've seen it documented somewhere that this file must be set to owner read only (&lt;STRONG&gt;-r--------&lt;/STRONG&gt;)&lt;BR /&gt;
I ran the following to fix: &lt;STRONG&gt;chmod -R 400 $SPLUNK_HOME/var/lib/splunk/kvstore/mongo/splunk.key&lt;/STRONG&gt;&lt;BR /&gt;
Then re-ran the Splunk upgrade successfully.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2019 05:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389175#M21143</guid>
      <dc:creator>marrette</dc:creator>
      <dc:date>2019-04-06T05:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389176#M21144</link>
      <description>&lt;P&gt;Mine was a permission issue, the above steps from Marrette fixed our issue and I was able to upgrade and restart my IDX.&lt;/P&gt;

&lt;P&gt;PS: In my environment, our "splunk.key" was located @ /splunk/kvstore/mongo/splunk.key. &lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 17:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389176#M21144</guid>
      <dc:creator>333mendyp</dc:creator>
      <dc:date>2019-07-23T17:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389177#M21145</link>
      <description>&lt;P&gt;I had a similar case where the client himself found the solution, he performed the below steps and it fixed the issue. &lt;/P&gt;

&lt;P&gt;While upgrading from 6.6 to 7.2.3 if you are not able to start the Splunk and if it keeps on prompting to accept license follow the below steps &lt;/P&gt;

&lt;P&gt;Go to /opt/splunk &lt;BR /&gt;
mv ftr /tmp &lt;BR /&gt;
cd /etc/init.d &lt;BR /&gt;
./splunk start &lt;/P&gt;

&lt;P&gt;If the above steps are followed we can get rid of MongoDB error and we can upgrade to the latest version. &lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 07:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389177#M21145</guid>
      <dc:creator>saramamurthy_sp</dc:creator>
      <dc:date>2019-07-26T07:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: upgrade to 7.2 fails with "ERROR while running mongod-fix-voting-priority migration."</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389178#M21146</link>
      <description>&lt;P&gt;Worked like a charm. Thank you @marrette&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 22:44:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/upgrade-to-7-2-fails-with-quot-ERROR-while-running-mongod-fix/m-p/389178#M21146</guid>
      <dc:creator>arrangineni</dc:creator>
      <dc:date>2019-11-20T22:44:09Z</dc:date>
    </item>
  </channel>
</rss>

