<?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 Unable to bootstrap search head cluster captain in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212893#M7933</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Windows Server 2012&lt;/LI&gt;
&lt;LI&gt;Splunk Ent 6.3&lt;/LI&gt;
&lt;LI&gt;3 Search Heads (all brand new instances)&lt;/LI&gt;
&lt;LI&gt;1 Instance which is both DMC and Deployer (documentation said this should be ok)&lt;/LI&gt;
&lt;LI&gt;All on the same subnet, no firewall in between - all pingable, all able to browse to each other's web consoles&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I've followed the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/DistSearch/SHCdeploymentoverview"&gt;documentation&lt;/A&gt; closely (or so I thought) - everything went as expected until Step 5: &lt;/P&gt;

&lt;P&gt;On one of the search heads I try running this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk bootstrap shcluster-captain -servers_list "https://sslsplkshc01.stroock.com:8089,https://sslsplkshc02.stroock.com:8089,https://sslsplkshc03.stroock.com:8089" -auth admin:[achangedpassword]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The error I'm getting is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In handler 'shclustermemberconsensus': Failed to Set Configuration. One potential reason is captain could not hear back from all the nodes in a timeout period. Ensure all to be added nodes are up, and increase the raft timeout. If all nodes are up and running, look at splunkd.log for appendEntries errors due to mgmt_uri mismatch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Initialization went fine, they restarted fine, i'm using the same URI's in this command as I did in the &lt;STRONG&gt;init&lt;/STRONG&gt; command.&lt;/P&gt;

&lt;P&gt;In splunkd.log on the instance I've tried this on - the pertinent errors appear to be: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-01-2015 21:33:27.386 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n" 
11-01-2015 21:33:28.724 -0500 ERROR SHPRaftConsensus - failed appendEntriesRequest err: error accessing &lt;A href="https://sslsplkshc02.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json" target="test_blank"&gt;https://sslsplkshc02.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json&lt;/A&gt;, statusCode=401, description=Unauthorized to &lt;A href="https://sslsplkshc02.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc02.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:33:28.725 -0500 ERROR SHPRaftConsensus - failed appendEntriesRequest err: error accessing &lt;A href="https://sslsplkshc03.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json" target="test_blank"&gt;https://sslsplkshc03.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json&lt;/A&gt;, statusCode=401, description=Unauthorized to &lt;A href="https://sslsplkshc03.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc03.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:33:32.388 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n" 
11-01-2015 21:33:37.389 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n" 
11-01-2015 21:34:28.710 -0500 INFO SHPRaftConsensus - Activating configuration 1:\n&amp;lt;configuration&amp;gt;\n&amp;lt;prev_configuration&amp;gt;\n&amp;lt;server&amp;gt;;\n&amp;lt;server_id&amp;gt;https://sslsplkshc01.stroock.com:8089&amp;lt;/server_id&amp;gt;\n&amp;lt;/server&amp;gt;\n&amp;lt;/prev_configuration&amp;gt;\n&amp;lt;next_configuration&amp;gt;\n&amp;lt;/next_configuration&amp;gt;\n&amp;lt;/configuration&amp;gt;\n
11-01-2015 21:34:28.710 -0500 INFO SHPRaftConsensus - Exiting and deleting server : &lt;A href="https://sslsplkshc02.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc02.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:34:28.710 -0500 INFO SHPRaftConsensus - Exiting and deleting server : &lt;A href="https://sslsplkshc03.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc03.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:34:28.710 -0500 ERROR SHPRaftConsensus - Failed to Set Configuration. One potential reason is captain could not hear back from all the nodes in a timeout period. Ensure all to be added nodes are up, and increase the raft timeout. If all nodes are up and running, look at splunkd.log for appendEntries errors due to mgmt_uri mismatch 
11-01-2015 21:34:32.406 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help appreciated. From other discussions, things that may be pertinent, I'm not running any of these commands on the deployer. My admin password does special characters in it. I've tried surrounding it with quotes, single\double etc. same result. Also I am able to run this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk show shcluster-status -auth &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;successfully so I don't think it's a credential issue, although that's what the errors sound like... The result of that is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Captain:
                          dynamic_captain : 1
                          elected_captain : Sun Nov 01 21:16:11 2015
                                       id : A3A44C35-B1C3-4723-959E-F5621F7883CF
                         initialized_flag : 0
                                    label : SSLSPLKSHC01
                         maintenance_mode : 0
                                 mgmt_uri : &lt;A href="https://sslsplkshc01.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc01.stroock.com:8089&lt;/A&gt;
                    min_peers_joined_flag : 0
                     rolling_restart_flag : 0
                       service_ready_flag : 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Nov 2015 19:48:07 GMT</pubDate>
    <dc:creator>brooklynotss</dc:creator>
    <dc:date>2015-11-02T19:48:07Z</dc:date>
    <item>
      <title>Unable to bootstrap search head cluster captain</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212893#M7933</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Windows Server 2012&lt;/LI&gt;
&lt;LI&gt;Splunk Ent 6.3&lt;/LI&gt;
&lt;LI&gt;3 Search Heads (all brand new instances)&lt;/LI&gt;
&lt;LI&gt;1 Instance which is both DMC and Deployer (documentation said this should be ok)&lt;/LI&gt;
&lt;LI&gt;All on the same subnet, no firewall in between - all pingable, all able to browse to each other's web consoles&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I've followed the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/DistSearch/SHCdeploymentoverview"&gt;documentation&lt;/A&gt; closely (or so I thought) - everything went as expected until Step 5: &lt;/P&gt;

&lt;P&gt;On one of the search heads I try running this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk bootstrap shcluster-captain -servers_list "https://sslsplkshc01.stroock.com:8089,https://sslsplkshc02.stroock.com:8089,https://sslsplkshc03.stroock.com:8089" -auth admin:[achangedpassword]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The error I'm getting is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;In handler 'shclustermemberconsensus': Failed to Set Configuration. One potential reason is captain could not hear back from all the nodes in a timeout period. Ensure all to be added nodes are up, and increase the raft timeout. If all nodes are up and running, look at splunkd.log for appendEntries errors due to mgmt_uri mismatch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Initialization went fine, they restarted fine, i'm using the same URI's in this command as I did in the &lt;STRONG&gt;init&lt;/STRONG&gt; command.&lt;/P&gt;

&lt;P&gt;In splunkd.log on the instance I've tried this on - the pertinent errors appear to be: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-01-2015 21:33:27.386 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n" 
11-01-2015 21:33:28.724 -0500 ERROR SHPRaftConsensus - failed appendEntriesRequest err: error accessing &lt;A href="https://sslsplkshc02.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json" target="test_blank"&gt;https://sslsplkshc02.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json&lt;/A&gt;, statusCode=401, description=Unauthorized to &lt;A href="https://sslsplkshc02.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc02.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:33:28.725 -0500 ERROR SHPRaftConsensus - failed appendEntriesRequest err: error accessing &lt;A href="https://sslsplkshc03.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json" target="test_blank"&gt;https://sslsplkshc03.stroock.com:8089/services/shcluster/member/consensus/pseudoid/raft_append_entries?output_mode=json&lt;/A&gt;, statusCode=401, description=Unauthorized to &lt;A href="https://sslsplkshc03.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc03.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:33:32.388 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n" 
11-01-2015 21:33:37.389 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n" 
11-01-2015 21:34:28.710 -0500 INFO SHPRaftConsensus - Activating configuration 1:\n&amp;lt;configuration&amp;gt;\n&amp;lt;prev_configuration&amp;gt;\n&amp;lt;server&amp;gt;;\n&amp;lt;server_id&amp;gt;https://sslsplkshc01.stroock.com:8089&amp;lt;/server_id&amp;gt;\n&amp;lt;/server&amp;gt;\n&amp;lt;/prev_configuration&amp;gt;\n&amp;lt;next_configuration&amp;gt;\n&amp;lt;/next_configuration&amp;gt;\n&amp;lt;/configuration&amp;gt;\n
11-01-2015 21:34:28.710 -0500 INFO SHPRaftConsensus - Exiting and deleting server : &lt;A href="https://sslsplkshc02.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc02.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:34:28.710 -0500 INFO SHPRaftConsensus - Exiting and deleting server : &lt;A href="https://sslsplkshc03.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc03.stroock.com:8089&lt;/A&gt; 
11-01-2015 21:34:28.710 -0500 ERROR SHPRaftConsensus - Failed to Set Configuration. One potential reason is captain could not hear back from all the nodes in a timeout period. Ensure all to be added nodes are up, and increase the raft timeout. If all nodes are up and running, look at splunkd.log for appendEntries errors due to mgmt_uri mismatch 
11-01-2015 21:34:32.406 -0500 WARN SHPMasterHTTPProxy - Low Level http request failure err=failed method=POST path=/services/shcluster/captain/members/F7DCC5E0-922D-4906-AA24-20B3487AA6C3 captain=sslsplkshc01.stroock.com:8089 rc=0 actual_response_code=401 expected_response_code=200 status_line=Unauthorized error="&amp;lt;response&amp;gt;\n &amp;lt;messages&amp;gt;\n &amp;lt;msg type="WARN"&amp;gt;call not properly authenticated&amp;lt;/msg&amp;gt;\n &amp;lt;/messages&amp;gt;\n&amp;lt;/response&amp;gt;\n"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help appreciated. From other discussions, things that may be pertinent, I'm not running any of these commands on the deployer. My admin password does special characters in it. I've tried surrounding it with quotes, single\double etc. same result. Also I am able to run this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk show shcluster-status -auth &amp;lt;username&amp;gt;:&amp;lt;password&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;successfully so I don't think it's a credential issue, although that's what the errors sound like... The result of that is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Captain:
                          dynamic_captain : 1
                          elected_captain : Sun Nov 01 21:16:11 2015
                                       id : A3A44C35-B1C3-4723-959E-F5621F7883CF
                         initialized_flag : 0
                                    label : SSLSPLKSHC01
                         maintenance_mode : 0
                                 mgmt_uri : &lt;A href="https://sslsplkshc01.stroock.com:8089" target="test_blank"&gt;https://sslsplkshc01.stroock.com:8089&lt;/A&gt;
                    min_peers_joined_flag : 0
                     rolling_restart_flag : 0
                       service_ready_flag : 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Nov 2015 19:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212893#M7933</guid>
      <dc:creator>brooklynotss</dc:creator>
      <dc:date>2015-11-02T19:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to bootstrap search head cluster captain</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212894#M7934</link>
      <description>&lt;P&gt;Turned out the splunk universal forwarder had been installed first and was using the default mgmt port. Changed ports, all worked as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 19:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212894#M7934</guid>
      <dc:creator>brooklynotss</dc:creator>
      <dc:date>2015-11-12T19:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to bootstrap search head cluster captain</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212895#M7935</link>
      <description>&lt;P&gt;Just fixed the exact same issue, but for me it was a fat-fingers-typo in the &lt;CODE&gt;-secret&lt;/CODE&gt; of the &lt;CODE&gt;bootstrap&lt;/CODE&gt; command ... took my some time to find it.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 23:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Unable-to-bootstrap-search-head-cluster-captain/m-p/212895#M7935</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-05-24T23:54:14Z</dc:date>
    </item>
  </channel>
</rss>

