Open remialvado opened 8 years ago
Does this happen with and without auth? My suspicion is that it's something permissions-related, but I haven't been able to track it down yet.
It happens without auth
Any idea ? Do you want me to test something to help you debug ?
Hi, I think I know why this issue happens, Dart's mongo driver had to be updated to be able to list collections on Mongo 3+. So it's probably the driver, either it's not updated or you need to change the function used.
See the Dart driver issue (by me) here https://github.com/vadimtsushko/mongo_dart/issues/67
TLDR: The driver needs to use db.getCollectionInfos on 3+ to list collections, the old way of doing it is deprecated in 3+.
Changing spec.add_dependency 'mongo', '>= 1.8.0', '<= 1.11.1' to use '1.12.3' (latest 1.x release) fixes it.
+1
I did not reply earlier but found a fix by using mongo driver 1.6.6 instead of driver 1.5.x. As a matter of fact, it seems that there is a new driver for PHP called mongodb
. In version 1.0, it supports the same thing as mongo
in 1.6.x but in version 1.1, it will support PHP 7.0 as well as MongoDB 3.2. The legacy mongo
driver won't be updated anymore.
What is the best way to fix 2.3.11?
I am running the gem version on OSX and can't figure out the best way to update the driver for MongoDb 3.2.1.
I've tested Genghisapp 2.3.11 and developer branch against MongoDB 3.0.5 using WiredTiger as a backend storage in two configurations : single node and replicaSet with 3 nodes. In both cases, Genghisapp is able to list databases but can't list collections :( I've checked Apache logs but can't see anytjing strange Any idea about what is happening and how I can solve this ?