Skip to content

Mongolab doesn't allow list databases... #23

andypetrella opened this Issue Aug 18, 2012 · 3 comments

3 participants


hello, I'm currently trying to use MongoLab with play-salat, however as the subject says, this provider restrict the access to the dbs command.

The problem comes from the SalatPlugin's onStart method that is doing a sanity check by requesting all database names... And so throw an error saying that the server is not recheable (couldn't connect); which is false, we just haven't the right to do so :/.

To resolve this we could maybe request the collections on a specific database (from the config)?

Here is the SO related question:


tisoft commented Aug 18, 2012

I have the same problem on my own database server and I don't want to give the play user admin access. It even needs read/write access on the admin db, to be allowed to run this command.

Would it be possible to just list the collections of the current db instead? That should be enough for a test if the user is really logged in.


Don't bother, I've just did it: #24.
Wait and see ;-)

leon commented Aug 19, 2012

Fixed in v1.0.9 9265a26

@leon leon closed this Aug 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.