Core dump error while using config command

I get this core dump error when I tried to use the config file.

Also these are the contents of the monfod.cfg file in shared directory

mongod.conf

for documentation of all options, see:

http://docs.mongodb.org/manual/reference/configuration-options/

Where and how to store data.

storage:
dbPath: D:\Program Files\MongoDB\Server\4.2\data
journal:
enabled: true

engine:

mmapv1:

wiredTiger:

where to write logging data.

systemLog:
destination: file
logAppend: true
path: D:\Program Files\MongoDB\Server\4.2\log\mongod.log

network interfaces

net:
port: 27000
bindIp: 127.0.0.1

#processManagement:

#security:

#operationProfiling:

#replication:

#sharding:

Enterprise-Only Options:

#auditLog:

#snmp:

Please use unix dirs for dbpath and logpath as you are working on vagrant
I see you used windows dir paths

should I use dbpath or config ??

if I use dbpath, I get this error

Hi @munish_79545,

As @Ramachandra_37567 mentioned, the content in your configuration file is not correct/complete.

I would suggest you to watch this video again - Chapter 1: The Mongod - Configuration File.

In addition to this, please refer our documentation on Configuration File Options.

Hope it helps!

If you face any issue then please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

I cant seem to run it from the config file. It is not finding the config file. Below is the error and the shared snapshot. Can you please verify if that path is correct … not sure why it is showing question mark???

Where’s the proof that the file exists in that directory?

mongod.conf

for documentation of all options, see:

http://docs.mongodb.org/manual/reference/configuration-options/

Where and how to store data.

storage:
dbPath: “/data/db”
journal:
enabled: “true”

where to write logging data.

systemLog:
destination: file
logAppend: true
path: “/data/log/mongod.log”

network interfaces

net:
port: 27000
bindIp: “127.0.0.1,192.168.103.100”

#processManagement:
fork : true

#security:

#operationProfiling:

#replication:

#sharding:

Enterprise-Only Options:

#auditLog:

#snmp:

I meant, check on the VM to see if that file is accessible. Try the ls command.

The mongod.conf exists in the /etc directory on vm but that is not my file. That must be the default one. Where would I see my mongod.cfg file?? does it over ride?? I am sorry if I don’t know the concept. The read the documentation but it is not clear

There is no file in the /shared folder on VM,

Let me see what you did

hello SIR … did you get a chance to look?

Yes sir. That’s why I requested to see a screenshot of what you did. Let me see a screenshot of how you checked the /shared folder on the VM.

logged into the /shared folder and gave ls -ltr

I hope I gave you the answer you were looking?

You did indeed. :+1:

Your vagrant installation didn’t complete fully. Try the following first:
vagrant reload
vagrant ssh

Thank you that fixed it

:slightly_smiling_face: :+1: