2014년 12월 11일 목요일

Database user creation through MMS

I am just starting with the MongoDB Monitoring Service, I set it up all correctly and I tried adding some users through the Authentication & Users section under Deployment. Well it looks all okay in the console, but when i tried to use pymongo to connect to the server, I got an error... Investigating further I tried to list the users using mongo shell and it was returning nothing.. Did I go wrong somewhere? Even the users listed here i.e mms-monitoring-agent is not listed in the mongo shell. 



Seems like the image never got in... Attaching it again




What is the Python error you are getting? Can you post a snippet of code showing how you are trying to connect?



I think I finally sorted it out. Forgot to update here. It was a port issue. The mongodb instance was deployed on 27000 instead of 27017. My bad! And the errors were the same as you get for wrong authentication. And the main problem was...

I had created a MongoDB 1000 IOPS instance in AWS. And I was trying to hook it up with MongoDB MMS. Now the automation installed another set of mongodb daemons, monitoring and backup agents and there were 2 mongod processes running at the same time and I had logged into the wrong one all the time with the command line mongo client. Just detailing as I will this would serve as a documentation for future incase anybody comes across the same problem as mine.


댓글 없음:

댓글 쓰기