<?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: Why am I unable to set up a search head cluster and getting error &amp;quot;Failed to bootstrap this node as a captain&amp;quot;? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278143#M10483</link>
    <description>&lt;P&gt;no, you don't Need this. please take a look @ here &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Indexer/ConfiguresearchheadwithCLI"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Indexer/ConfiguresearchheadwithCLI&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Edit the search head settings&lt;/P&gt;

&lt;P&gt;You can also use the CLI to edit the configuration later. &lt;/P&gt;

&lt;P&gt;Important: When you first enable a search head, you use the splunk edit cluster-config command. To change the search head configuration, you must instead use the splunk edit cluster-master command. &lt;/P&gt;

&lt;P&gt;For example, to change the security key (secret), use this command: &lt;/P&gt;

&lt;P&gt;splunk edit cluster-master &lt;A href="https://10.160.31.200:8089"&gt;https://10.160.31.200:8089&lt;/A&gt;  -secret newsecret123&lt;/P&gt;

&lt;P&gt;Important: The splunk edit cluster-master command always takes the current master URI:port value as its initial parameter. For example, this command connects the search head to a different master by setting a new value for the -master_uri parameter, but it provides the value for the old master as its initial parameter: &lt;/P&gt;

&lt;P&gt;splunk edit cluster-master &lt;A href="https://10.160.31.200:8089"&gt;https://10.160.31.200:8089&lt;/A&gt;  -master_uri &lt;A href="https://10.160.31.55:8089"&gt;https://10.160.31.55:8089&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Refer to the CLI clustering help, along with the server.conf specification file, for the list of configurable settings. &lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 09:15:45 GMT</pubDate>
    <dc:creator>ThomasControlwa</dc:creator>
    <dc:date>2018-03-23T09:15:45Z</dc:date>
    <item>
      <title>Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278137#M10477</link>
      <description>&lt;P&gt;I am trying to set up a search head cluster, but failed.&lt;/P&gt;

&lt;P&gt;Below are my settings:&lt;BR /&gt;
1) on  Search head1 (xx.xx.xx.aa) &lt;BR /&gt;
run below command then restart splunk &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk init shcluster-config -auth admin:changeme -mgmt_uri &lt;A href="https://xx.xx.xx.aa:8089" target="test_blank"&gt;https://xx.xx.xx.aa:8089&lt;/A&gt; -replication_port 8888 -replication_factor 2 -conf_deploy_fetch_url &lt;A href="https://xx.xx.xx.cc:8089" target="test_blank"&gt;https://xx.xx.xx.cc:8089&lt;/A&gt; -secret changeme -shcluster_label shcluster1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) on Search head2 (xx.xx.xx.bb)&lt;BR /&gt;
run below command then restart splunk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk init shcluster-config -auth admin:changeme -mgmt_uri &lt;A href="https://xx.xx.xx.bb:8089" target="test_blank"&gt;https://xx.xx.xx.bb:8089&lt;/A&gt; -replication_port 8888 -replication_factor 2 -conf_deploy_fetch_url &lt;A href="https://xx.xx.xx.cc:8089" target="test_blank"&gt;https://xx.xx.xx.cc:8089&lt;/A&gt; -secret changeme -shcluster_label shcluster1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) on Deployer host (xx.xx.xx.cc), set below in server.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[shclustering]
shcluster_label = shcluster1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;4) Bring up captain on SH1 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk bootstrap shcluster-captain -servers_list "https://xx.xx.xx.aa:8089,https://xx.xx.xx.bb:8089" -auth admin:changeme
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm getting the error below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@splunksh1hk1 ~]# tail -f /opt/splunk/var/log/splunk/splunkd.log
06-01-2016 20:50:48.977 +0000 INFO  KeyManagerLocalhost - Public key already exists: /opt/splunk/etc/auth/distServerKeys/trusted.pem
06-01-2016 20:50:48.977 +0000 INFO  KeyManagerLocalhost - Reading public key for localhost: /opt/splunk/etc/auth/distServerKeys/trusted.pem
06-01-2016 20:50:48.977 +0000 INFO  KeyManagerLocalhost - Finished reading public key for localhost: /opt/splunk/etc/auth/distServerKeys/trusted.pem
06-01-2016 20:50:48.977 +0000 INFO  KeyManagerLocalhost - Reading private key for localhost: /opt/splunk/etc/auth/distServerKeys/private.pem
06-01-2016 20:50:48.977 +0000 INFO  KeyManagerLocalhost - Finished reading private key for localhost: /opt/splunk/etc/auth/distServerKeys/private.pem
06-01-2016 20:50:48.984 +0000 INFO  ServerConfig - Using REMOTE_SERVER_NAME=5453F6EB-0F41-49FA-9203-F6A6FAED2D85
06-01-2016 20:50:48.987 +0000 INFO  ServerRoles - Declared role=search_head.
06-01-2016 20:51:44.987 +0000 INFO  DatabaseDirectoryManager - idx=_internal Writing a bucket manifest in hotWarmPath='/opt/splunk/var/lib/splunk/_internaldb/db', pendingBucketUpdates=0 .  Reason='Buckets were rebuilt or tsidx-minified (bucket_count=1).'
06-01-2016 20:53:43.271 +0000 ERROR SHCRaftConsensus - Failed to bootstrap this node as a captain.
06-01-2016 21:00:23.340 +0000 ERROR SHCRaftConsensus - Failed to bootstrap this node as a captain.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 22:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278137#M10477</guid>
      <dc:creator>wangsimingxaxis</dc:creator>
      <dc:date>2016-06-01T22:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278138#M10478</link>
      <description>&lt;P&gt;You cannot achieve a quorum with only two search heads. Add another.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 23:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278138#M10478</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2016-06-01T23:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278139#M10479</link>
      <description>&lt;P&gt;you need min 3 member of SH clustering,&lt;BR /&gt;
also the member needs to be the same setup. the context of 3 member is to collect a "Captain" role of your shcluster.&lt;/P&gt;

&lt;P&gt;make sure your member can connect to the clustermaster and deployer, additional to the deploymentserver&lt;/P&gt;

&lt;P&gt;try to fix your quest as following:&lt;BR /&gt;
setup a new SH member&lt;BR /&gt;
clean your xx/local/server.conf with all [shcluster] content&lt;BR /&gt;
only on your SH MEMBER!&lt;BR /&gt;&lt;BR /&gt;
--&amp;gt;rm -rf SPLUNK_HOME /etc/instance.cfg&lt;BR /&gt;
--&amp;gt;rm -rf /SPLUNK_HOME/var/run/splunk/_raft/*&lt;BR /&gt;
 --&amp;gt; ./splunk restart&lt;/P&gt;

&lt;P&gt;now build your fresh SH Cluster with&lt;BR /&gt;
on all sh member&lt;BR /&gt;
--&amp;gt;./splunk edit cluster-config -master_uri &lt;A href="https://xx.xx.xx.xx:8089" target="_blank"&gt;https://xx.xx.xx.xx:8089&lt;/A&gt; -mode slave -site site1 -replication_port 8080 -secret your choice&lt;BR /&gt;
restart&lt;/P&gt;

&lt;P&gt;--&amp;gt;./splunk init shcluster-config -mgmt_uri &lt;A href="https://your.sh.member.DNS" target="_blank"&gt;https://your.sh.member.DNS&lt;/A&gt; or IP:8089 -replication_port 8080 -secret changed&lt;BR /&gt;
--&amp;gt;./splunk bootstrap shcluster-captain -servers_list &lt;A href="https://member1:8089,https://member2:8089,https://member3:8089" target="_blank"&gt;https://member1:8089,https://member2:8089,https://member3:8089&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;don't forget to click solfed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;additional links:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/DistSearch/SHCconfigurationoverview" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/DistSearch/SHCconfigurationoverview&lt;/A&gt;&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278139#M10479</guid>
      <dc:creator>ThomasControlwa</dc:creator>
      <dc:date>2020-09-29T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278140#M10480</link>
      <description>&lt;P&gt;Is the &lt;STRONG&gt;&lt;EM&gt;-site&lt;/EM&gt;&lt;/STRONG&gt; option necessary or can I omitting this?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 07:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278140#M10480</guid>
      <dc:creator>amielke</dc:creator>
      <dc:date>2018-03-23T07:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278141#M10481</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I think it depends If your Cluster Is a multisite Cluster, that means you work wit site1 and site2.&lt;BR /&gt;
If you are not sure, post your SH-Cluster conf&lt;BR /&gt;
cheers &lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 08:33:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278141#M10481</guid>
      <dc:creator>ThomasControlwa</dc:creator>
      <dc:date>2018-03-23T08:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278142#M10482</link>
      <description>&lt;P&gt;Oh, we use a single site or say no site Cluster. &lt;BR /&gt;
Is this in this case necessary?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 08:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278142#M10482</guid>
      <dc:creator>amielke</dc:creator>
      <dc:date>2018-03-23T08:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278143#M10483</link>
      <description>&lt;P&gt;no, you don't Need this. please take a look @ here &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Indexer/ConfiguresearchheadwithCLI"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Indexer/ConfiguresearchheadwithCLI&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Edit the search head settings&lt;/P&gt;

&lt;P&gt;You can also use the CLI to edit the configuration later. &lt;/P&gt;

&lt;P&gt;Important: When you first enable a search head, you use the splunk edit cluster-config command. To change the search head configuration, you must instead use the splunk edit cluster-master command. &lt;/P&gt;

&lt;P&gt;For example, to change the security key (secret), use this command: &lt;/P&gt;

&lt;P&gt;splunk edit cluster-master &lt;A href="https://10.160.31.200:8089"&gt;https://10.160.31.200:8089&lt;/A&gt;  -secret newsecret123&lt;/P&gt;

&lt;P&gt;Important: The splunk edit cluster-master command always takes the current master URI:port value as its initial parameter. For example, this command connects the search head to a different master by setting a new value for the -master_uri parameter, but it provides the value for the old master as its initial parameter: &lt;/P&gt;

&lt;P&gt;splunk edit cluster-master &lt;A href="https://10.160.31.200:8089"&gt;https://10.160.31.200:8089&lt;/A&gt;  -master_uri &lt;A href="https://10.160.31.55:8089"&gt;https://10.160.31.55:8089&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Refer to the CLI clustering help, along with the server.conf specification file, for the list of configurable settings. &lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 09:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278143#M10483</guid>
      <dc:creator>ThomasControlwa</dc:creator>
      <dc:date>2018-03-23T09:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278144#M10484</link>
      <description>&lt;P&gt;please rate my answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; many thanks and cheers&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 09:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278144#M10484</guid>
      <dc:creator>ThomasControlwa</dc:creator>
      <dc:date>2018-03-23T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278145#M10485</link>
      <description>&lt;P&gt;I don't understand why Thomas is using the cluster-config command to add a search head. should be the shcluster-config command.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 16:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278145#M10485</guid>
      <dc:creator>dbroggy</dc:creator>
      <dc:date>2019-06-23T16:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278146#M10486</link>
      <description>&lt;P&gt;@dbroggy, it's an interesting thing, we configure using the &lt;CODE&gt;cluster-config&lt;/CODE&gt; parameter to set the search head as part of the indexer cluster and then we use the &lt;CODE&gt;shcluster-config&lt;/CODE&gt; parameter to set it up as part of the search head cluster. &lt;/P&gt;

&lt;P&gt;So, the node is part of the indexer cluster and also as part of the sub-cluster of the search head cluster.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 18:28:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278146#M10486</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-06-23T18:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to set up a search head cluster and getting error "Failed to bootstrap this node as a captain"?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278147#M10487</link>
      <description>&lt;P&gt;But I'm pretty sure that's the wrong syntax. &lt;BR /&gt;
"-mode slave" assigns an indexer to the indexer cluster. &lt;BR /&gt;
And search heads don't do replication to an index cluster so replication_port makes no sense.&lt;BR /&gt;
The command should be:&lt;BR /&gt;
./splunk edit cluster-config -mode searchhead -site site0 -master_uri https://:8089 -secret pass123 &lt;BR /&gt;
Ref:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.1/DistSearch/SHCandindexercluster" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.1/DistSearch/SHCandindexercluster&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-set-up-a-search-head-cluster-and-getting/m-p/278147#M10487</guid>
      <dc:creator>dbroggy</dc:creator>
      <dc:date>2020-09-30T01:01:53Z</dc:date>
    </item>
  </channel>
</rss>

