<?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: KV Store initialization has been not completed yet in SHC in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745087#M118447</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253909"&gt;@Mfmahdi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do not tag/call out specific users on here - there are lots of people monitoring for questions being raised and those you have tagged do have day jobs and other priorities so you risk your question being missed.&lt;/P&gt;&lt;P&gt;To troubleshoot the KV Store initialization issue, start by examining the logs on the search head cluster members for specific errors.&lt;/P&gt;&lt;PRE&gt;| rest /services/kvstore/status&lt;BR /&gt;| fields splunk_server, current*&lt;/PRE&gt;&lt;P&gt;Then check on each SHC member:&lt;/P&gt;&lt;PRE&gt;ps -ef | grep mongod

# Check mongod logs for errors
tail -n 200 $SPLUNK_HOME/var/log/splunk/mongod.log

# Check splunkd logs for KV Store related errors
grep KVStore $SPLUNK_HOME/var/log/splunk/splunkd.log | tail -n 200&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Verify mongod Process:&lt;/STRONG&gt; Ensure the mongod process, which underlies the KV Store, is running on the search head members. Use the ps command or your operating system's equivalent. If it's not running, investigate why using the logs.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Check Cluster Health:&lt;/STRONG&gt; Ensure the search head cluster itself is healthy using the Monitoring Console or the CLI command splunk show shcluster-status run from the captain. KV Store issues can sometimes be symptomatic of underlying cluster communication problems. From your screenshot it looks like this is showing as starting state, so hopefully the logs shine some light on the issue.&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Resources:&lt;/STRONG&gt; Verify sufficient disk space, memory, and CPU resources on the search head cluster members, particularly on the node currently acting as the KV Store primary.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Focus on the error messages found in mongod.log and splunkd.log as they usually pinpoint the root cause (e.g., permissions, disk space, configuration errors, corrupted files).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If the logs indicate corruption or persistent startup failures that restarts don't resolve, you may need to consider more advanced recovery steps, potentially involving Splunk Support.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;USeful docs which might help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/TroubleshootKVstore" target="_blank" rel="noopener"&gt;Splunk Docs: Troubleshoot the KV Store&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/AboutKVstore" target="_blank" rel="noopener"&gt;Splunk Docs: About the KV Store&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2025 08:56:44 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-04-28T08:56:44Z</dc:date>
    <item>
      <title>KV Store initialization has been not completed yet in SHC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745086#M118446</link>
      <description>&lt;P&gt;Dears,,,&lt;/P&gt;&lt;P class=""&gt;The KV Store initialization on our search head cluster was previously working fine. However, unexpectedly, we are now encountering the error: &lt;STRONG&gt;"KV Store initialization has not been completed yet"&lt;/STRONG&gt;, and the KV Store status shows as &lt;STRONG&gt;"starting."&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;I attempted a rolling restart across the search heads, but the issue persists.&lt;BR /&gt;Kindly provide your support to resolve this issues&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture out2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38766i8CB22E86CC803232/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture out2.PNG" alt="Capture out2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture out1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38767iC9AB80CFA3DC8B08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture out1.PNG" alt="Capture out1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 08:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745086#M118446</guid>
      <dc:creator>Mfmahdi</dc:creator>
      <dc:date>2025-04-28T08:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: KV Store initialization has been not completed yet in SHC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745087#M118447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253909"&gt;@Mfmahdi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do not tag/call out specific users on here - there are lots of people monitoring for questions being raised and those you have tagged do have day jobs and other priorities so you risk your question being missed.&lt;/P&gt;&lt;P&gt;To troubleshoot the KV Store initialization issue, start by examining the logs on the search head cluster members for specific errors.&lt;/P&gt;&lt;PRE&gt;| rest /services/kvstore/status&lt;BR /&gt;| fields splunk_server, current*&lt;/PRE&gt;&lt;P&gt;Then check on each SHC member:&lt;/P&gt;&lt;PRE&gt;ps -ef | grep mongod

# Check mongod logs for errors
tail -n 200 $SPLUNK_HOME/var/log/splunk/mongod.log

# Check splunkd logs for KV Store related errors
grep KVStore $SPLUNK_HOME/var/log/splunk/splunkd.log | tail -n 200&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Verify mongod Process:&lt;/STRONG&gt; Ensure the mongod process, which underlies the KV Store, is running on the search head members. Use the ps command or your operating system's equivalent. If it's not running, investigate why using the logs.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Check Cluster Health:&lt;/STRONG&gt; Ensure the search head cluster itself is healthy using the Monitoring Console or the CLI command splunk show shcluster-status run from the captain. KV Store issues can sometimes be symptomatic of underlying cluster communication problems. From your screenshot it looks like this is showing as starting state, so hopefully the logs shine some light on the issue.&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Resources:&lt;/STRONG&gt; Verify sufficient disk space, memory, and CPU resources on the search head cluster members, particularly on the node currently acting as the KV Store primary.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Focus on the error messages found in mongod.log and splunkd.log as they usually pinpoint the root cause (e.g., permissions, disk space, configuration errors, corrupted files).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If the logs indicate corruption or persistent startup failures that restarts don't resolve, you may need to consider more advanced recovery steps, potentially involving Splunk Support.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;USeful docs which might help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/TroubleshootKVstore" target="_blank" rel="noopener"&gt;Splunk Docs: Troubleshoot the KV Store&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/AboutKVstore" target="_blank" rel="noopener"&gt;Splunk Docs: About the KV Store&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 08:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745087#M118447</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-04-28T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: KV Store initialization has been not completed yet in SHC</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745145#M118450</link>
      <description>&lt;P class=""&gt;Hi&amp;nbsp; livehybrid,&lt;/P&gt;&lt;P class=""&gt;Thank you for pointing that out to me.&lt;/P&gt;&lt;P class=""&gt;Regarding your suggested solution. It was very helpful. I checked the mongod.log using the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tail -n 200 $SPLUNK_HOME/var/log/splunk/mongod.log&lt;/LI-CODE&gt;&lt;P&gt;The output clearly showed the issue:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2025-03-27T10:16:32.087Z W  NETWORK  [main] Server certificate has no compatible Subject Alternative Name. This may prevent TLS clients from connecting
2025-03-27T10:16:32.087Z F  NETWORK  [main] The provided SSL certificate is expired or not yet valid.
2025-03-27T10:16:32.087Z F  -        [main] Fatal Assertion 28652 at src/mongo/util/net/ssl_manager_openssl.cpp 1182
2025-03-27T10:16:32.087Z F  -        [main] 
***aborting after fassert() failure&lt;/LI-CODE&gt;&lt;P&gt;It turned out that the server SSL certificate had expired. Here are the steps I took to resolve the issue:&lt;/P&gt;&lt;P&gt;1-&amp;nbsp;Backed up the existing certificate:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cp $SPLUNK_HOME/etc/auth/server.pem $SPLUNK_HOME/etc/auth/server.pem.bak&lt;/LI-CODE&gt;&lt;P&gt;2-&amp;nbsp;Generated a new self-signed certificate:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk createssl server-cert -d $SPLUNK_HOME/etc/auth -n server&lt;/LI-CODE&gt;&lt;P class=""&gt;(This creates a new server.pem valid for 2 years.)&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;3- restart splunk&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;./splunk restart&lt;/LI-CODE&gt;&lt;P&gt;4-&amp;nbsp;Verified KV Store status:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk show kvstore-status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;#####Note for Search Head Cluster####&lt;/H3&gt;&lt;P class=""&gt;Since we’re running a SH cluster, I made sure to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Copy the new server.pem to all search head members.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Restart Splunk on each node.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;These steps fully resolved the issue, and the KV Store is now functioning as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 05:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/KV-Store-initialization-has-been-not-completed-yet-in-SHC/m-p/745145#M118450</guid>
      <dc:creator>Mfmahdi</dc:creator>
      <dc:date>2025-04-29T05:53:01Z</dc:date>
    </item>
  </channel>
</rss>

