com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='sokrates', source='homeControl', password=<hidden>, mechanismProperties={}}

Stack Overflow | IndyStef | 3 months ago
  1. 0

    Authentication error when accessing mongodb through Spring Boot app

    Stack Overflow | 3 months ago | IndyStef
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='sokrates', source='homeControl', password=<hidden>, mechanismProperties={}}
  2. 0

    GitHub comment 314#184534266

    GitHub | 10 months ago | manjunath2008
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='db', source='dashboard', password=<hidden>, mechanismProperties={}}
  3. 0

    GitHub comment 314#184535672

    GitHub | 10 months ago | jimzucker
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-1, userName='db', source='dashboard', password=, mechanismProperties={}}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error connecting to MongoDB hosted in the cloud, using JDBC

    Stack Overflow | 9 months ago | RafiChozhan
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='db_userName', source='heroku_dbName', password=, mechanismProperties={}}
  6. 0

    do we have mongodb connector for prestodb?

    Google Groups | 1 year ago | Unknown author
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='<username>', source='<db>', password=<hidden>, mechanismProperties={}}

    8 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. MongoDB Java Driver
      DefaultServerMonitor$ServerMonitorRunnable.run
      1. com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:170)[mongodb-driver-core-3.2.2.jar:na]
      2. com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123)[mongodb-driver-core-3.2.2.jar:na]
      3. com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)[mongodb-driver-core-3.2.2.jar:na]
      4. com.mongodb.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:95)[mongodb-driver-core-3.2.2.jar:na]
      5. com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:45)[mongodb-driver-core-3.2.2.jar:na]
      6. com.mongodb.connection.DefaultAuthenticator.authenticate(DefaultAuthenticator.java:32)[mongodb-driver-core-3.2.2.jar:na]
      7. com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99)[mongodb-driver-core-3.2.2.jar:na]
      8. com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44)[mongodb-driver-core-3.2.2.jar:na]
      9. com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)[mongodb-driver-core-3.2.2.jar:na]
      10. com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)[mongodb-driver-core-3.2.2.jar:na]
      10 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_92]
      1 frame