kevin-xw / rock-php

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

replicaSet not working #214

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Configure mongo_option with replicaSet
2. Login to rockmongo
3. Browse to a collection and click on it

The expected output on the right side is the query window, the first 10 
results,...
But the following error is shown instead: unauthorized db:msLogging lock 
type:-1 client:10.1.1.10

RockMongo Version 1.1.2

Operation System is CentOS/RHEL 6 64bit

PHP Version 5.3.3
php_mongo 1.2.10
MongoDB version 2.0.6

Here is the config for the mongo servers.
$MONGO["servers"][$i]["mongo_name"] = "Mongo1Stage1";
$MONGO["servers"][$i]["mongo_options"] = array("replicaSet" => "Mongo1Stage1");
$MONGO["servers"][$i]["mongo_host"] = 
"10.10.1.5,10.10.1.6,10.10.20.1.5,10.20.1.6,10.20.1.7";
$MONGO["servers"][$i]["mongo_port"] = "27017";
$MONGO["servers"][$i]["mongo_timeout"] = 0;
$MONGO["servers"][$i]["mongo_auth"] = true;
$MONGO["servers"][$i]["control_auth"] = false;

If I remove the mongo_options line I can do all the tasks that I want to do on 
my collection without an error.

Original issue reported on code.google.com by mschirrm...@gmail.com on 31 Jul 2012 at 5:18

GoogleCodeExporter commented 9 years ago
I'm not a developer, but I can't reproduce this behavior.

Original comment by ans...@trollgames.de on 10 Aug 2012 at 12:20

GoogleCodeExporter commented 9 years ago
Is there something more that I can do to provide more detailed information?

Original comment by mschirrm...@gmail.com on 6 Sep 2012 at 3:26