Help - Error : Could not connect to master of shard replica set
the problem seems to be the version of mongodb. Somehow for mongodb &lt; 2.6 socket problem will intermittently occurs. When it occurs, you have to restart your mongos node.