HW1.2 not able to validate the script after authenticating

vagrant@database:~ cd ~/shared vagrant@database:~/shared ./validate-hw-1.2.sh
{ unauthorizedStatus: {“ok”:0,“errmsg”:“not authorized on admin to execute command { replSetGetStatus: 1.0 }”,“code”:13}, memberStatuses: [“PRIMARY”,“SECONDARY”,“SECONDARY”] }

getting error after authenticating the user on admin but still says not authorised
MongoDB Enterprise TO_BE_SECURED:PRIMARY> db.auth(‘admin’,‘webscale’)
MongoDB Enterprise TO_BE_SECURED:PRIMARY> rs.add(“database:31121”)
{ “ok” : 1 }
MongoDB Enterprise TO_BE_SECURED:PRIMARY> rs.add(“database:31122”)
{ “ok” : 1 }

Please help

You don’t need to copy this and paste this in the answer box.


Sorry this is the errmsg , if i paste this in answer box , this is wrong answer right
I am not getting keys for memberStatuses and unauthorizedStatus
I need help if i am missing anything for authentication process due to which i am not getting correct keys.

In general , i have 1 query, i have registered for 4 courses from 20th Aug which ends 1 week today but i have 4-5 assignments left in 2 courses ,please let me know if i can submit the assignment in the subsequent weeks or have to submit it today.


I am sorry but we cannot do that. Maybe you want to complete basics courses first and then register again for the other ones.