After upgrading the entire Search Head Cluster to Splunk 9.1.2, the cluster went out of sync and broke. Also, the raft was cleaned which further broke the cluster as a step to fix the webUI and kvstore issue that occurred due to the migration failure.
1. As the cluster broke after the upgrade and also the raft was cleaned as a part of troubleshooting to fix the webUI and kvstore issue, first worked on creating the cluster again as all the search heads were working as standalone servers with no WebUI and kvstore in failed status. Below are the commands used to re-create the cluster.
To initialize the memebrs and add them to a cluster,
splunk init shcluster-config -auth <username>:<password> -mgmt_uri <URI>:<management_port> -replication_port <replication_port> -replication_factor <n> -conf_deploy_fetch_url <URL>:<management_port> -secret <security_key> -shcluster_label <label>
To boot-strap static captain,
splunk bootstrap shcluster-captain -servers_list "<URI>:<management_port>,<URI>:<management_port>,..." -auth <username>:<password>
2. Once all the Search Heads were added to the cluster, checked the replication/sync status of the cluster, the sync was fine but still, the webUI and kvstore was down on all the Search Heads.
3. Looking into the current Splunk version, it was found that a few of the cluster members failed to upgrade to 9.1.2 and the upgrade rolled back to 9.0.1. Investigating the possible cause of this which could be the kvstore failure as well. But there were no errors shown during the upgrade process and it was shown as successful.
Since Kvstore was down and also the certificate was expired, the Splunk upgrade failed and rolled back, but the cluster was broken due to the sync issue that was created between the Search Heads with a lower Splunk version and kvstore failure. The upgrade failure also resulted in WebUI failure.
Steps to fix the kvstore after Joining the members to cluster, first check the validity of the SSL certificate being used, if the default certificates are expired follow the below steps to renew the SSL certificates:
To check the validity,
/opt/splunk/bin/splunk cmd openssl x509 -enddate -noout -in /opt/splunk/etc/auth/server.pem
Where: /opt/splunk/etc/auth/server.pem is the path of the ssl certificate. This can be different if we are using self signed certificates.Steps to renew Splunk default SSL certificate,
1. Go to /opt/splunk/etc/auth.
2. Rename server.pem as server.pem.bkp
3. Restart Splunk service on the server.
Post this still the Kvstore was in down state and also the webUI was still down all across the Search Head Cluster. To fix the Kvstore issue clean the local on all the Search Heads. Later the Mongo backup was placed back on one server and all the servers were to resync.
Steps to clean kvstore,
a. Take backup of /opt/splunk/var/lib/splunk/kvstore somewhere outside /splunk directory.
b. Stop splunk on the search head.
c. Run the clean command to clean the kvstore.
./splunk clean kvstore --local
d. Start splunk on the search head.
Kvstore got synced and was ready on all the Search Heads in the cluster but still the WebUI was down. Upgraded Splunk on the Search Heads was upgraded rolled back earlier and this time the upgrade was successful, also the WebUI came up all the Search Heads.
Overall, re-creating the Search Head Cluster, renewing the SSL certificate, and fixing the kvstore fixed all the issues on the cluster, and the upgrade was successful.
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |