Deployment Architecture

Unable to add the search peer to Cluster master

Explorer

Hello,

Getting this error message everytime when I'm trying to add the search peer to master.
Failed to register with cluster master reason: failed method=POST path=/services/cluster/master/peers/?outputmode=json master=113.134.117.122:8089 rv=0 gotConnectionError=0 gotUnexpectedStatusCode=1 actualresponsecode=500 expectedresponsecode=2xx statusline="Internal Server Error" socketerror="No error" remoteerror=Cannot add peer=18.218.129.11 mgmtport=9089 (reason: http client error=Connect Timeout, while trying to reach https://18.218.129.11:9089/services/cluster/config). [ event=addPeer status=retrying AddPeerRequest: { id= _indexVec=''activebundleid=3BA0B5A63B5F98681601E92106214CBE addtype=Initial-Add basegenerationid=0 batchserialno=1 batchsize=2 lastcompletegenerationid=0 latestbundleid=3BA0B5A63B5F98681601E92106214CBE mgmtport=9089 name=EE4D1ED7-70B3-4AAC-A5E6-0A920EEE2FFC registerforwarderaddress= registerreplicationaddress= registersearchaddress= replicationport=8080 replicationusessl=0 replications= servername=ip-12-31-4-60.us-east-2.compute.internal site=default splunkversion=8.0.2.1 splunkdbuild_number=f002026bad55 status=Up } ].
3/27/2020, 2:15:20 AM

Can someone help me with this?
I tried, remove the old configuration in server.conf and restarted many ties but no use.

0 Karma

SplunkTrust
SplunkTrust

Are you running Cluster master on management port 9089 ? Based on logs I can see mgmtport=9089, maybe you had typo in your configuration file. By default splunk management port is 8089.

SplunkTrust
SplunkTrust

Didn't see that one, good point 🙂

0 Karma

SplunkTrust
SplunkTrust

Which Splunk version? Did you create your own app configuration for this or are you using the server.conf specified under $SPLUNK_HOME/system/local/?

In either case, I'd suggest to remove the configuration and try to add the peer again by running the CLI command and see if that works. Reference: described here in the docs.

Skalli