Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13858

couldn't initiate : can't find self in the replset config

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.7.0
    • Component/s: Replication
    • Labels:
      None
    • ALL
    • Hide

      1) Started mongodb with --replSet flag

      2) Define a conf -
      { _id:"nstunnel", "version" : 1, members:[ {_id:0, host:"127.0.0.1:27517"}, {_id:1, host:"127.0.0.1:27617"}, {_id:2, host:"127.0.0.1:27717"} ] }

      3) rs.initiate(conf)

      Getting error..couldn't initiate : can't find self in the replset config

      Show
      1) Started mongodb with --replSet flag 2) Define a conf - { _id:"nstunnel", "version" : 1, members:[ {_id:0, host:"127.0.0.1:27517"}, {_id:1, host:"127.0.0.1:27617"}, {_id:2, host:"127.0.0.1:27717"} ] } 3) rs.initiate(conf) Getting error..couldn't initiate : can't find self in the replset config

      > conf = {   _id:"nstunnel",   "version" : 1,  members:[      {_id:0, host:"127.0.0.1:27517"},      {_id:1, host:"127.0.0.1:27617"},      {_id:2, host:"127.0.0.1:27717"}    ]  }
      {
      	"_id" : "nstunnel",
      	"version" : 1,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "127.0.0.1:27517"
      		},
      		{
      			"_id" : 1,
      			"host" : "127.0.0.1:27617"
      		},
      		{
      			"_id" : 2,
      			"host" : "127.0.0.1:27717"
      		}
      	]
      }
      > rs.initiate(conf);
      {
      	"ok" : 0,
      	"errmsg" : "couldn't initiate : can't find self in the replset config"
      }
      

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            durgadeep Durga Deep
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: