title: Listing databases in rockmongo
body: <p>I've got mongodb running in following configuration: 1 config server, 2 mongos, 8 shards (4 per mongos). I've got a problem using <a href="http://code.google.com/p/rock-php/wiki/rock_mongo" rel="nofollow">rockmongo</a> administration tool:
  if I connect to <code>mongos</code> router and try to list databases, I receive the following error:</p>
  
  <pre><code>Fatal error: Uncaught exception 'MongoCursorException' with message 'no primary!' in     /home/vissi/var/www/rockmongo/app/models/MDb.php:5 ...
  </code></pre>
  
  <p>This problem exists only in one <code>mongos</code>, connecting to other <code>mongos</code> gives correct listing. Running <code>db.serverStatus()</code> in <code>mongo</code> console shows <code>... ok =&gt; 1</code> in both <code>mongos</code>.</p>
  
  <p>if I connect to <code>mongod</code> running with shardsvr option, I see only <code>config</code> and <code>local</code> databases.</p>
  
  <p>How should I connect to see all my databases correctly? <a href="http://code.google.com/p/phpmoadmin-mongodb-admin-tool-for-php/" rel="nofollow">phpmoadmin</a> (and <code>mongo</code> console) runs <code>show dbs</code> ok.</p>
  
  <p><em>If you have more than 1500 reputation, please, add <code>rockmongo</code> tag to this question.</em></p>