Chicago / opengrid-svc-template

Serivce layer that permits interaction between OpenGrid user interface and JSON data sources, just as Mongo.
Other
3 stars 4 forks source link

mvn test exception: mongodb has authentication failure and/or can't match PrimaryServerSelector #11

Open sergeiwallace opened 7 years ago

sergeiwallace commented 7 years ago

I am trying to build the opengrid service layer for the first time. When I try to run mvn test, i get the error:

INFO: Exception in monitor thread while connecting to server localhost:27017 com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='build', source='testdb', password=<hidden>, mechanismProperties={}}

and also in the output:

com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting for a server that matches PrimaryServerSelector. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='build', source='testdb', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 18: 'Authentication failed.' on server localhost:27017. The full response is { "ok" : 0.0, "code" : 18, "errmsg" : "Authentication failed." }}}]

I imagine I am skipping some step here with mongodb, but it's a bit hard to follow as the documentation appears to be unfinished for that section. Would someone be willing to help me out? I'd be more than happy to fill in the documentation or clarify it afterwards to help others who might also want to help develop opengrid.

rladines commented 7 years ago

I will take a look at this, will try to recreate.