Data360 Analyze

 View Only

MongoDB Auth Mechanism missing

  • 1.  MongoDB Auth Mechanism missing

    Posted 08-15-2022 10:28

    Not sure if this repetitive questioning. I am using the Lavastorm desktop version and using "Query for mongoDB" node to query some mongo collections.

    This is my first time using this node and when testing the connection I got the below error: "errmsg" : "Auth mechanism not specified"

    I couldn't find a place to populate the Authentication mode on the node.

    (Note: The connection/Auth details i have works fine on connecting to MONGO DB directly from my code.)

    Node reported the following messages to stderr:
    Aug 12, 2022 2:36:44 PM com.mongodb.DBPortPool gotError
    WARNING: emptying DBPortPool to xxxxxxxxxxxxxx b/c of error
    com.mongodb.CommandFailureException: { "serverUsed" : "xxxxxxxxxxxxxx:27017" , "operationTime" : { "$ts" : 1660340204 , "$inc" : 47} , "ok" : 0.0 , "errmsg" : "Auth mechanism not specified" , "code" : 2 , "codeName" : "BadValue" , "$clusterTime" : { "clusterTime" : { "$ts" : 1660340204 , "$inc" : 47} , "signature" : { "hash" : <Binary Data> , "keyId" : 7080701831717847043}}}

    at com.mongodb.CommandResult.getException(CommandResult.java:71)
    at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)
    at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:549)
    at com.mongodb.DBPort.authenticate(DBPort.java:322)
    at com.mongodb.DBPort.checkAuth(DBPort.java:333)




    ------------------------------
    Venkatesh Ramasamy
    Knowledge Community Shared Account
    ------------------------------