Thanks . It worked.
I went ahead with next steps but get another error while doing below steps: Create new data directory and try to launch mongod with a new port and dbpath, and also fork the process: mkdir first_mongod mongod --port 30000 --dbpath first_mongod --fork
I encounter another error while doing the below step: When you’re finished, run the following validation script in your vagrant and outside the mongo shell and enter the validation key you receive below. If you receive an error, it should give you some idea of what went wrong. vagrant@m103:~$ validate_lab_launch_mongod
Do you specify /data/db when you write –dbpath data? No. That why you get You need to specify db path /data/db.
You get unrecognised option '–dbpath’. You get that because you pass the option –dbpath to the mongo command. There are 2 commands mongod, the server, and mongo the shell. Please refer to the following links to see the differences.
One of the above links was already provided to you by 007_jb and it looks like you have not looked at it as I usually see a little counter next to a link that indicates how many time a link has been followed.
It appears that you’re not spending much time trying to decipher what’s wrong, and there’s also a knowledge gap in what has been taught in the lectures. Suggest that you re-watch the video again and pay closer attention.
thanks for your help.
I went through video’s as well as documentation again and pass through that stage and got the validate code but i can’t enter it now.
Is there any way i can enter it in the lab as I pass through the end date which is march 03?
I am getting the error( chapter 1: lab Configuration File) as i have booted my VM just now and login to shell using vagrant ssh and then used below command: mongod --config /shared/mongod.cfg
even i tried changing the switch to -f mongod -f /shared/mongod.cfg
It does not matter if you use --config or -f
Did you try without fork option as per message above?
It would have given the error why it is failing on your screen
or check mongod.log as suggested by Steeve in other post
Exited with error1 means most likely your dbpath dir is missing or wrong permissions or you are trying to start mongod on same port,dbpath while another instance is already running
Please review your config file and go step by step