Reputation: 656
I am new to MongoDB as well in AWS. I am trying to create a node for out an existing mongodb cluster on AWS. After the AWS node is started i was trying to add it into the cluster but is getting 'response status: AuthenticationFailed: Authentication failed.'
So I disabled the auth configuration in mongod.conf which now looks like :
security:
#clusterAuthMode: keyFile
#keyFile: /data/db/mongodb/dory.keyfile
authorization: disabled
My question : What am i missing here?All mongoDB support docs mentioned creation of a admin/super user on first use ...i tried that but got same error. Is there a default user (master user and password) created by AWS for initial connection?
Upvotes: 0
Views: 44
Reputation: 656
Turns out the issue was partly AWS and more of mongoDB one:
We need to enable the auth configuration in mongod.conf and make sure that the keyfile is same across all the deployments/nodes
security:
clusterAuthMode: keyFile
keyFile: /data/db/mongodb/dory.keyfile
authorization: enabled
Upvotes: 1