WARN CMSlave - Failed to register with cluster master reason: failed method=POST path=/services/cluster/master/peers/?output_mode=json master=mycm .mydomain .com:8089 rv=0 gotConnectionError=0 gotUnexpectedStatusCode=1 actual_response_code=500 expected_response_ code=2xx status_line="Internal Server Error" socket_error="No error" remote_error=Cannot add peer=xxx.xxx.xxx.xxx mgmtport=8089 (reason: bucket already added as clustered, peer attempted to add again as standalone. guid=C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A bid= stuff~386
Or this:
WARN CMSlave - Failed to register with cluster master reason:
failed method=POST path=/services/cluster/master/peers/?output_mode=json master=mycm .mydomain .com:8089
rv=0 gotConnectionError=0 gotUnexpectedStatusCode=1 actual_response_code=500 expected_response_
code=2xx status_line="Internal Server Error" socket_error="No error" remote_error=Cannot add
peer=xxx.xxx.xxx.xxx mgmtport=8089 (reason: cannot add to standalone bucket bid=stuff~386~C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A peer_name=anindexer.mydomain.com[Complete]). [ event=addPeer status=retrying AddPeerRequest: { batch_serialno=50 batch_size=100 guid=A5DBC4B6-0915-4B70-B36F-CF98BCC302E1 server_name=thisindexer .mydomain .com status=Up } Batch 45/100 ].
index=_internal sourcetype=splunkd component=CMSlave ("this" OR "that") | dedup peer_name | table peer_name, bid
index=_internal sourcetype=splunkd (component=CMMaster OR component=CMManager) AND "A clustered bucket cannot be re-added as standalone" | stats count by guid, bid
example bid: my_index~77~C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A format: <index_name>~<bucket_id>~<Indexer_GUID>
example path: /opt/splunk/var/lib/my_index/db_1670588414_1670588340_77 format: /opt/splunk/var/lib/<index_name>/db_<newest_time>_<oldest_time>_<bucket_id>
ls -al "/opt/splunk/var/lib/index_name/db" total 240 drwx------ 46 splunk splunk 8192 Dec 9 17:27 . drwx------ 5 splunk splunk 96 Oct 18 2021 .. -rw------- 1 splunk splunk 9609 Dec 9 17:27 .bucketManifest -rw------- 1 splunk splunk 10 Oct 18 2021 CreationTime drwx--x--- 3 splunk splunk 8192 Nov 23 19:31 db_1669231846_1667683024_66_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 7 03:09 db_1670381865_1669231850_67_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 9 13:43 db_1670588414_1670588340_77 ==> This standalone bucket name needs to be fixed
When a peer is disabled in an index cluster, the hot buckets are rolled to warm using the stand-alone bucket naming convention. This can happen when an indexer has maintenance without placing the cluster into maintenance mode and/or off-lining ($SPLUNK_HOME/bin/splunk offline) the indexer prior to maintenance.
When attempting to re-add the peer back into the cluster, the Cluster Manager recognizes that the buckets were previously clustered, but some buckets do not conform to the clustered bucket naming convention.
In order for the indexer to rejoin the cluster, standalone buckets need to be renamed to the clustered bucket naming convention by adding the GUID to the bucket name.
NOTE: The steps below describe finding and renaming individual standalone buckets. In larger environments this process can take many hours or days. In those situations, this article may be quite useful: How to automate process of locating and renaming standalone buckets to bring indexer back to its indexer cluster
$SPLUNK_HOME/bin/splunk enable maintenance-mode
$SPLUNK_HOME/bin/splunk stop
bid= index_name~77~1670588414_1670588340_77On disk, the bucket naming convention for standalone buckets looks like this:
db_<newest_time>_<oldest_time>_<bucket_id>e.g.
db_1670588414_1670588340_77The above bid will be mapped to the below directory:
/opt/splunk/var/lib/index_name/db_<newest_time>_<oldest_time>_<bucket_id>Example:
/opt/splunk/var/lib/index_name/db_1670588414_1670588340_77Note: If the buckets can not be found in the /opt/splunk/var/lib/index_name/ directory, check the path defined for the $SPLUNK_DB variable. This can be done by reviewing $SPLUNK_HOME/etc/splunk-launch.conf
ls -al "/opt/splunk/var/lib/index_name/db" total 240 drwx------ 46 splunk splunk 8192 Dec 9 17:27 . drwx------ 5 splunk splunk 96 Oct 18 2021 .. -rw------- 1 splunk splunk 9609 Dec 9 17:27 .bucketManifest -rw------- 1 splunk splunk 10 Oct 18 2021 CreationTime drwx--x--- 3 splunk splunk 8192 Nov 23 19:31 db_1669231846_1667683024_66_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 7 03:09 db_1670381865_1669231850_67_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A drwx--x--- 3 splunk splunk 8192 Dec 9 13:43 db_1670588414_1670588340_77 **This is the standalone bucket name missing the cluster GUID extension
db_<newest_time>_<oldest_time>_<bucket_id>to:
db_<newest_time>_<oldest_time>_<bucket_id>_GUIDExample for GUID C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A:
$ mv db_1569667714_1569355646_122 db_1569667714_1569355646_122_C76D1F6F-8141-44A3-9BC7-DBEC9F7AFE3A
rm -rf .bucketManifest
$SPLUNK_HOME/bin/splunk start
$SPLUNK_HOME/bin/splunk disable maintenance-mode
For more information please review the following:
Splunk Documentation
Bucket Naming Conventions
Bucket replication issues
Indexer fails to join back cluster due to standalone buckets?
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
28-Sep-2026
|
Initial Release |