New user lab "illegal map value"

Hello, I’m getting an error message I do not understand (“Error parsing YAML config file: yaml-cpp: error at line 16, column 7: illegal map value”).

I ran this in the terminal
"sh-4.4# mongo --port 27000 -u "m103-admin" -p "m103-pass" --authenticationDatabase "admin"

And I ran this in the config

  dbPath: /var/mongodb/db
  bindIp: localhost
  port: 27000
  authorization: enabled
  destination: file
  path: /var/mongodb/logs/mongod.log
  logAppend: true
  fork: true
use admin
db.createUser( {
  user: "m103-application-user", // this line causes the error.
  pwd: "m103-application-pass",
  roles: [ { db: ‘applicationData’, role: ‘readWrite’ } ] } )

Please check yur config file
You are not suppose to add user creation in mongod.conf
Once mongod is up you should run it at mongo prompt

Please remove all unneeded things from config file and try again

Hi @Alex_Smith,

In addition to @Ramachandra_37567,

You should run this command only after your mongod process is running.

~ Shubham

Hi Alex_Smith,

I got the same error and resolved it by making sure I used the space bar instead of tab.

Hope this helps.