Lab - Logging to a Different Facility: child process failed

OK, I’m in trouble again:

vagrant@m103:~$ mongod --config /shared/mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 2663
ERROR: child process failed, exited with error number 100
To see additional information in this output, start without the "--fork" option.

My config file:

net:
  bindIp: "192.168.103.100, localhost"
  port: 27000
operationProfiling:
  mode: "slowOp"
  slowOpThresholdMs: 50
processManagement:
  fork: true
security:
  authorization: enabled
storage:
  dbPath: "/var/mongodb/db/"
systemLog:
  destination: "file"
  logAppend: true
  path: "/var/mongodb/db/mongod.log"

If I take off processManagement: fork: true:

vagrant@m103:~$ mongod --config /shared/mongod.conf
vagrant@m103:~$ validate_lab_different_logpath
You need to bind the IP address `127.0.0.1` or `localhost`

OK, I think the problem was the space between the comma and localhost in bindIp: "192.168.103.100, localhost". I restarted my computer and everything went OK, no problem with previously forked processes.

vagrant@m103:~$ mongod --config /shared/mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 1966
child process started successfully, parent exiting
vagrant@m103:~$ validate_lab_different_logpath
answer_code
1 Like