Unable to fork process :

mongod.conf :

dbPath: /var/mongodb/db
bindIp: localhost
port: 27000
authorization: enabled
destination: file
path: /var/mongodb/logs/mongod.log
logAppend: true
fork: true

command I run :

mongod --fork --logpath /var/mongodb/logs/mongod.log

Error I’m getting :

ERROR: child process failed, exited with error number 100
To see additional information in this output, start without the “–fork” option.

Hi @clever_programmer,

It’s recommended to use the IDE. And once you do that, run the daemon using the configuration file.

mongod -f mongod.conf

Also, as it is written, the config file is not YAML. But I guess that’s just the c&paste.

1 Like

When the error you get says

It will be clever to start without the “–fork” option to see additional information and to share with us the additional information.

This being written, my best guess is that you forgot to create the directories.

But since you shared a configuration file, as Santiago_Miranda mentioned, the command you are using is not using the configuration file you shared.

1 Like

Thank you !

Thank You!