Forked process: 1314, ERROR: child process failed, exited with error number 1

Hi, I get a problem like that :

Please Help,

in mongo log,

Your log is giving you the solution
Check if /data/db exists on your system
Cd /data/db or ls /data

1 Like

Ok Thank you, :+1:
the problem has been resolved,

  1. rm -rf mongod.lock
  2. rm -rf /tmp/mongodb-27017.sock
  3. chown -R mongod:mongod /var/lib/mongo
  4. chown -R mongod:mongod /var/log/mongodb
  5. chown mongod:mongod /tmp/mongodb-27017.sock
  6. service mongod start

and then the service can running again

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.