kevin-xw / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

execute failed: not master for shard'd mongodb setup #249

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install v1.1.5
2. connect to a shard'd mongo with master/slave config
3. and login

What is the expected output? What do you see instead?
Getting Error:
 Execute failed: not master
 function() { return db.getCollectionNames();)

RockMongo Version (1.1.0, ...)
1.1.5

Operation System (Windows/CentOS, ...)
Centos 6

PHP Version (5.1.6, ...)

php_mongo Version (1.0.9, ...)

MongoDB version (1.8.5, ...)

Please provide any additional information below.
this bug existed before on build 1.1.3. And the workaround was to find
$this->_mongo = new Mongo($this->_mongoHost . ":" . $this->_mongoPort();
and to update it to:
$this->_mongo = new Mongo($this->_mongoHost . ":" . $this->_mongoPort(), 
array("replicaSet"=>true));
$this->_mongo->setSlaveOkay(true)

And seems like this bug still exists on 1.1.5

Original issue reported on code.google.com by qwertyus...@gmail.com on 24 May 2013 at 2:45