Having issues with the configuration file on windows 10 (PRO)

Hi everyone, I am having an issue with finishing my LAB for M103 , and the issues lies with the configuration file on the window.
I am getting the error message:
vagrant@m103:~$ mongod --config “C:\Users\behja\MongoUniversity\m103-vagrant-env\shared\config.cfg”
Error reading config file: No such file or directory

And here is my configuration file:

systemLog:
destination: file
path: “C:\variables\logs\mongo.log”
logAppend: true
storage:
dbPath: “C:\variables\data”
security:
authorization: enabled
replication:
replSetName: M103
net:
bindIp : “127.0.0.1,192.168.0.100”
port: 27000
security:
authorization: enabled

I have done the following:

  1. Change the location and file extension from text to cfg
  2. Also made sure that the configuration file is located on the same folder on as my vagrant executable files
  3. Also the account that is running under is an ADMIN

Please help…

Hi Leya_60411,

Please copy the files from your local system shared directory to vagrant shared directory (from outside vagrant). And then you can access those files from inside the vagrant here:

 vagrant@m103:~$ ls /shared

Kanika

1 Like

Thank you, it worked.