One Star

Mongo connection setting credentials for tMongoDBConnection2_8

The way our mongo is setup there is admin credentials and each of the dbs have their own credentials too.
So I do enter the server name, port, db name, user name, and password...
I have entered the admin user name and password, did not work got
connecting to socket on port 3343
connected
Exception in component tMongoDBConnection2_8
com.mongodb.CommandResult$CommandFailure: command failed : { "serverUsed" : "dgphxspoap011.phx.myinc.dev/10.105.67.124:27017" , "ok" : 0.0 , "errmsg" : "unauthorized"}
at com.mongodb.CommandResult.getException(CommandResult.java:88)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:134)
at com.mongodb.Mongo.getDatabaseNames(Mongo.java:374)
I used the db's credentials and got exactly the same error.
What am I doing wrong? I tried googling the issue - no luck Smiley Happy
1 REPLY
Moderator

Re: Mongo connection setting credentials for tMongoDBConnection2_8

Hi,
Could you contact to your Mongo DB successfully without talend? What's your Mongo DB version?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.