Please help Chapter 1: Lab - Launching Mongod

Hello everyone.

I try to complete my lab and I made some mistask.

  1. launch a mongod instance without set bind_ip
  2. create new user
  3. Try to validate and found error as below.

vagrant@m103:~$ validate_lab_launch_mongod
Client experienced a timeout when connecting to the database - check that mongod is running on the correct port, and that your user was created with the correct settings.

how I can fixed this problem.
Thank you and best regards

Kill the mongod instance
Cleanup the dirs/logs
Repeat the lab as per instructions
It should work

Ramachandra_37567
Thank you very much for your reply:
I still can’t fix the problem.

  1. can you show me how to kill instance step by step

  2. I ran code : mongod --port 27000 --dbpath /data/db/ --bind_ip “192.168.103.100”
    result : waiting for connections on port 27000

  3. I reconnect to mongod :
    result : connect failed

I see your mongod is up-waiting for connections on port 27000
How did you connect to mongo?

If you want to kill a running mongod

ps -ef|grep mongo
Take the PID of mongod instance from above output
Then kill the session
kill -9 PID