<?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 Why is Cluster Peer unable to start due to bucket conflict after upgrade to Splunk 6.2? How to resolve this? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Why-is-Cluster-Peer-unable-to-start-due-to-bucket-conflict-after/m-p/140480#M2303</link>
    <description>&lt;P&gt;When trying to upgrade to Splunk 6.2 after successfully upgrading and starting the instance, splunkd immediately fails. This is a cluster. 3 of the other peer nodes upgraded OK and one is hard down. Attached is a diag.&lt;/P&gt;

&lt;P&gt;The error I'm seeing is:&lt;/P&gt;

&lt;P&gt;2014-11-22 07:31:20.962 +0000 splunkd started (build 237341)&lt;BR /&gt;
Bypassing local license checks since this instance is configured with a remote license master.&lt;BR /&gt;
2014-11-22 07:31:23.402 +0000 splunkd started (build 237341)&lt;BR /&gt;
terminate called after throwing an instance of 'DatabaseDirectoryManagerException'&lt;BR /&gt;
what(): idx=summary bucket=db_1384819200_1384819200_31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368 Detected directory manually copied into its database, causing id conflicts [path1='/opt/splunk/data/hotdb/summary/31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368' path2='/opt/splunk/data/hotdb/summary/db_1384819200_1384819200_31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368'].&lt;/P&gt;

&lt;P&gt;Looking at the directory above I don't see any foreign directories, everything looks legit both from a naming and permissions perspective.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:18:03 GMT</pubDate>
    <dc:creator>sat94541</dc:creator>
    <dc:date>2020-09-28T18:18:03Z</dc:date>
    <item>
      <title>Why is Cluster Peer unable to start due to bucket conflict after upgrade to Splunk 6.2? How to resolve this?</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Cluster-Peer-unable-to-start-due-to-bucket-conflict-after/m-p/140480#M2303</link>
      <description>&lt;P&gt;When trying to upgrade to Splunk 6.2 after successfully upgrading and starting the instance, splunkd immediately fails. This is a cluster. 3 of the other peer nodes upgraded OK and one is hard down. Attached is a diag.&lt;/P&gt;

&lt;P&gt;The error I'm seeing is:&lt;/P&gt;

&lt;P&gt;2014-11-22 07:31:20.962 +0000 splunkd started (build 237341)&lt;BR /&gt;
Bypassing local license checks since this instance is configured with a remote license master.&lt;BR /&gt;
2014-11-22 07:31:23.402 +0000 splunkd started (build 237341)&lt;BR /&gt;
terminate called after throwing an instance of 'DatabaseDirectoryManagerException'&lt;BR /&gt;
what(): idx=summary bucket=db_1384819200_1384819200_31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368 Detected directory manually copied into its database, causing id conflicts [path1='/opt/splunk/data/hotdb/summary/31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368' path2='/opt/splunk/data/hotdb/summary/db_1384819200_1384819200_31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368'].&lt;/P&gt;

&lt;P&gt;Looking at the directory above I don't see any foreign directories, everything looks legit both from a naming and permissions perspective.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Cluster-Peer-unable-to-start-due-to-bucket-conflict-after/m-p/140480#M2303</guid>
      <dc:creator>sat94541</dc:creator>
      <dc:date>2020-09-28T18:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Cluster Peer unable to start due to bucket conflict after upgrade to Splunk 6.2? How to resolve this?</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-Cluster-Peer-unable-to-start-due-to-bucket-conflict-after/m-p/140481#M2304</link>
      <description>&lt;P&gt;Based on the error messages two buckets have the same bucket as shown below&lt;/P&gt;

&lt;P&gt;/opt/splunk/data/hotdb/summary/db_1384819200_1384819200_31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368     &amp;gt;&amp;gt;&amp;gt;&amp;gt;Warm bucket &lt;/P&gt;

&lt;P&gt;/opt/splunk/data/hotdb/summary/31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368      &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;Bucket created due to summarization&lt;/P&gt;

&lt;P&gt;Splunk doesn’t like two buckets in same location generated from same indexer to have same Bucket_id, this situation is treated as conflict. Pre 6.2 version index with conflicting bucket_id use to get disabled. In Splunk Version 6.2 these conflicting buckets are causing indexers to crash. This behavior is being treated as   &lt;STRONG&gt;BUG- SPL-93102&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So, here issue is that [summary] index  has two  buckets starting with (bucket_id)number like  “31_2FB35CAB-A5AE-47A8-AB5D-C2775C0B3368”.The duplicates are not actually buckets but accelerated data (summary acceleration) from other indexes, that happens to be created in your summary homepath, because of the way the folders are created. &lt;/P&gt;

&lt;P&gt;[volume:hot0]&lt;BR /&gt;
path = /opt/splunk/data/hotdb&lt;/P&gt;

&lt;P&gt;[main]&lt;BR /&gt;
repFactor = auto&lt;BR /&gt;
homePath = volume:hot0/main&lt;BR /&gt;
coldPath = volume:cold0/main&lt;BR /&gt;
summaryHomePath = volume:summary0/main&lt;BR /&gt;
tstatsHomePath = volume:datamodelsummary0/main&lt;BR /&gt;
thawedPath = /opt/splunk/data/thaweddb/main&lt;/P&gt;

&lt;P&gt;the unspecified summaryHomePath in splunk will be created using this method summaryHomePath = homePath cd .. mkdir summary -&amp;gt; /opt/splunk/data/summary and be on your actual summary index homepath, and for all your indexes. &lt;/P&gt;

&lt;P&gt;There are two solutions :&lt;/P&gt;

&lt;P&gt;-&lt;STRONG&gt;--Solution 1-----&lt;/STRONG&gt; &lt;BR /&gt;
- enforce a different homepath for your each index to add a extra level &lt;BR /&gt;
example : &lt;BR /&gt;
homePath = volume:hot0/main/db &lt;/P&gt;

&lt;P&gt;will cause the automatic summaryHomePath to be /opt/splunk/main/summary &lt;BR /&gt;
It will require a downtime, and to create the folder and move the buckets to the new location, then restart. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;----Solution 2-----&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;specify the summaryHomePath for each indexes to a specific location &lt;BR /&gt;
example &lt;/P&gt;

&lt;P&gt;[volume:summary0]&lt;BR /&gt;
path = /opt/splunk/data/summarydb&lt;/P&gt;

&lt;P&gt;[main]&lt;BR /&gt;
repFactor = auto&lt;BR /&gt;
homePath = volume:hot0/main&lt;BR /&gt;
coldPath = volume:cold0/main&lt;BR /&gt;
summaryHomePath = volume:summary0/main&lt;BR /&gt;
tstatsHomePath = volume:datamodelsummary0/main&lt;BR /&gt;
thawedPath = /opt/splunk/data/thaweddb/main&lt;BR /&gt;
frozenTimePeriodInSecs = 34186700&lt;/P&gt;

&lt;H1&gt;etc ...&lt;/H1&gt;

&lt;P&gt;And in all cases : &lt;BR /&gt;
- You need to just clear  summary buckets from summary index  (the one starting with &lt;EM&gt;*, not the db&lt;/EM&gt;* or the hot_v1_* ) . &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;check your accelerated report on the search-head, they will rebuild themselves &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For details about the summary accelerated settings : &lt;BR /&gt;
spec : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.2/admin/Indexesconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/admin/Indexesconf&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;summaryHomePath =&lt;BR /&gt;&lt;BR /&gt;
* An absolute path where transparent summarization results for data in this index &lt;BR /&gt;
should be stored. Must be different for each index and may be on any disk drive. &lt;BR /&gt;
* May contain a volume reference (see volume section below). &lt;BR /&gt;
* Volume reference must be used if data retention based on data size is desired. &lt;BR /&gt;
* If not specified it defaults to a directory 'summary' in the same location as homePath &lt;BR /&gt;
* For example, if homePath is "/opt/splunk/var/lib/splunk/index1/db", &lt;BR /&gt;
then summaryHomePath would be "/opt/splunk/var/lib/splunk/index1/summary". &lt;BR /&gt;
* CAUTION: Path must be writable. &lt;BR /&gt;
* Must restart splunkd after changing this parameter; index reload will not suffice.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:16:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-Cluster-Peer-unable-to-start-due-to-bucket-conflict-after/m-p/140481#M2304</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-09-28T18:16:55Z</dc:date>
    </item>
  </channel>
</rss>

