Trying to create replica set on local machine. Gives errror "couldn't initiate : can't find self in the replset config"

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.6.3
    • Component/s: Admin
    • None
    • Environment:
      macbook
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Testing replica sets before moving to production.

      Started 3 instances of mongod on 3 dbs.
      local-idinc is mapped to 127.0.0.1

      config =
      {
      "_id" : "idincrepl",
      "members" : [

      { "_id" : 0, "host" : "local-idinc:10001" }

      ,

      { "_id" : 1, "host" : "local-idinc:10002" }

      ,

      { "_id" : 2, "host" : "local-idinc:10003" }

      ]
      }

      > rs.initiate(config);
      {
      "errmsg" : "couldn't initiate : can't find self in the replset config",
      "ok" : 0
      }

      -----------------------------
      Any errors in the configuration?

            Assignee:
            Kristina Chodorow (Inactive)
            Reporter:
            Sujit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: