[SERVER-9575] couldn't initiate : can't find self in the replset config error Created: 03/May/13  Updated: 10/Dec/14  Resolved: 04/Apr/14

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

Type: Bug Priority: Major - P3
Reporter: haritsu Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: Linux
Participants:

 Description   

I have a three MongoDB servers.

I want to first mongodb server replica set master node and second/third server slave nodes.

Master Server mongodb.conf

logappend=true
bind_ip = 10.201.1.214
port = 27017
fork = true
cpu = true
master = true
replSet = testRep

Second server mongodb.conf

logappend=true
bind_ip = 10.201.1.215
port = 27017

I'm trying rs.initiate() command but i get an error.

rs.initiate({_id: 'ebamongo',
members: [
{_id: 0,host: '10.201.1.215:27017'},
{_id: 1,host: '10.201.1.216:27017'}]
})

output:

{
"ok" : 0,
"errmsg" : "couldn't initiate : can't find self in the replset config"
}

What should I do?



 Comments   
Comment by Scott Hernandez (Inactive) [ 03/May/13 ]

These questions are best asked in the mongodb-user forum (https://groups.google.com/group/mongodb-user). This jira project is for bug reports and feature requests not for general help requests.

Please remove "master = true" since that is not an option for replica set member, and provide full logs if you have are still having a problem.

Comment by haritsu [ 03/May/13 ]

Uuppss...

rs.initiate({_id: 'testRep',
members: [
{_id: 0,host: '10.201.1.215:27017'},
{_id: 1,host: '10.201.1.216:27017'}]
})

Still get the error.

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