We are have problems connecting our Spring Boot server to a MongoLab's 3.0.7 version database. The code work fine using a local Mongo 3.0 instance but fails when connecting to the MongoLab's servers.
Caused by: com.mongodb.MongoCommandException: Command failed with error 18: 'auth failed' on server myserver.com:99999. The full response is { "ok" : 0.0, "errmsg" : "auth failed", "code" : 18 }
We are using Spring Boot 1.2.6.RELEASE and the MongoDB driver 3.0.4 We have also tried with driver 2.15.5
Neither was able to connect.
Any help is appreciated.