Error running command when rs is not fully setup

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Server 3.0.2
      Java driver 3.0.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Here is the situation

      The servers are setup for a replica set with a keyfile and replica name configured in the conf file

      I am trying to run a command on 127.0.0.1 to initialize the replica set. It fails with the following error

      29 Apr 2015 22:20:58,981 ERROR ~ MongDBInstance-configureReplicaSet: Timed out after 10000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=secondaryPreferred}. Client view of cluster state is {type=UNKNOWN, servers=[{address=127.0.0.1:27017, type=REPLICA_SET_GHOST, roundTrip Time=1.5 ms, state=CONNECTED}]
      

      If I remove the replica set parameter from the conf file the commands work fine. I need to run commands in this mode because that is now I initialize the replica set.

            Assignee:
            Unassigned
            Reporter:
            Dharshan Rangegowda
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: