Lab Launching Mongod not completed

Hi everyone
I am not able to complete lab Launching Mongod
Is it possible to get a step by step simple method to follow?

very thanks


You Ctrl-C just before calling mongo. You just killed the server. No wonder why you cannot connect.

Hi Steeve
I try again but it is the same issue

Do you mean you Ctrl-C the server again?

hi Steeve
I Switch off all my terminals and start again the server

Ok, so you have one mongod running and you cannot connect to it with mongo?

The following will confirm us that mongod is running. Please send the output of:

ps -aef | grep mongod | grep -v grep
netstat -tlnp | grep mongod


Thank you

please see the pic

You have to start mongod before you try to connect with mongo shell.


what is the folowing steps?

  1. open two terminal in the m103-vagrant-env folder
  2. in TREMINAL1 vagrant ssh
    run mongod --port 27000 --dbpath /data/db --bind_ip ", --auth
  3. in TERMINAL2 run vagrant ssh
    run mongo admin --host localhost:27000 eval ‘db.createUser({user: “m103-admin”, pwd: "m103-pass3, roles: [{role: “root”, db: “admin”}]})’

… I am lost

These are the steps.

But mongod is not running, so step 2 is not complete. Also make sure to remove the space between the 2 IP address and the comma. I think it causes issues.

I might give up on this course due to the poor ssh configuration from the lectures. I was also unable to complete the labs with ssh ip setup, however I can complete the exercise without ssh ip address setup.

ok I found the mistake
after you type
1.vagrant ssh
2.ENTER mongod --port 27000 --dbpath /data/db --bind_ip,

3 .Open new tab end enter again vagrant ssh
4. paste: mongo admin --host localhost:27000 --eval ’
user: “m103-admin”,
pwd: “m103-pass”,
roles: [
{role: “root”, db: “admin”}

5. Your are done : enter validate_lab_launch_mongod and copy the KEY. Thats it.

1 Like

Hi Ivica1

It’s done.
Please see the picture.

Could you help me to understand my mistake?


@Dick_Stephane_72255, you don’t have an error. That’s your validation code.

I am going to sleep
… it is not possible to launching againe Mongod


You have done the hard work. Just put that code into the web page for the result.

Just make sure you copy the whole code over. So check the first 3 and last 3 digits, that you paste over, match what see on the command prompt.

I also make sure I don’t have any preceding spaces :slight_smile: