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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4.3
    • Component/s: Replication
    • None
    • Linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

            Assignee:
            Unassigned
            Reporter:
            haritsu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: