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

Sever does not recognize self when IP addresses are given in replSetInitiate config

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.7
    • Affects Version/s: 1.5.5
    • Component/s: Replication
    • Labels:
      None
    • Environment:
      mongodb-linux-x86_64-2010-07-13
      version 1.5.5-pre, git version 22653fdefeea36317cbe2557b9cb039e64512ce6

      Start two mongod's on "1.2.3.4":
      1> bin/mongod --replSet yo/1.2.3.4:27018
      2> bin/mongod --dbpath /data/db2/ --port 27018 --replSet yo/1.2.3.4

      In mongo shell connected to "1.2.3.4":
      > cfg = {_id: "yo", members: [{_id: 1, host: "1.2.3.4"}, {_id: 2, host: "1.2.3.4:27018"}]}
      > use admin
      > db.runCommand(

      {replSetInitiate: cfg}

      )

      {assertion: "can't find self in the replset config", assertionCode: 13279, errmsg: "db assertion failure", ok: 0.0}

      log on "1.2.3.4":
      [conn3] Tue Jul 13 18:24:40 replSet replSetInitiate admin command received from client
      [conn3] Tue Jul 13 18:24:40 replSet replSetInitiate config object parses ok, 2 members specified
      [conn3] Tue Jul 13 18:24:40 replSet replSetInitiate exception: can't find self in the replset config

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            tonyh Tony Hannan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: