[SERVER-7552] Getting error "couldn't initiate : can't find self in the replset config my port:" while initilizing replica set Created: 05/Nov/12  Updated: 11/Jul/16  Resolved: 18/Jan/13

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.0.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: jitendra verma Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux OEL


Operating System: ALL
Participants:

 Description   

I have Following replica sets set ups
1: primary
2: slave
1: Arbiter
Primary and Arbiter on same machine

config = {_id: 'r1', members: [{_id: 0, host: '< 192.168.50.225:10000>'}, {_id: 3, host: '< 192.168.50.225:15000>',arbiterOnly : true , priority: 0},{_id: 1, host: '< 192.168.50.117:10000>', priority: 0} ,{_id: 2, host: '< 192.168.50.239:10000>', priority: 0}]}  
 
rs.initiate(config)

Out put of above command
> rs.initiate(config)
{
"errmsg" : "couldn't initiate : can't find self in the replset config my port: 10000",
"ok" : 0
}

Pleas Help me
Thanks JRV



 Comments   
Comment by Kristina Chodorow (Inactive) [ 05/Nov/12 ]

Do not include < >s in your host names. For example, try:

config = {_id: 'r1', members: [{_id: 0, host: '192.168.50.225:10000'}, {_id: 3, host: '192.168.50.225:15000',arbiterOnly : true , priority: 0},{_id: 1, host: '192.168.50.117:10000', priority: 0} ,{_id: 2, host: '192.168.50.239:10000', priority: 0}]}  

Generated at Thu Feb 08 03:14:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.