Error parsing YAML file (Configuration file)

I am hover getting this error while trying to run the config lab

Error parsing YAML config: duplicate key: security.authorization(canonical key: security.authorization)
try 'mongod --help' for more information

I have seen the documentation and have added a security.authorization field to the .yml file, and set it’s value to enabled. but the error persists

Suggest you create a new thread for this unrelated issue.

1 Like

Hi @Favour_04368,

As the error message indicates you have two entries for the same field (security.authorization) in your configuration file.

Please remove one of them.

Hope it helps!

Shubham Ranjan
Curriculum Services Engineer

1 Like