Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

WiredTiger - Can't list collections #209

Open
remialvado opened this issue Aug 8, 2015 · 8 comments
Open

WiredTiger - Can't list collections #209

remialvado opened this issue Aug 8, 2015 · 8 comments

Comments

@remialvado
Copy link

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 ?

@bobthecow
Copy link
Owner

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.

@remialvado
Copy link
Author

It happens without auth

@remialvado
Copy link
Author

Any idea ? Do you want me to test something to help you debug ?

@Scorpiion
Copy link

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+.

@vogre
Copy link

vogre commented Sep 17, 2015

Changing
spec.add_dependency 'mongo', '>= 1.8.0', '<= 1.11.1'
to use '1.12.3' (latest 1.x release) fixes it.

@dioptre
Copy link

dioptre commented Dec 1, 2015

+1

@remialvado
Copy link
Author

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.

@chriskinsman
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants