title: Couldn't connect to new shard ReplicaSetMonitor no master found for set
body: <p>I'm trying to deploy sharded cluster in Mongodb</p>
  
  <p>I followed up the tutorial here</p>
  
  <p><a href="http://docs.mongodb.org/manual/tutorial/convert-replica-set-to-replicated-shard-cluster/" rel="nofollow">http://docs.mongodb.org/manual/tutorial/convert-replica-set-to-replicated-shard-cluster/</a></p>
  
  <p>first I deployed a Replica set with test data on a separate machine with IP 192.168.1.212</p>
  
  <p>and this is the status after I finished deploying it</p>
  
  <pre><code>firstset:PRIMARY&gt; rs.status();
  {
      "set" : "firstset",
      "date" : ISODate("2014-03-24T10:54:06Z"),
      "myState" : 1,
      "members" : [
          {
              "_id" : 1,
              "name" : "localhost:10001",
              "health" : 1,
              "state" : 1,
              "stateStr" : "PRIMARY",
              "uptime" : 117,
              "optime" : Timestamp(1395650164, 10507),
              "optimeDate" : ISODate("2014-03-24T08:36:04Z"),
              "self" : true
          },
          {
              "_id" : 2,
              "name" : "localhost:10002",
              "health" : 1,
              "state" : 2,
              "stateStr" : "SECONDARY",
              "uptime" : 65,
              "optime" : Timestamp(1395650164, 10507),
              "optimeDate" : ISODate("2014-03-24T08:36:04Z"),
              "lastHeartbeat" : ISODate("2014-03-24T10:54:05Z"),
              "lastHeartbeatRecv" : ISODate("2014-03-24T10:54:05Z"),
              "pingMs" : 0,
              "lastHeartbeatMessage" : "syncing to: localhost:10001",
              "syncingTo" : "localhost:10001"
          },
          {
              "_id" : 3,
              "name" : "localhost:10003",
              "health" : 1,
              "state" : 2,
              "stateStr" : "SECONDARY",
              "uptime" : 51,
              "optime" : Timestamp(1395650164, 10507),
              "optimeDate" : ISODate("2014-03-24T08:36:04Z"),
              "lastHeartbeat" : ISODate("2014-03-24T10:54:05Z"),
              "lastHeartbeatRecv" : ISODate("2014-03-24T10:54:04Z"),
              "pingMs" : 0,
              "lastHeartbeatMessage" : "syncing to: localhost:10001",
              "syncingTo" : "localhost:10001"
          }
      ],
      "ok" : 1
  }
  </code></pre>
  
  <p>Then I deployed three config server on separate machine then run mongos instance on another machine</p>
  
  <p>Then I wanted to add Replica shard using the following command</p>
  
  <pre><code>sh.addShard("firstset/192.168.1.212:10001,192.168.1.212:10002,192.168.1.212:10003")
  </code></pre>
  
  <p>But I get the following error</p>
  
  <pre><code>mongos&gt; sh.addShard('firstset/192.168.1.212:10001,192.168.1.212:10002,192.168.1.212:10003');
  {
      "ok" : 0,
      "errmsg" : "couldn't connect to new shard ReplicaSetMonitor no master found for set: firstset"
  }
  </code></pre>