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

Stack Overflow | IndyStef | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Authentication error when accessing mongodb through Spring Boot app

    Stack Overflow | 8 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 | 1 year 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 | 1 year 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 | 1 year 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 | 2 years ago | Unknown author
    com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=null, userName='<username>', source='<db>', password=<hidden>, mechanismProperties={}}

  1. Dunmer 147 times, last 1 month ago
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