Deployment Architecture

Search head keeps failing in search head cluster

zzhao05
New Member

This was the search head that kept failing:

splunk > /appl/splunk/bin/splunk show shcluster-status -auth admin:adminpassword

Encountered some errors while trying to obtain sh cluster status.
This node is not the captain of the search head cluster, and we could not determine the current captain. The cluster is either in the process of electing a new captain, or this member hasn't joined the pool

splunk > /appl/splunk/bin/splunk show shcluster-status -auth admin:Adm\!n4Splk

On the other hand, the other 2 SHs look ok when I issued shcluster-status command on CLI:
Captain:

    dynamic_captain : 1
                               elected_captain : Tue Jun  4 12:47:03 2019
                                            id : A6F265E7-5FEC-448A-9ACD-8FE901D045D5
                              initialized_flag : 0
                                         label : pgv013d27
                                      mgmt_uri : https://172.26.42.160:8089
                         min_peers_joined_flag : 0
                          rolling_restart_flag : 0
                            service_ready_flag : 0

 Members: 
        pgv013aba
                                         label : pgv013aba
                         last_conf_replication : Tue Jun  4 14:04:23 2019
                                      mgmt_uri : https://172.26.96.216:8089
                                mgmt_uri_alias : https://172.26.96.216:8089
                                        status : Up
        pgv013d27
                                         label : pgv013d27
                                      mgmt_uri : https://172.26.42.160:8089
                                mgmt_uri_alias : https://172.26.42.160:8089
                                        status : Up

I did check with the forum and made sure that the mgmt_url was correct in server.conf..

It worked for a while but it started failing again after a while.
And I see the captain was selected and up and running. not sure why on the failing SH, it shows cannot determine the current captain.. Any advise where else shall I check?
Thanks.

0 Karma

codebuilder
Influencer

Within server.conf, make sure that the pass4SymmKey is set correctly under both the [general] and [shclustering] stanzas on the failing node, then cycle splunk and re-evaluate.

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...