DX Application Performance Management

 View Only
Expand all | Collapse all

MongoDB FieldPack authentication error shared mode

  • 1.  MongoDB FieldPack authentication error shared mode

    Posted Apr 12, 2017 09:13 PM

    Hi Community

     

    I'm trying to connect to MongoDB sharding cluster using ca-apm-fieldpack-mongodb 1.1 but I have an error about "auth failed" "code 18":

     

    Apr 12, 2017 7:43:47 PM com.ca.apm.mongo.Collector main

    INFO: APM MongoDB Collector version: 1.1

    Apr 12, 2017 7:43:47 PM com.ca.apm.mongo.Collector discoverTopology

    INFO: Discovering Topology for host: 10.80.132.244:27,017

    Apr 12, 2017 7:43:48 PM com.ca.apm.mongo.Collector <init>

    WARNING: Exception discovering topology:

    com.mongodb.CommandFailureException: { "serverUsed" : "10.80.132.244:27017" , "ok" : 0.0 , "errmsg" : "auth failed" , "code" : 18}

                    at com.mongodb.CommandResult.getException(CommandResult.java:76)

                    at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)

                    at com.mongodb.DBPort$NativeAuthenticator.authenticate(DBPort.java:652)

     

    But when I tried to connect using another tool for example Mongo Cheff the tool ask me for an additional parameter "authentication DB":

     

     

    It's possible set authentication DB on FieldPack ? 

     

    If I don't set "authentication DB" on MongoCheff get the same fieldpack error: auth failed: code 18.

     

    Regards 

     

    Aldo Fiorentini.



  • 2.  Re: MongoDB FieldPack autentication error shared mode

    Broadcom Employee
    Posted Apr 13, 2017 06:48 AM

    Guenter Grossberger is on vacation this week, but I'm sure he will address this when he's back.



  • 3.  Re: MongoDB FieldPack authentication error shared mode

    Broadcom Employee
    Posted Apr 13, 2017 11:14 AM

    Dear Aldo:

    I spoke to a colleague of mine.

    The supported extension is for Mungo DB 2.1 not 1.1.. Where did you get the extension from? 

    This extension does not appear to make a direct database connection  so the answer to your question appears to be a moot point.



  • 4.  Re: MongoDB FieldPack authentication error shared mode

    Posted Apr 13, 2017 02:54 PM

    Hi Hallet,

     

    Thanks for your response.

     

    I build the package using maven from github: 

     

    GitHub - CA-APM/ca-apm-fieldpack-mongodb: Official APM MongoDB Collector. Also a template for using the new EPA REST AP… 

     

    Regards,

     

    Aldo.



  • 5.  Re: MongoDB FieldPack authentication error shared mode

    Broadcom Employee
    Posted Apr 13, 2017 04:15 PM

    Hi Aldo:

    That was helpful. I see that has not been updated since 2016  Guenter_Grossberger or Chris_Kline would know best the answer to your question.. 

    Ignore please my prior comment on the database connection. That is for a different field pack

     

    Thanks

    Hal German



  • 6.  Re: MongoDB FieldPack authentication error shared mode

    Broadcom Employee
    Posted Apr 17, 2017 08:11 AM

    Hi Aldo:

    I have an update from someone initially involved with this extension. Please review and respond. 

     

    The current code uses the MongoClient class, and was written against Mongo v2.1 if I remember correctly. The current version is 3.4 but hasn’t changed significantly from what I can see.

     

    See:for details:

    http://mongodb.github.io/mongo-java-driver/3.4/driver/tutorials/authentication/

    https://docs.mongodb.com/manual/core/authentication/

     

    Please have the customer confirm that the properties they are using specify mongo.auth=basic as the default example uses mongo.auth=none

     

    Currently, we set up the CR (mongo.auth=basic) credential class using the hardcoded ‘admin’ as source – so I would have expected this to work for the customer (as they show the authentication DB using admin)

     

    Thanks

    Hal German



  • 7.  Re: MongoDB FieldPack authentication error shared mode

    Posted Apr 17, 2017 09:03 AM

    Hi Hallet,

    Thanks for your response.

     

    I'm using mongo.auth=basic and mongoDB 3.2.4.

     

    Regards,

     

    Aldo



  • 8.  Re: MongoDB FieldPack authentication error shared mode

    Posted Apr 19, 2017 11:25 AM

    Hi Hallett_German

     

    Please Could you review my last update for this question 

     

    Regards.

     

    Aldo Fiorentini.



  • 9.  Re: MongoDB FieldPack authentication error shared mode

    Broadcom Employee
    Posted Apr 19, 2017 11:54 AM

    Dear Aldo:

    Thanks for the update. As you may have noticed, I am acting more as a go-between than being an information resource. I have attempted to notify all appropriate parties that may be able to assist. But no additional responses have been forthcoming. All I can do is ask one more time

     

    Thanks 

    Hal German



  • 10.  Re: MongoDB FieldPack authentication error shared mode

    Posted May 03, 2017 11:49 AM

    Dear Hallett,

     

    Please, do you have any update for this question.

     

    Thanks 

     

    Aldo.



  • 11.  Re: MongoDB FieldPack authentication error shared mode

    Broadcom Employee
    Posted May 03, 2017 02:09 PM

    Dear Aldo:

       I have no further updates since April 19th. Again, I asked internally if someone can respond to this. This is the best that I can do for this thread.

     

    Thanks

    Hal German