com.mongodb.MongoSecurityException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 314#184535672
    via GitHub by jimzucker
    ,
  • How to create a CUPS service for mongoDB?
    via Stack Overflow by Jesse
    ,
  • do we have mongodb connector for prestodb?
    via by Unknown author,
  • GitHub comment 247#167204304
    via GitHub by vignesh89
    ,
    • com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='sokrates', source='homeControl', password=<hidden>, mechanismProperties={}} at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:61)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:32)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)[mongodb-driver-core-3.2.2.jar:na] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_92] 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." } at com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:170)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:95)[mongodb-driver-core-3.2.2.jar:na] at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:45)[mongodb-driver-core-3.2.2.jar:na] ... 6 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    pulse00
    3 times, last one,
    Dunmer
    147 times, last one,
    6 more bugmates