dokku / dokku-mongo

a mongo plugin for dokku
MIT License
174 stars 32 forks source link

Unable to connect to database #53

Closed mbriskar closed 8 years ago

mbriskar commented 8 years ago

Hello, I have a quite basic problem. I am not able to connect to the database using the official scala mongodb driver, using val db = MongoClient(MongoClientURI(sys.env.get("MONGO_URL").get))

There is an exception in the logs: 2016-03-27T22:45:49.928+0000 I ACCESS [conn11] authenticate db: application-db { authenticate: 1, user: "application-db", nonce: "xxx", key: "xxx" } 2016-03-27T22:45:49.929+0000 I ACCESS [conn11] Failed to authenticate tomorrowmagic-production@tomorrowmagic-production with mechanism MONGODB-CR: AuthenticationFailed MONGODB-CR credentials missing in the user document

Any help would be highly appreciated.

josegonzalez commented 8 years ago

Does your client not support the new type of authentication in Mongo 3?

mbriskar commented 8 years ago

Thanks Jose, after updating the driver, it works