LAB1 Error while creating user

Hello ,
I am constantly getting error as shown below in screen shot.
there is no user authantication.
Did i miss any step?

Thanks

Start with a clean slate:

  1. Find the process
    ps -ef | grep [m]ongo
  2. Kill it using the process id (pid) from step 1:
    kill pid
  3. Delete all the data files
    rm -r /path/to/db/files/*
  4. Startup your mongod like before > create your first user
    NB: To create the user, you need to be outside the mongo shell. Run it from the vagrant shell.

PS: Bear in mind that posting potential lab answers is against forum guidelines

1 Like

Thank you. I will try this.

Its not working. I will search more.
I dont understand this line.
PS: Bear in mind that posting potential lab answers is against forum guidelines

Is it not allowed to ask question on same topic?

Show screenshots of what you did.

It absolutely is allowed and welcomed, but in your initial screenshot, the mongod code line is a potential answer to this lab and that’s the line that shouldn’t be posted (unless asked).

1 Like

oh Ok understand. Thank you .I will keep in mind.

I will start from step 1.

  1. I started vagrant in one cmd and Mongoshell in another cmd
  2. [quote=“007_jb, post:2, topic:49173”]
  • Find the process
    ps -ef | grep [m]ongo
  • Kill it using the process id (pid) from step 1:
    kill pid
  • Delete all the data files
    rm -r /path/to/db/files/*
    [/quote]

This should be written in vagrant or Mongo shell?

1, 2 and 3 are Linux commands… you run those in the vagrant shell. Lookup those commands for usage.

Ok …I was doing in correct one.
This is what I get.

vagrant@m103:~ ps -ef | grep [m]ongo vagrant@m103:~ kill pid
-bash: kill: pid: arguments must be process or job IDs

Please share a screenshot of 1, 2 and 3