com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Nerotix
, 1 year ago
Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}
via GitHub by nerotix
, 1 year ago
Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}
via GitHub by vignesh89
, 2 years ago
Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='db', source='admin ', password=<hidden>, mechanismProperties={}}
via GitHub by manjunath2008
, 1 year ago
Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='db', source='dashboard', password=<hidden>, mechanismProperties={}}
via GitHub by vishnuvangala
, 1 year ago
Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='dbuser', source='dashboarddb', password=<hidden>, mechanismProperties={}}
via Stack Overflow by Abhinab Kanrar
, 2 years ago
Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='root', source='app', password=<hidden>, mechanismProperties={}}
com.mongodb.MongoCommandException: Command failed with error 59: 'no such cmd: saslStart' on server localhost:27017. The full response is { "ok" : 0.0, "errmsg" : "no such cmd: saslStart", "code" : 59, "bad cmd" : { "saslStart" : 1, "mechanism" : "PLAIN", "payload" : { "$binary" : "YWRtaW4AYWRtaW4AYWRtaW4xMjM=", "$type" : "0" } } }
at com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:170)
at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123)
at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)
at com.mongodb.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:95)
at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:45)
at com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99)
at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44)
at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

8 times, 6 days ago
3 times, 8 months ago
147 times, 10 months ago
6 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.